Goal:
- 1 - show the change of every month compare with last YTD in the table form in only selected year
- 2 - show the change in scorecard
Data :
ind YEAR MON Figures
1 2020 JAN 12321
2 2020 FEB 344
3 2020 MAR 5000
4 2020 APR 325
5 2020 MAY 747
1 2019 JAN 54091
2 2019 FEB 349
3 2019 MAR 789
4 2019 APR 901
5 2019 MAY 2356
Desire Result:
- YTD column is accumulating Figures within the year
- Change column is showing the change compare to last month YTD
Usage - Default filter as newest year = 2020 , user can select the specific single year to view the change in scorecard
ind YEAR MON Figures YTD Change
1 2020 JAN 12321 12321 0
2 2020 FEB 344 12665 344
3 2020 MAR 5000 17665 5000
4 2020 APR 325 17990 325
5 2020 MAY 747 18737 747
1 2019 JAN 54091 54091 0
2 2019 FEB 349 54440 349
3 2019 MAR 789 55229 789
4 2019 APR 901 56130 901
5 2019 MAY 2356 58486 2356
How can i achieve this ?