legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,214
- Office Version
- 365
- Platform
- Windows
Hello,
I am using Power Query for Excel and wanted a dynamic running total for each month shown on the far right. The source data comes from another system so after the end of December it automatically shows January, February, March etc. For each row starting with Oct as the first month I want the cumulative running total for the current month + the previous month values.
So for the first row Oct should show $10, Nov $30 (10+20) and Dec $60 (10+20+30). The second row should show $5, $15 (5+10), and $30 (5+10+15) for Oct, Nov, Dec, respectively.
When January data shows I want it to dynamically add the values for Oct+Nov+Dec. I'm hoping the solution is efficient so it doesn't slow down my query. Thanks in advance
I am using Power Query for Excel and wanted a dynamic running total for each month shown on the far right. The source data comes from another system so after the end of December it automatically shows January, February, March etc. For each row starting with Oct as the first month I want the cumulative running total for the current month + the previous month values.
So for the first row Oct should show $10, Nov $30 (10+20) and Dec $60 (10+20+30). The second row should show $5, $15 (5+10), and $30 (5+10+15) for Oct, Nov, Dec, respectively.
When January data shows I want it to dynamically add the values for Oct+Nov+Dec. I'm hoping the solution is efficient so it doesn't slow down my query. Thanks in advance
Region | Station | ID | Type | Oct | Nov | Dec |
North | 111 | 0000 | Low | $10 | $20 | $30 |
South | 222 | 9999 | Low | $5 | $10 | $15 |
East | 333 | 8888 | Medium | $20 | $40 | $60 |
West | 444 | 7777 | High | $3 | $6 | $9 |