Measure to sum up instead of recalculated at row level

lalaisgongon

New Member
Joined
Jan 30, 2018
Messages
1
Dear all
Could i seek your advice on the below

Thanks in advance!

I cant seem to get my Lower level calculation to sum up at the lower level, it is now calculating at every level.

My sample file is available on http://drive.google.com/open?id=1lehGxqQG2vE_D3wGR0xvuZcNpMTL-Pp7

Sales 1:=CALCULATE(sum([Total Sales]),filter(‘Table1’,if(HASONEVALUE(Selection1[Version]),Table1[Version]=values(‘Selection1′[Version]),Table1[Version]=”void”)))
Qty 1:=CALCULATE(sum([Qty]),filter(‘Table1’,if(HASONEVALUE(Selection1[Version]),Table1[Version]=values(‘Selection1′[Version]),Table1[Version]=”void”)))
ASP 1a:=DIVIDE([Sales 1],[Qty 1],0)
Price Var a:=([ASP 2a]-[ASP 1a])*[Qty 1]
Mix Var a:=([ASP 2a]-[ASP 1a])*([Qty 2]-[Qty 1])
Vol Var a:=([Qty 2]-[Qty 1])*[ASP 1a]

For all those in selection 2, it the same by driven a different table (selection 2 instead of selection 1)

If you see the numbers in red, they dont have up nicely to the top cat (fruits/Veg)
I want them to be a summation of the numbers below for eg, for Price Var a (-0.4+(-0.4)+0=-0.8 instead of -1.1(which is calculated at the upper row level)

Thanks again!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,214,985
Messages
6,122,607
Members
449,090
Latest member
vivek chauhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top