Forum Discussion
Show % change for total yoy
- Anonymous4 years ago
Hi Raghda_Alshehhi ,
You can calculate the total for the previous year as
previous total = CALCULATE(SUM('Table'[Total]),FILTER(ALLSELECTED('Table'),[year]=MAX('Table'[year])-1))+0The percent change is then calculated as follows.
percentage = DIVIDE(SUM('Table'[Total])-[previous total],[previous total])+0You can try the stacked column chart to dispaly.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Raghda_Alshehhi ,
You can calculate the total for the previous year as
previous total = CALCULATE(SUM('Table'[Total]),FILTER(ALLSELECTED('Table'),[year]=MAX('Table'[year])-1))+0
The percent change is then calculated as follows.
percentage = DIVIDE(SUM('Table'[Total])-[previous total],[previous total])+0
You can try the stacked column chart to dispaly.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is excellent. This works except I have another column called version. How do I add version = version to this. Basically I have multiple years as additional row so want it where field version is the same (aswell as the year is minus one as per example which works)