Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Reporting Services
»
Reporting Services
»
SSRS report to show the results of two...
SSRS report to show the results of two datasets at different granularity on same report
Rate Topic
Display Mode
Topic Options
Author
Message
SQLBIDeveloper
SQLBIDeveloper
Posted Sunday, March 10, 2013 9:00 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 3:41 AM
Points: 2,
Visits: 33
I need to build a report to show the Top n products and sum of the rest products across column groups sales territory and year for my ProductSales Actual data set which contains the data at transactional day level granularity
I also need to show the total product Sales Actual and Total Product Sales Target across column groups sales territory and year.
The Product sales Target dataset is at sales territory and year granularity.
I guess we can impliment this with two different tables and align them .The first table grouped by top n and sum of others.The second table attached to a dataset which is at brought to common level granularity at territory and year
Is there any better way of doing this ,so that we achive this in a single table ,Also what is best way of acieving topn and sum of the rest of others .
Post #1428987
Chadwick-788357
Chadwick-788357
Posted Monday, March 11, 2013 8:24 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 9:29 AM
Points: 134,
Visits: 159
If I understand everything correctly, then yes I think the best way to achieve is using two tables. That's because the two datasets are at different grains.
If you want to use one table, it may require a lot of t-sql jiu-jitsu. Personally, I would try using two tables first. If you can't get it to look good, then maybe go for Plan B.
Post #1429298
peterzeke
peterzeke
Posted Monday, March 11, 2013 9:17 AM
SSC Veteran
Group: General Forum Members
Last Login: Yesterday @ 8:04 AM
Points: 286,
Visits: 1,231
Take a look at two articles written by Mike Davis over at BIDN.com. The articles contain steps for SSRS 2008, but I imagine they might work for 2005 as well as 2012.
http://www.bidn.com/blogs/mikedavis/ssis/172/top-n-bottom-n-grouping-in-ssrs-2008
Here's his follow-up article that also deals with handling "ties" (which he calls "duplicates") for Top N:
http://www.bidn.com/blogs/MikeDavis/ssis/1875/ssrs-top-n-and-bottom-n-reporting-with-duplicates
--Pete
Post #1429336
SQLBIDeveloper
SQLBIDeveloper
Posted Monday, March 11, 2013 1:32 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 3:41 AM
Points: 2,
Visits: 33
Thank You for the responses,
Finally i was able to figure out using different group filtering and running aggregates.
Many Thanks
Chandu
Post #1429462
Chadwick-788357
Chadwick-788357
Posted Tuesday, March 12, 2013 7:29 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 9:29 AM
Points: 134,
Visits: 159
I would like to see how you did that. Can you post the report and a sample dataset maybe?
thanks
Post #1429806
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.