Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SQL Reporting Services 2008 - Using two different row values in same expression

$
0
0

Hi,

I am new to reporting services and have a 'simple' (well to me anyway) question. I have a dataset below:

RecType   Year_Num   Month_Num   Month_Name      TotalMins     TotalHours
A              2011              1                   January 2011          276705        4611.750000
B              2011              1                  January 2011          192270        3204.500000
A              2011              2                   February 2011         261180       4353.000000
B              2011              2                   February 2011         188560       3142.666666

OK, so I created a dataset based on this query and attached it to a Matrix object, with a column grouping of Month_Name and a child group on RecType to get:

                                                 January 2011

A (RecType subgroup row)      4611.750000

B (RecType subgroup row)      3204.500000

B% of A                                     69.4%
Now, what I need is another line with a % that calculates B total / A total for each month. (It can go underneath B or next to B total - please see italized line above - no way to change font color or highlight.) Basically I want to see 3204.5 / 4611.75. I don't want to see B as a % of both of them summed together for January (group total - have seen tons of these examples), I just want B / A. Is this possible and if so how??!! I've been searching for 2 days and trying all kinds of different scenarios without any success. Thanks in advance for taking the time to read this!! 


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>