Forum Discussion
Snagalapur
6 months agoHelper IV
Cumulative phasing
Hi All, Kindly suggest how to modify below measure to show cumulative values ie.. P01 = P01, P02 = P01 +P02, P03 = P01 +P02+P03 Budget PNL = VAR LC= CALCULATE(SUM(FACT_DATA[AMOUNT]), FILTER...
- 6 months ago
no problem. I did try below code block to modyfy my formulas and this works
Cumulative Sales = VAR MaxDate = MAX('DateTable'[Date]) RETURN CALCULATE( SUM('Sales'[Amount]), FILTER( ALLSELECTED('DateTable'), 'DateTable'[Date] <= MaxDate ) )
Snagalapur
6 months agoHelper IV
Thnak you for taking time, I did modify content to provide more details.
Ashish_Mathur
6 months agoSuper User
sorry but still cannot understand.
- Snagalapur6 months agoHelper IV
no problem. I did try below code block to modyfy my formulas and this works
Cumulative Sales = VAR MaxDate = MAX('DateTable'[Date]) RETURN CALCULATE( SUM('Sales'[Amount]), FILTER( ALLSELECTED('DateTable'), 'DateTable'[Date] <= MaxDate ) )