Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


working with multiple dataset withing a table in SSRS


working with multiple dataset withing a table in SSRS

Author
Message
gjyothi
gjyothi
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 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
Jack Corbett
  Jack Corbett
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11054 Visits: 14859
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
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

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
jais.ghan-823166
jais.ghan-823166
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 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. !!!

Ermm
bsrlong
bsrlong
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 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.
Jack Corbett
  Jack Corbett
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11054 Visits: 14859
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
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

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
GSquared
GSquared
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: 14393 Visits: 9729
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
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47435 Visits: 44405
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, MVP, M.Sc (Comp Sci)
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


Steve Jones
Steve Jones
SSC-Dedicated
SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)

Group: Administrators
Points: 36427 Visits: 18764
I get asked for refunds once a month.

Happy to send you back what you sent to me! Tongue

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
bsrlong
bsrlong
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 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.
Jack Corbett
  Jack Corbett
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11054 Visits: 14859
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
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

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
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