Hello. I was hoping someone might know how to solve this:
I need to get a value for each department (income/expected income), and once I have that value, see what percentage of the total of those factors that department represents. Both income and expected income come from the same dataset.
Example:
----------------------------
Department - Income - Expected - Factor - %POT
A - 90 - 100 - 0.9 - 28.66%
B - 54 - 42 - 1.29 - 41.08%
C - 36 - 38 - 0.95 - 30.25%
-----------------------
I thought the following code would give me the right value
(sum(Fields!Total_Income.Value)/sum(Fields!Expected_Income.Value))
/Sum(sum(Fields!Total_Income.Value)/sum(Fields!Expected_Income.Value),"T_8020")
However, it gives me the following error message:
The Value expression for the textbox 'Textbox78' has an inner aggregate in an outer aggregate that specifies a dataset scope. An aggregate that specifies a dataset scope cannot contain other aggregates.
For this particular table there is a single group above the details group. I cannot bring the division already calculated from the dataset because it doesn't return the appropiate value due to the level of granularity the data is at.
Any help would be really appreciated =)