Solved

Using multiple datasets in SSRS 2005

Posted on 2011-03-01
10
1,082 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
10 Comments
 
LVL 40

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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
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
 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this short article I will be talking about two functions in the SQL Server Reporting Services (SSRS) function stack.  Those functions are IIF() and Switch().  And I'll be showing you how easy it is to add an Else part to the Switch function. T…
How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

751 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