Forum Discussion
Issue with Summarize in Power Pivot
- 3 years ago
Ackbar-Learner
Sorry I got distracted with some other business.
Please use the following for measure 22nd Measure: = SUMX ( VALUES ( TabPLGLItem[GLItem] ), [TaxAmountWithSign] )
Hi Ackbar-Learner
Try to add the equal sign
tamerj1 no effect mate🤔
- tamerj13 years agoCommunity Champion
Hi Ackbar-Learner
Would you please copy/paste the code of the four measures?- Ackbar-Learner3 years agoResolver I
Sure tamerj1
1st Measure:
=VAR Result = [AmountWithSign]
VAR TaxApplicable = -1*if([TaxCalcCumulative]>[TaxCalcPeriod],[TaxCalcPeriod],[TaxCalcCumulative])
RETURN
calculate(if(if(HASONEVALUE(TabPLGLItem[GLItem]),values(TabPLGLItem[GLItem]))="Tax",TaxApplicable,Result))
2nd Measure:
=VAR CorrectTotal = SUMMARIZE(TabPLGLItem,[GLItem],"__value",[TaxAmountWithSign])
RETURN
IF(HASONEVALUE(TabPLGLItem[GLItem]),[TaxAmountWithSign],SUMX(CorrectTotal,[__value]))
3rd Measure:
=if(
HASONEFILTER(TabPLGLItem[GLItem])
,
CALCULATE(
[PLTaxAmountWithSign]
,
ALL(TabPLGLItem[GLItem])
,
TabPLGLItem[Index] <= VALUES(TabPLGLItem[Index])
)
,
blank()
)
4th Measure:
=SWITCH(
[HeaderCalcType]
,
BLANK(),BLANK()
,
1,[TaxAmountWithSign]
,
2,[RunningTotal]
)
- tamerj13 years agoCommunity Champion
Ackbar-Learner
Sorry I got distracted with some other business.
Please use the following for measure 22nd Measure: = SUMX ( VALUES ( TabPLGLItem[GLItem] ), [TaxAmountWithSign] )