I want to sum the results of a calculated column in a PowerPivot calculation but the calculation is actually being performed on the subtotals also - is there a way I can change this?
The calculation is TargetMet=IF([Sum of Actual Income]>=[Sum of Planned Income],1,0)
I would like the subtotals in the TargetMet column for both Jill and Marty to reflect the number of stores that have met their targets, but the calculation is being performed on the subtotals instead.
Any help would be appreciated!
Excel 2013 32 bit
[TABLE="class: head"]
<tbody>[TR]
[TH][/TH]
[TH][/TH]
[TH][/TH]
[TH][/TH]
[TH][/TH]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Sum of Planned Income[/TD]
[TD]Sum of Actual Income[/TD]
[TD]TargetMet[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jill[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Safeway[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD][/TD]
[TD]Walmart[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jill Total[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD][/TD]
[TD]Marty[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Trader Joe's[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD][/TD]
[TD]Woolworth[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD][/TD]
[TD]Marty Total[/TD]
[TD]
[TD]
[TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The calculation is TargetMet=IF([Sum of Actual Income]>=[Sum of Planned Income],1,0)
I would like the subtotals in the TargetMet column for both Jill and Marty to reflect the number of stores that have met their targets, but the calculation is being performed on the subtotals instead.
Any help would be appreciated!
Excel 2013 32 bit
[TABLE="class: head"]
<tbody>[TR]
[TH][/TH]
[TH][/TH]
[TH][/TH]
[TH][/TH]
[TH][/TH]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Sum of Planned Income[/TD]
[TD]Sum of Actual Income[/TD]
[TD]TargetMet[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jill[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Safeway[/TD]
[TD]
50000
[/TD][TD]
60000
[/TD][TD]
1
[/TD][/TR]
[TR]
[TD][/TD]
[TD]Walmart[/TD]
[TD]
30000
[/TD][TD]
35000
[/TD][TD]
1
[/TD][/TR]
[TR]
[TD][/TD]
[TD]Jill Total[/TD]
[TD]
80000
[/TD][TD]
95000
[/TD][TD]
1
[/TD][/TR]
[TR]
[TD][/TD]
[TD]Marty[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Trader Joe's[/TD]
[TD]
60000
[/TD][TD]
50000
[/TD][TD]
0
[/TD][/TR]
[TR]
[TD][/TD]
[TD]Woolworth[/TD]
[TD]
20000
[/TD][TD]
20000
[/TD][TD]
1
[/TD][/TR]
[TR]
[TD][/TD]
[TD]Marty Total[/TD]
[TD]
80000
[/TD][TD]
70000
[/TD][TD]
0
[/TD][/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]