Forum Discussion
ronaldt5
4 years agoFrequent Visitor
Cumulative total Year on Year
Please help! I would like a measure that gets me the cumulative total year on year. Thank you
- 4 years ago
Hi, ronaldt5 ;
Base on my understand , you could create a measure .
Measure = CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),[name]=MAX('Table'[name])&&[Date]<=MAX('Table'[Date])))Or
percent% = var _result= DIVIDE(SUM('Table'[value]), CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),[name]=MAX('Table'[name])&& YEAR([Date])=YEAR(MAX('Table'[Date]))-1)))-1 return IF(_result<>-1,_result)The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yalanwu-msft
Community Support
4 years agoHi, ronaldt5 ;
Base on my understand , you could create a measure .
Measure =
CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),[name]=MAX('Table'[name])&&[Date]<=MAX('Table'[Date])))
Or
percent% =
var _result=
DIVIDE(SUM('Table'[value]),
CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),[name]=MAX('Table'[name])&& YEAR([Date])=YEAR(MAX('Table'[Date]))-1)))-1
return IF(_result<>-1,_result)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.