Viewing 15 posts - 2,596 through 2,610 (of 3,500 total)
I had this kind of fun just today on SSRS 2012. I went into the dataset and re-ran the query from within SSRS. that fixed it for some...
March 31, 2015 at 2:46 pm
I need to change the code so the report selects data 14 days before and 14 days after the selected date.
WHERE [DateColumn] BETWEEN DATEADD(days,-14,@DateParameter) AND DATEADD(days,14,@DateParameter)
not sure about the sequence...
March 31, 2015 at 2:29 pm
What are you trying to do? (Explain the business part, not the math.)
Can you give a really simple example? Do you have a table you're trying to join...
March 31, 2015 at 2:26 pm
Short answer - you need to turn this into a totals query and group by everything but the date. Get MAX(Date). Or use a subquery to return only...
March 31, 2015 at 10:57 am
Maybe it's the lack of coffee or something, but the basic matrix is simple, but getting the % of Internal at the bottom as a pain. (I'm starting to think...
March 31, 2015 at 10:54 am
make a copy of the report.
in the new copy (for the restricted folks), change the parameter to single value. (turn off Allow Multiple Values).
I'm pretty sure you can leave everything...
March 31, 2015 at 2:49 am
Finally dug up Itzik's book on T-SQL 2008...
-- from p.458 "Inside SQL Server 2008 T-SQL Querying" By Itzik Ben-Gan
SELECT 01.empID,
CONVERT(VARCHAR(7), o1.ordMonth, 121) AS toMonth,
o1.qty AS qtyThisMonth,
SUM(o2.qty) AS totalQty,
CAST(AVG(1 * o2.qty)...
March 31, 2015 at 2:47 am
Check out this article by Dwain Camps...
there's an example using 2008 that doesn't use windowing functions.
This is my attempt at applying what he wrote... maybe it's because it's stupid late,...
March 31, 2015 at 12:22 am
I would probably do it this way:
Package---(1,M)--Contains--(M,1)--Items
CREATE TABLE Contents (
PackageID INT NOT NULL,
ItemID INT NOT NULL,
Qty INT
FOREIGN KEY fkItemID ItemID REFERENCES Item(ItemID),
FOREIGN KEY fkPkgID PackageID REFERENCES Package(PackageID));
I'm assuming that the...
March 30, 2015 at 3:29 pm
To create a variable...
1. Under the Report menu, choose "Report Properties".
2. Click on the Variables Tab (in the left pane).
3. Click the Add button.
4. Give the variable a name.
5. click...
March 30, 2015 at 2:05 am
I created the variable to store the aggregate value to divide by. If you're doing "% of total" then you would store the total value in the variable, and...
March 29, 2015 at 11:40 pm
Hmm... wondering where my post went... Turns out I did the thing wrong. 😀
The way I got it to work was to create two datasets - one of the...
March 29, 2015 at 7:58 pm
I know this is a super old post, but I just thought I would update this a little, in case there's some other person out there in my place.
While Rob...
March 29, 2015 at 6:28 pm
I am trying to get a count of lead_ids where row_description value is "Leads Referred" and DIVIDE that by count of lead_ids where row_description value is "All Leads"
KK,
I did something...
March 29, 2015 at 6:11 pm
This article might give you some ideas... Partitioning in SQL Server[/url]
It sounds like this is a good use for it, but I'm not a partitioning expert... and it depends on...
March 28, 2015 at 7:10 pm
Viewing 15 posts - 2,596 through 2,610 (of 3,500 total)