SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


12 Months Rolliing Table in SSRS


12 Months Rolliing Table in SSRS

Author
Message
akshay.kulkarni86
akshay.kulkarni86
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 23
Hi all,

I need your help. I am trying to create rolling month table in SSRS report but I don’t know I where I am going badly. May be because of I am new learner in SSRS.

Below is my dataset & I showed how data looks in excel. I was doing this report in excel but my clients asked me to do in SSRS. I have given few excel tips for better understanding.

I need to create below table where data is rolling for 12 months. In excel I used few formulas to get data. I show in YELLOW color. I highlighted main group in Green color & sub group have white fill.

Can somebody please guide me step by step?
Attachments
DATASET1.PNG (17 views, 21.00 KB)
Table.PNG (13 views, 19.00 KB)
pietlinden
pietlinden
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14506 Visits: 14165
Welcome aboard, young Jedi.

Any chance you could post some sample data? I'm not sure if I understand what you mean or are trying to achieve. (So a simple example would go a long way!)

Something like:

DECLARE @StartDate DATE = '6-1-2013';
SELECT InvoiceNo
, InvoiceDate
, Amount
FROM
(
SELECT 1001 AS InvoiceNo
, '3-1-2014' AS InvoiceDate
, 500.00 AS Amount
UNION ALL
SELECT 1002 AS InvoiceNo
, '3-2-2014' AS InvoiceDate
, 1500.00 AS Amount
UNION ALL
SELECT 1003 AS InvoiceNo
, '6-2-2013' AS InvoiceDate
, 2500.00 AS Amount
UNION ALL
SELECT 1002 AS InvoiceNo
, '3-2-2013' AS InvoiceDate
, 5500.00 AS Amount) x
-- Add one year to the date and subtract one day.
WHERE x.InvoiceDate BETWEEN @StartDate AND DATEADD(d,-1,DATEADD(y,1,InvoiceDate));


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search