SunProj3cT
New Member
- Joined
- Nov 2, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Good evening, people.
I'm in need of a function on power query that sums the running total across its categories, but compares the running total value to a previously defined maximum for its category. If running total is greater than its maximum, it subtracts its own value and remains the same as (i-1). In addition, it should add 0 to a verification column.
I used this code from myonlinetraininghub (https://www.myonlinetraininghub.com/grouped-running-totals-in-power-query) and it solves part of my problem, but not the entirety of it
Here's a screenshot of an expected result:
I would be very pleased if anyone could help me with this. It doesn't seem to be difficult to solve, but I've tried several different solutions and none have worked, so I'm having a hard time with this.
Thanks in advance
I'm in need of a function on power query that sums the running total across its categories, but compares the running total value to a previously defined maximum for its category. If running total is greater than its maximum, it subtracts its own value and remains the same as (i-1). In addition, it should add 0 to a verification column.
I used this code from myonlinetraininghub (https://www.myonlinetraininghub.com/grouped-running-totals-in-power-query) and it solves part of my problem, but not the entirety of it
Here's a screenshot of an expected result:
I would be very pleased if anyone could help me with this. It doesn't seem to be difficult to solve, but I've tried several different solutions and none have worked, so I'm having a hard time with this.
Thanks in advance