Hi,
My base data is set up as follows:
This has been loaded as a data table [Table 1] in to powerpivot.
My powerpivot, with measures, looks likes so:
The measures are as follows:
CP KG = CALCULATE(SUM([KG]),Table1[Period]="Current period",Table1[Year]="Current Year")
PP KG = CALCULATE(SUM([KG]),Table1[Period]="Prior period",Table1[Year]="Current Year")
Var in KG =Table1[CP KG]-Table1[PP KG]
PP VC =CALCULATE(SUM(Table1[Variable Contribution]),Table1[Period]="Prior Period",Table1[Year]="Current Year")
PP VC/KG =Table1[PP VC]/Table1[PP KG]
Volume Impact = Table1[Var in KG]*Table1[PP VC/KG]
Everything is working as i'd expect except for the 'Volume Impact' totals which i'd expect to be -10,442.57 (the sum of -5,366.53,-3,130.02,-1,946.02) yet it's returning -10,175.61.
Can anyone tell me what i'm doing wrong in the powerpivot calc?
Thanks
My base data is set up as follows:
Site | Product | KG | Variable Contribution | Period | Year |
A | 1 | 1,949 | 5,367 | Prior Period | Current Year |
A | 2 | 2,285 | 6,260 | Prior Period | Current Year |
A | 2 | 1,142 | 2,952 | Current Period | Current Year |
A | 3 | 2,281 | 3,258 | Prior Period | Current Year |
A | 3 | 919 | 1,056 | Current Period | Current Year |
This has been loaded as a data table [Table 1] in to powerpivot.
My powerpivot, with measures, looks likes so:
Values | |||||||
Site | Product | CP KG | PP KG | Var in KG | PP VC | PP VC/KG | Volume Impact |
A | 1 | 1,948.80 | -1,948.80 | 5,366.53 | 2.75 | -5,366.53 | |
2 | 1,142.40 | 2,284.80 | -1,142.40 | 6,260.05 | 2.74 | -3,130.02 | |
3 | 918.72 | 2,280.96 | -1,362.24 | 3,258.46 | 1.43 | -1,946.02 | |
A Total | 2,061.12 | 6,514.56 | -4,453.44 | 14,885.03 | 2.28 | -10,175.61 | |
Grand Total | 2,061.12 | 6,514.56 | -4,453.44 | 14,885.03 | 2.28 | -10,175.61 |
The measures are as follows:
CP KG = CALCULATE(SUM([KG]),Table1[Period]="Current period",Table1[Year]="Current Year")
PP KG = CALCULATE(SUM([KG]),Table1[Period]="Prior period",Table1[Year]="Current Year")
Var in KG =Table1[CP KG]-Table1[PP KG]
PP VC =CALCULATE(SUM(Table1[Variable Contribution]),Table1[Period]="Prior Period",Table1[Year]="Current Year")
PP VC/KG =Table1[PP VC]/Table1[PP KG]
Volume Impact = Table1[Var in KG]*Table1[PP VC/KG]
Everything is working as i'd expect except for the 'Volume Impact' totals which i'd expect to be -10,442.57 (the sum of -5,366.53,-3,130.02,-1,946.02) yet it's returning -10,175.61.
Can anyone tell me what i'm doing wrong in the powerpivot calc?
Thanks