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

  • 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

  • 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

  • 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

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

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply