I have the data in following input format:
| Year | Month | Code | Value |
| 2020 | 1 | Code1 | 1.2726 |
| 2020 | 2 | Code1 | 4.4541 |
| 2020 | 3 | Code1 | 2.5452 |
| 2020 | 4 | Code1 | 3.8178 |
| 2020 | 5 | Code1 | 3.8178 |
| 2020 | 6 | Code1 | 16.03476 |
| 2019 | 9 | Code1 | 1.2726 |
| 2019 | 10 | Code1 | 0.50904 |
| 2019 | 11 | Code1 | 35.6328 |
| 2019 | 12 | Code1 | 7.6356 |
and I need to output it in the following format:
Here, the current previous month's value should change with the change in a month and the previous should get calculated automatically.
| Code | Current Month | Prior Month | Change $ | Change % | Jun 20 | May 20 | April 20 | March 20 | February 20 | January 20 | December 19 | November 19 | October 19 | September 19 |
| Code1 | 16.03476 | 3.8178 | 12.21696 | 320 | 16.03476 | 3.8178 | 4.8006 | 2.5452 | 4.4541 | 1.2726 | 7.6356 | 35.6328 | 0.50904 | 1.2726 |