Forum Discussion
Anonymous
2 years agoNot applicable
Cummilative sum after a specific month
Hi I want to display the cummilative sum only from August months onward but not able to acheive this . In Aug , Final FG STK Total should be 221.362 +(-69.45) ( in current it is showing only -69.45)...
- 2 years ago
Hi Anonymous
Try this calculated column
CALCULATE ( SUM ( 'table'[rolling total] ), FILTER ( ALL ( 'table' ), 'table'[month] >= 7 && 'table'[month] <= EARLIER ( 'table'[month] ) ) ) - 2 years ago
Hi Anonymous ,
You could try below code:-
Cumulative_Total = VAR CurrentMonth = [Month] var _result = CALCULATE( SUM('Table (3)'[Rolling_total]), FILTER( ALL('Table (3)'), [Month] <= CurrentMonth && [Month] >= 7 ) ) RETURN IF('Table (3)'[Month] >=8,_result)Output:-
Samarth_18
Community Champion
2 years agoHi Anonymous ,
You could try below code:-
Cumulative_Total =
VAR CurrentMonth = [Month]
var _result =
CALCULATE(
SUM('Table (3)'[Rolling_total]),
FILTER(
ALL('Table (3)'),
[Month] <= CurrentMonth && [Month] >= 7
)
)
RETURN IF('Table (3)'[Month] >=8,_result)Output:-