Hello,
I need to compute the difference between the current year and previous year of data.
I am using a vertical table, with a break on 2 dimensions ( Year, and Division).
I am able to get the correct result by using the Relative Value function as :
=[Total Members] - RelativeValue([Total Members];([Year]);-1)
However, if I add an additional column to the table that I need to use to sort by, then the calculation doesn't work. I know the Relative Value function takes the sort order into consideration but is there a work around this?
Thanks for any help!
Maria
sort number | Year | Division | Region | District | members | difference ([Total Members] - RelativeValue([Total Members];([Year]);-1)) | |
1 | 2015 | West | California | PR | 102 | -1,002 | |
2 | California | YT | 17 | 17 | |||
3 | West | 435 | -669 | ||||
4 | 2014 | West | California | PR | 1,104 | -34 | |
5 | California | YT | 0 | 0 | |||
6 | West | 1,104 | -34 |