SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


From 2 different sources, can we include columns from 2 datsets and get an ssrs report?


From 2 different sources, can we include columns from 2 datsets and get an ssrs report?

Author
Message
KKottha
KKottha
SSC-Enthusiastic
SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)

Group: General Forum Members
Points: 147 Visits: 46
can we include columns from two data sets to 1 SSRS report?
one data set is from table and one data set is from excel

Below is the link for new feature in SSRS 2008 R2 to add 2 dataset columns by using LOOKUP
http://www.sqlservercentral.com/blogs/juggling_with_sql/2011/07/22/lookup-functions-in-ssrs-2008-r2-i/

But I think the above is only if we have common columns in both the datasets....Is it possible to include columns from 2 datasets if we dont have common columns?


Thanks,
KK
sanjeewan99
sanjeewan99
Old Hand
Old Hand (386 reputation)Old Hand (386 reputation)Old Hand (386 reputation)Old Hand (386 reputation)Old Hand (386 reputation)Old Hand (386 reputation)Old Hand (386 reputation)Old Hand (386 reputation)

Group: General Forum Members
Points: 386 Visits: 399
Hello ,
Yes you can use fields from two datasets and merge into one report, For this SSRS 2008R2 and onward version provide us a function Lookuo, Multilookup and Lookupset for more detail look into this link

http://www.bi-rootdata.com/2012/10/lookup-function-in-ssrs.html
KKottha
KKottha
SSC-Enthusiastic
SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)

Group: General Forum Members
Points: 147 Visits: 46
Thank you Sanjeewan,

But I think the link you mentioned is only if we have common columns in both the datasets....Is it possible to include columns from 2 datasets if we dont have common columns?


Thank you,
KK
Ray M
Ray M
SSCrazy Eights
SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)SSCrazy Eights (8.9K reputation)

Group: General Forum Members
Points: 8879 Visits: 1076
Are you trying to do the equivilent of like a sql Union, ie
Show rows from the table, and below show rows from excel?

If not, how would you do this in sql? if you have 2 tables and wanted to show all columns, but nothing to join them on, what would it look like?

What your describing is confusing, I think I know what your asking but how you would do it, or why you want to do it is wierd.
If you have 10 rows from dataset A, and 20 Rows from the excel sheet, how do you line them up?
Perhaps you need to derive a common column in both recordsets Something like a derived rowNumber.
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