Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Need help converting excel pivot table to SSRS

$
0
0
Hello,I was hoping someone could help me out. I have a client who manually creates a report every month. They run an SQL stored procedure that returns 2 result sets(using 2 select statements) from 2 tables. The client then manually copied the results from each result set and pasted it into a tab in excel. They then created a third tab for a pivot table using the other 2 tabs data.I am tasked with converting this into an automated SSRS report someone can just enter the date range for and have the same pivot table created. The first issue I have run into is that SSRS doesn't like multiple data sets. It takes the first result set and ignores the second.I tried doing a union between the select statements in the stored procedure and input both result sets into a temp table, that I could then use for the report, however the select fields lists in each select statement are not the same, and I get an error about them having to be equal.My plan was to dump both result sets into one temp table, then create a matrix in SSRS to mirror the pivot table in excel, but I can't even get the stored procedure working right.Any ideas?

Viewing all articles
Browse latest Browse all 2791

Trending Articles