Solved

Combining data sets in SSRS to produce a report

Posted on 2012-03-30
5
554 Views
Last Modified: 2016-02-14
I need to combine the results of two different datasets to produce a report.  I have provided a sample in the file.  Please suggest a solution using SQL Server Reporting Services.  I appreciate your help.
join-data-sets-in-ssrs-report.xlsx
0
Comment
Question by:tikkub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 10

Assisted Solution

by:Mez4343
Mez4343 earned 50 total points
ID: 37789505
I would rewrite the SQL query for the dataset in the SSRS RDL so that the dataset returns all 8 result fields you need.

If you need some help with the sql, post a sample of the current SQL query in the dataset and some idea how the new Column3 and Column4 fields relate to the original data.
0
 

Author Comment

by:tikkub
ID: 37789687
These sets are not sql results.  They are from SSAS cube.  They cannot be part of the same dataset since the granularity of some of the measures would explode the data.  I am seeking a solution with in SSRS report.  Thanks.
0
 
LVL 21

Assisted Solution

by:Jason Yousef, MS
Jason Yousef, MS earned 150 total points
ID: 37790818
Which version of SQL you're using?  if it's 2008R2 you could use
http://prologika.com/CS/blogs/blog/archive/2009/08/12/reporting-services-lookup-functions.aspx

if not, so you might need a reporting staging database, dump your data there, join it and read from this reporting staging mart.
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 300 total points
ID: 37794641
Here's another article explaining the lookup functions which huslayer mentioned: http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/A_3433-Looking-Up-Data-On-Different-Sources.html

They do have one limitation though: you can only use one key field to do the match.  In your case you'd need two.  The easiest way around this limitation is probably to set up a calculated field on each dataset.  In that field, combine the two key columns with a separator to get something like "client name;employee".
0
 

Author Closing Comment

by:tikkub
ID: 37797853
I appreciate your help.  The trick was to use the lookup function.  The thing that helped fully solve the problem was to use calculated field combining the grouping fields.  Thank you very much.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql query help 15 52
SQL QUERY 3 33
Using this function 4 40
T-SQL: problem comparing datetime 4 47
It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question