Forum Discussion

arpost's avatar
arpost
Icon for Post Prodigy rankPost Prodigy
5 years ago

How 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:

AllocDateStartDateSalesClientMonth Sequence
1/1/202112/1/2020100AcmeTech1
1/2/202112/1/2020100AcmeTech1
2/1/202112/1/2020200AcmeTech2
4/1/202112/1/2020300AcmeTech4
5/1/202112/1/2020100AcmeTech5
1/1/202010/1/2019500LuxTech3
2/1/202010/1/2019100LuxTech4
3/4/202010/1/2019200LuxTech5
5/2/202110/1/2019300LuxTech19

 

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

    • arpost's avatar
      arpost
      Icon for Post Prodigy rankPost Prodigy

      aj1973, thanks for replying! That's super close, but is there a way to configure it so that uses a relationship with a parent table (1 side of a 1:* as in model image above) and shows 0 if there is nothing for a given period?

       

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Icon for Community Support rankCommunity Support

    Hi arpost ,

     

    Is aj1973  suggestion helpful? If the problem has been solved, please mark the correct response as the solution to help the other members find it more quickly. If the problem persists, please point it out.


    Best Regards,
    Henry