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

From 2 different sources, can we include columns from 2 datsets and get an ssrs report? Expand / Collapse
Author
Message
Posted Friday, October 19, 2012 12:31 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, June 4, 2014 11:46 AM
Points: 11, 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
Post #1374987
Posted Monday, October 22, 2012 5:07 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, September 24, 2014 11:26 PM
Points: 116, Visits: 397
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
Post #1375339
Posted Monday, October 22, 2012 1:07 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, June 4, 2014 11:46 AM
Points: 11, 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
Post #1375688
Posted Monday, October 22, 2012 3:57 PM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Yesterday @ 8:50 AM
Points: 1,486, Visits: 1,037
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.
Post #1375761
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse