|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, December 14, 2012 2:16 PM
Points: 11,
Visits: 28
|
|
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
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 7:23 AM
Points: 114,
Visits: 386
|
|
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
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, December 14, 2012 2:16 PM
Points: 11,
Visits: 28
|
|
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
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 8:25 AM
Points: 1,467,
Visits: 922
|
|
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.
|
|
|
|