Viewing 15 posts - 2,446 through 2,460 (of 3,489 total)
If you're using 2010, then PowerPivot is not installed by default. (Actually, I don't think it was developed until after 2010 came out.) You have to go to MS and...
June 29, 2015 at 10:03 am
I'm cheating for a minute and assuming you're using 2012 (which you're likely not)...
CREATE TABLE salesData
(date_created date,
sales money);
GO
INSERT INTO salesData (date_created, sales)
VALUES ('6-23-15', '20000.00'),
('6-24-15', '22000.00'),
('6-25-15', '25000.00'),
('6-26-15', '28500.00'),
('6-27-15', '32000.00');
-- 2012 solution
--...
June 28, 2015 at 11:48 pm
UNION your real result set with something like
SELECT Null, Null, Null
FROM Tally
WHERE n<=@NumRows
you would need to figure out the count of missing rows to do it, but that would be...
June 27, 2015 at 5:51 pm
"because I think Power BI currently only works with SSAS cubes and is online only"
I've seen one of the WiseOwl folks (see YouTube for the video) create a Power BI...
June 26, 2015 at 3:47 pm
Couple things: this...
=SUM(Fields!PersonID.Value, "datasetname")
doesn't really make sense. PersonID.Value is essentially a random meaningless number. why not COUNT?
The other thing you may need to look into is either LOOKUP...
June 25, 2015 at 6:53 pm
June 25, 2015 at 6:33 pm
Okay, got some nice fake consumable data? Doesn't have to be real, just has to be representative of your table structure(s) ... or the output of your stored procedure...
And please...
June 25, 2015 at 5:25 pm
If all you want to do is divide your counts over a fixed population size, then it's easy. Create a variable and populate it with a COUNT from your...
June 25, 2015 at 4:17 pm
Given the data, this works:
SELECT RecID
, BO_ID
, Code
, Code_Date
, MAX(CD1) AS Msg1
, MAX(CD2) AS Msg2
, MAX(CD3) AS Msg3
FROM
(SELECT 1380900 AS RecID
,'XZ01' AS BO_ID
, 12 AS Code
, '1/16/2015' AS Code_Date
, 'P302'...
June 25, 2015 at 3:55 pm
Try this:
...
WHERE TT11.Period>=@BeginPeriod
AND TT11.Period<=@EndPeriod
June 25, 2015 at 2:38 pm
Instead of
=iif( Fields!ColA.Value<>Fields!ColB,"Red","Green")
try
=iif( Fields!ColA.Value=Fields!ColB,"Green","Red")
June 24, 2015 at 3:09 am
CYA and make a backup and keep it in a safe place...
then offer to sell it to him later... No, just kidding about the last part.
June 23, 2015 at 9:52 pm
Here's one I did based on the database provided by Itzik Ben-Gan in his book. It's the same kind of Customers/Orders/Line Items database. What I'm doing is showing all...
June 23, 2015 at 6:08 pm
This will return all APInvoiceNum values that contain at least one IT-related expense.
SELECT APInvoiceNum AS Invoice
FROM GLJrnDt1
WHERE GlJrnDt1.SegValue BETWEEN '310100' AND '330500'
/* You may not need these extra filters here...
June 23, 2015 at 8:29 am
Viewing 15 posts - 2,446 through 2,460 (of 3,489 total)