I think this might be simple but I'm not able to figure this out. I have a data set with the running totals and I want to get the periodic numbers
Before:
| Year | Quarter | Amount |
| 2018 | Q1 | 10 |
| 2018 | Q2 | 40 |
| 2018 | Q3 | 80 |
| 2018 | Q4 | 90 |
| 2019 | Q1 | 100 |
| 2019 | Q2 | 400 |
| 2019 | Q3 | 800 |
| 2019 | Q4 | 900 |
After:
| Year | Quarter | Amount | Amount_Periodic |
| 2018 | Q1 | 10 | 10 |
| 2018 | Q2 | 40 | 30 |
| 2018 | Q3 | 80 | 40 |
| 2018 | Q4 | 90 | 10 |
| 2019 | Q1 | 100 | 100 |
| 2019 | Q2 | 400 | 300 |
| 2019 | Q3 | 800 | 400 |
| 2019 | Q4 | 900 | 100 |
Could someone please help me with a workflow for the same? Thanks