We are working on a crosstab report where there is a row group (Category) and two column groups (Location and Gender), and we are showing total hours as the value. What we'd like to do is to show the hours as a percentage of the total for that Category and Location. The attached screenshot shows what we want, and also what the report designer gives us.
Basically if we have Category 1 and Location 1, we'd like to show the percentage of females for that category and location only. We are using an expression like
= Sum(Fields.TotalHours)/ exec("Gender1",Sum(Fields.TotalHours))
However this EXEC statement returns the total for the whole Gender group. We've tried the other groups, with similar results.
Is there a way to sum only across the current range of values?
Basically if we have Category 1 and Location 1, we'd like to show the percentage of females for that category and location only. We are using an expression like
= Sum(Fields.TotalHours)/ exec("Gender1",Sum(Fields.TotalHours))
However this EXEC statement returns the total for the whole Gender group. We've tried the other groups, with similar results.
Is there a way to sum only across the current range of values?