Forum Discussion
How to show difference in value
Hi,
I have a line a clustred column chart with the x-axis showing a text output for the financial year (i.e 18/19, 19/20, 20/21 etc).
I have the values below
| FY | Value |
| 18/19 | 1.02 |
| 19/20 | 1.12 |
| 20/21 | 1.08 |
What I would then like to see as a secondary line would be the difference Year on Year. So my line would show
| FY | Value | Diff |
| 18/19 | 1.02 | 0.00 |
| 19/20 | 1.12 | 0.10 |
| 20/21 | 1.08 | -0.04 |
Is there anyway of doing this within the chart automatically, or is there a calculation required and if so, what would it be please? The problem I think I have is that the 'FY' outputs are a text so can't use a MIN or MAX function.
1 Reply
- AnonymousNot applicable
Try creating a calculated column in the "data" pane on the left hand side. You should get to your table and click "new column".
= CALCULATE(SUM('Table'[Value]), SAMEPERIODLASTYEAR('Table'[Value]))
Remember to replace 'Table'[Value] with whatever your table/column name is 🙂 Let me know!