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

SQL Report with multiple matrix

$
0
0
I have a matrix reporting data by week by location. The matrix works great for this. The challenge, however, is I want to take my total from the matrix and provide a 3 month average - easy enough to do with another matrix. Then i need to take the last weeks data (matrix 1) compare it to the 3 month average (matrix 2) and calculate a variance. Then show the max value from the 3 months and calculate a variance against the last weeks data. for example location A location B location CWeek 1 100 300 350Week 2 550 350 700Week 3 250 550 450Total 900 1200 1500Weekly Avg 300 400 500Last Week Var -50 150 200Max 550 550 700Variance -54% 0% -35%Any suggestions on how to accomplish the bottom calculations when you can't use fields from various matrices in a report?Thanks in advance.

Viewing all articles
Browse latest Browse all 2791

Trending Articles