Forum Discussion
arpost
Post Prodigy
5 years agoHow do you create a running total using a number series rather than a date?
Greetings, PBI Community. I'm needing help with creating a running total using a month sequence number rather than a date. Here's the scenario:
I have a table of data as follows:
| AllocDate | StartDate | Sales | Client | Month Sequence |
| 1/1/2021 | 12/1/2020 | 100 | AcmeTech | 1 |
| 1/2/2021 | 12/1/2020 | 100 | AcmeTech | 1 |
| 2/1/2021 | 12/1/2020 | 200 | AcmeTech | 2 |
| 4/1/2021 | 12/1/2020 | 300 | AcmeTech | 4 |
| 5/1/2021 | 12/1/2020 | 100 | AcmeTech | 5 |
| 1/1/2020 | 10/1/2019 | 500 | LuxTech | 3 |
| 2/1/2020 | 10/1/2019 | 100 | LuxTech | 4 |
| 3/4/2020 | 10/1/2019 | 200 | LuxTech | 5 |
| 5/2/2021 | 10/1/2019 | 300 | LuxTech | 19 |
This table is connected to a calculated table that has a list of numbers from 1-24 for 2 years' worth of months:
I'm wanting to put the Month Sequence[Month No.] field into a table and have the month number total and the running total shown side by side:
I can write these for dates easily, but that same method doesn't seem to work with non-dates.... Or I'm writing them incorrectly.
5 Replies
- aj1973
Community Champion
- v-henryk-mstf
Community Support