Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 123»»»

working with multiple dataset withing a table in SSRS Expand / Collapse
Author
Message
Posted Friday, September 5, 2008 4:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, December 15, 2009 5:57 AM
Points: 2, Visits: 22
Hi,

I have a main dataset which displays invoice details. I have another dataset which displays meter information for given invoice number. I want to display basic information from main dataset and meter information records (multiple records for given invoice number) from meter dataset within a tabale. How to achive this? any help is appreciated.

Regards
Jyothi
Post #564445
Posted Friday, September 5, 2008 7:21 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 6:48 AM
Points: 10,295, Visits: 13,276
Really the best way to handle this is to return all the data you need in one dataset as it reduces round trips and makes working with the data in SSRS MUCH easier. That being said I have done this, but it has been awhile, so I may not get it all exactly right the first time.

First you need to create your table with the invoice details dataset, do not use a details row, put everything in groups. Then within your innermost grouping place a table for the meter information records. I believe you will need to put a filter on the meter information table to link it to the parent table.

If I have a chance later I will try to put together an example report using AdventureWorks so you can see what I mean.




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #564554
Posted Tuesday, September 9, 2008 3:19 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, August 3, 2009 1:33 AM
Points: 10, Visits: 54
Hi ,
If it s neccessary to use two dataset,then Use the concept of Subreports

Place a subreport in the table of ur First report
Create another Report with the Invoice Details Dataset with Invoice No as ur Parameter (Inv Detail report)
Link the Subreport in First report with the second report (Inv detail Report)
Define Parameter as InvoiceNo in first report.



But the problem with subreports in reporting services is that once u export to excel,Only the main table is exported. !!!

Post #565984
Posted Tuesday, January 13, 2009 11:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, January 16, 2009 7:19 PM
Points: 3, Visits: 46
This is why I do not spend much time on fourms. Gee, and I signed up for this. People with answers such as this,
do not us the product and all the assests that make the product powerful.

Multi datasets is one of the powerful tools in Reporting Services. The answer is in knowing the product, not 'don't do that'.

Doctor docotr.
Post #635705
Posted Tuesday, January 13, 2009 12:05 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 6:48 AM
Points: 10,295, Visits: 13,276
bsrlong (1/13/2009)
This is why I do not spend much time on fourms. Gee, and I signed up for this. People with answers such as this,
do not us the product and all the assests that make the product powerful.

Multi datasets is one of the powerful tools in Reporting Services. The answer is in knowing the product, not 'don't do that'.

Doctor docotr.


Since you think the answers provided are incorrect or insufficient, and you seem to know more about it, why don't you post a solution instead of just complaining. The only way to improve forums is for experts like yourself to provide solutions to the questions.

Please educate us all.




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #635727
Posted Tuesday, January 13, 2009 12:16 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 1:09 PM
Points: 13,872, Visits: 9,597
bsrlong (1/13/2009)
This is why I do not spend much time on fourms. Gee, and I signed up for this. People with answers such as this,
do not us the product and all the assests that make the product powerful.

Multi datasets is one of the powerful tools in Reporting Services. The answer is in knowing the product, not 'don't do that'.

Doctor docotr.


I can see that you don't spend much time on forums. The knowledge that you would gain from doing so is quite visibly lacking.


- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #635736
Posted Tuesday, January 13, 2009 12:19 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 6:05 AM
Points: 40,258, Visits: 36,681
bsrlong (1/13/2009)
Gee, and I signed up for this.


I'm sorry you find this site a waste. Please feel free to ask Steve for a refund.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #635741
Posted Tuesday, January 13, 2009 12:58 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Yesterday @ 12:34 PM
Points: 31,204, Visits: 15,649
I get asked for refunds once a month.

Happy to send you back what you sent to me! :P







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #635774
Posted Tuesday, January 13, 2009 6:37 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, January 16, 2009 7:19 PM
Points: 3, Visits: 46
Sure, I will respond. Look at the quality at comments. what was that, "gee, you are so smart let's see you do better".

Maybe you should try reading the comments people leave. The point is that you - all are not looking deep enough into solutions. Your solution to this question was, don't do that. Correct, or not. The person asked, how do I, and you responded with , don't. Like at work I try to point what you can do with products. This week someone was complaining Reporting Services can't handle Null data. Come to find out the problem was something they were doing in a stored procedure. Once they let someone look at what they were doing.

First of all, I will tell as a fact, that using multiple data sets is not an drag on the product. I have one report that uses five different datasets, ties to five different tables and one of the data sets ties two different data bases. The report runs from 35 seconds to two. Not so bad. Multiple data sets is one of the great pluses of the product. Else I could just Crystal. (ouu). This report I worked on was intended for one individual at a time. Now of course the people wish to run the report against a group at a time. The tables do not all return the same amount of rows. So, I was looking for ideas to this. I do not have a solution yet, that is why I was looking at the forum.

Before you get your feelings hurt, be a programmer man. Look for solutions. That is what I was doing. That is what I have done since the early 90's. COBOL, VB, dot, Hack away. Even when using SharePoint I have do some researching and hacking sometimes.

Once again, the point being made, is if you say you can not do something, then give a technical reason. Maybe you are quite correct. Other wise, hack and search.

Sorry to hurt your feeling, I was trying to make a point, forums can be useful, but put some effort into it.

And yes, when I do find a solution, I will be glad to share it with you. So, excuse me while I go hack away.

In the future I will not be abrupt. But sit and spend time searching, sing up for a site (for free) just to see an answer with a lack of substance. That was my point.
Post #635945
Posted Tuesday, January 13, 2009 7:24 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 6:48 AM
Points: 10,295, Visits: 13,276
bsrlong,

The point I was trying to make with my post replying to yours is that a forum is only as good as it contributors, and when you post a criticism of the contributors without offering a solution, you have actually reduced the usefulness of the site. I know I'm not an SSRS expert, but I use it and what I know I share. I love to learn and will freely acknowledge when someone provides a better solution and then use that in my work.

Sure, I was being sarcastic, but, I was offended especially since you showed no interest in sharing a solution. If mine is wrong, or you have a better way, please share why don't just criticize.

I offered an opinion that I believe a better design would be a single query and then provided a general answer on how to use 2 datasets even though I don't believe it's the best solution.

I really hope you come back and offer a solution and, hopefully you'll come back when you have a question and will get an answer that meets your standards.




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #635954
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse