Solved

Using multiple datasets in SSRS 2005

Posted on 2011-03-01
10
1,074 Views
Last Modified: 2012-05-11
I'm trying to get a report to work with multiple datasets.  The datasets do not have a direct tie to each other and come from different databases.   But the totals from one dataset need to be used in a subsequent dataset.  One dataset with goals, a second dataset has gifts and 3rd dataset has income and expenses.  I need to take X % of the gift dataset and add it into the income and expense dataset.  Then I need to get a grand total and determine the % of goal using the first dataset.  Once I start adding different datasets and data regions the report only runs if I use first or sum on each of the fields.  Some of these can't be summed - the goals for example have to be listed separately by FY.  I'm not sure what I'm doing wrong.  I know I can't use sub reports because I can't carry totals from them onto the other data regions.  Any input?
0
Comment
Question by:cindyfiller
  • 4
  • 3
10 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 35012058
I would create SQL Views if posible for each "data set" to be in SSRS and use queries in your SSRS to agregate data based on these views as you described above.
0
 
LVL 10

Expert Comment

by:itcouple
ID: 35012133
Hi

Multiple dataset are not designed to talk to each other. At least not in 2005 it is slightly better with 2008 and even better with R2.

I think you can peform "lookups" on different datasets in 2005 but you need to type (hard-code) filter critieria they cannot be based on another field from a different dataset (at least I haven't found a way to do that).

If you want better answer I suggest to break your tasks into smaller ones and post them one by one there are bigger chances of getting more precise and quicker replies.

Also ideally you wouldn't have to do that in SSRS as this kind of tasks (data integration) should be performed before you use SSRS but that is ideal solution which is not always possible.

Hope that helps
Emil

0
 

Author Comment

by:cindyfiller
ID: 35012245
Some of the datasets are based on views.  I'm not sure how easy it would be to try and make all of the data look the same so it can be one aggregated view.  If possible, I'd like to get the multiple datasets to work.  Is this possible??
0
 
LVL 10

Expert Comment

by:itcouple
ID: 35014649
Hi

Creating views would be much simpler than working with multiple datasets in SSRS 2005. You mentioned that your queries come from different databases; are they all on the same server?

Regards
Emil
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:cindyfiller
ID: 35017114
Yes they are on the same server and they are all sql db's.  It does sound like I am going to have to go about this report a different way.  I'd always heard you could do the different datasets, but I guess the key is whether they will have data that has to be used in multiple data regions.  I've used different datasets for parameters many times, but had hoped 2005 would allow me to build out this report using this feature.   Thanks for confirming what I was fearing.  At least now I won't waste time trying to do something it won't do!
0
 
LVL 10

Accepted Solution

by:
itcouple earned 500 total points
ID: 35018006
Hi

SSRS supports multiple datasets but usually it is not so much related data. You should aim to answer the question by providing one dataset if possible. Remember also that SQL will be usually much faster preparing the data then using SSRS. I usually use multiple dataset only for parameters or dynamic configuration, usually my reports are one main dataset and if I build a dashboard then multiple datasets but not related to sharing the same level of data.

Are you ok doing the view from multiple databases?

Regards
Emil
0
 

Author Comment

by:cindyfiller
ID: 35019319
I think I'll end up having to do unions for each of the different types of data I'm pulling in.  I've never done one, but I think the trick is to have the same exact fields in each section that I'm going to union.   Again, thanks!
0
 

Author Comment

by:cindyfiller
ID: 35224387
I awarded points and closed this case - at least I tried to.  It obviously didn't work.  Can you allow me to do this?  The person definitely deserves the points.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction As you'll probably know, a data region in a SQL Server Reporting Services report can be linked to only one dataset.  This makes it troublesome when you need to display data from more than one dataset in the same data region.  SQL Serve…
A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now