Create a Report using Multiple Data Sets

I have two datasets from different sources one SQL, 1 Oracle)... dataset 1 has customer number and service ticket details,  dataset 2 has customer info like name, address, etc.

Is it possible to get the report to display information from dataset 1 & dataset 2 by matching on the customer number>

Customer #(from dataset 1)... Customer Name (from dataset2) ... Ticket(from dataset1) ....   etc
Beverly PenneyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
If you are using SQL 2008 R2 or greater, you can use the Lookup function to return text from one table (i.e. customer name) on the same row as a tablix matching on the ID from joined tables (i.e. Customer Number).

=Lookup(Fields!Dataset2.Name, Fields!Dataset2.CustomerNumber, Fields!Dataset1.CustomerNumber, "data_source_dataset2")

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Keep in mind though if you're trying to join a SQL set to an Oracle set, that is dependant on CustomerNumber being the same data type and values, and that there's not a lot of problems with missing values in one set.  

If so, this would indicate the need to use an ETL tool like SSIS to import one set into the other, and then do some kind of data cleansing / handling blank values / whatever to make the data more presentable.   Then, you could just use a view in your data set and not have to deal with joining in SSRS.
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Thanks for the grade.  Good luck with your project.  -Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.