Hi I am having with Summarize function in Power Pivot Dax
Below are four dependent measures one after the other. As you can see for the measure Projected Amount (EUR), the subtotals are correct but the last one just after tax is not deducting the tax. Please see the Dax for each measure below:
The issue seems to lie between the 2nd and 3rd measure. I cannot get the Summarize function to work correctly in the 2nd measure so that the 3rd measure (Running Total) can read it and apply same in its formula.
Any help would be greatly appreciated.
Solved! Go to Solution.
=VAR Result = [AmountWithSign]
VAR TaxApplicable = -1*if([TaxCalcCumulative]>[TaxCalcPeriod],[TaxCalcPeriod],[TaxCalcCumulative])
=VAR CorrectTotal = SUMMARIZE(TabPLGLItem,[GLItem],"__value",[TaxAmountWithSign])
TabPLGLItem[Index] <= VALUES(TabPLGLItem[Index])
This was so easy and I went to fetch it on the moon😃. Any clue why did the Summarize function not work?
Also, would you mind explaining what is actually the above function doing? This will be for the benefit of people who will read this afterwards and myself as well.