epicazo
asked on
SSRS - Ratio not calculating correctly
I have a drilldown report and Group results for ELA/MHG are not calculating RATIO separately.... Any idea what I am doing wrong?
Ratio=Sum(Fields!ccSTA_MED .Value, "ReportDB")/(Sum(Fields!cc STA_MED.Va lue, "ReportDB")+Sum(Fields!ccS TA_TELE.Va lue, "ReportDB")+Sum(Fields!ccS TA_ICU.Val ue, "ReportDB"))
Attached is an Excel Sample of SSRS report.
Report2.xls
Ratio=Sum(Fields!ccSTA_MED
Attached is an Excel Sample of SSRS report.
Report2.xls
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For example if you have four groups nested in hierarchical fashion (e.g. Group1 -> Group2 -> Group3 -> Group4) and by chance your columns only accommodate three groups (e.g. Group1 -> Group2 -> Group4) for example, then the values would be different and your result would not calculate correctly.
Also, based on your Excel Spreadsheet, you need to provide a condition in your expression (e.g. using IIF) to determine if the values in the row are ELA or MHG in order to calculate the correct ratio for each row. It looks like your aggregate functions is aggregating for both ELA and MHG.