Forum Discussion
Cumulative Total
- 8 years ago
Anonymous,
For the cumulative sum, you could try with the DAX fomula in a new measure like:
Cumulative Sum =
CALCULATE (
SUM ( Master[Mass(kg)]),
FILTER (
ALL ( Master[Trading Day],Master[Sales Year]),
Master[Trading Day]<= MAXX ( FILTER ( Master, Master[Sales Year] = 2018 ), Master[Trading Day] )
&& Master[Sales Year] = 2017
)
)A sample result I got is like:
Regards,
Charlie Liao
Anonymous,
For the cumulative sum, you could try with the DAX fomula in a new measure like:
Cumulative Sum =
CALCULATE (
SUM ( Master[Mass(kg)]),
FILTER (
ALL ( Master[Trading Day],Master[Sales Year]),
Master[Trading Day]<= MAXX ( FILTER ( Master, Master[Sales Year] = 2018 ), Master[Trading Day] )
&& Master[Sales Year] = 2017
)
)
A sample result I got is like:
Regards,
Charlie Liao
- Anonymous8 years agoNot applicable
Perfect solution, thank you very much Charlie