Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Gurus,
Im just a newbie, i wanted to get a running total using a power query.
i have a po and dates for each po. how can i achieved the result with running total for each po with respect to their dates.
PO | Date (Month/Day/Year) | Value | Running Total |
AAAA-1 | 1/1/2020 | 100 | 100 |
AAAA-1 | 2/1/2020 | 200 | 200 |
Total Year End 2020 | 300 | ||
BBB-2 | 4/1/2020 | 400 | 400 |
BBB-2 | 6/1/2020 | 100 | 500 |
Total Year End 2020 | 500 | ||
BBB-4 | 7/1/2021 | 100 | 300 |
BBB-4 | 10/1/2021 | 500 | 800 |
Total Year End 2021 | 1100 |
Solved! Go to Solution.
Hi again,
still something is not correctly separated from its year.
Also, how can i make the date as month or its possible to have a running total with respect to its month and po ..
Thanks again.
Questa è una situazione diversa da quelle specificate da te nel primo messaggio.
Anche la situazione di più anni per lo stesso PO può essere gestita con una modifica dello script che ho proposto.
Ma adesso non ho tempo per farlo (anche se non ci vuole molto) perché devo cucinare 😋.
se qualcuno non posta prima la soluzione, ci ritornerò appena posso.
PS
probabilmente queste cose sono più semplici da fare in DAX non usando M.
Still struggling how to do in using power query or DAX.
Please your kind support how can able to show it as per required. Thank you
hello again.. it works but it doesn't separate the po running total to respected year..
PO | Date | value | running total |
AAA-1 | Jan. 1, 2020 | 200 | 200 |
AAA-1 | Feb. 2, 2020 | 300 | 500 |
500 (total for 2020) | |||
AAA-1 | Apr. 20, 2021 | 500 | 500 |
AAA-1 | Dec.2, 2021 | 100 | 600 |
600 (total for 2021) | |||
BBB-1 | Mar. 3, 2020 | 200 | 200 |
200 (total for 2020) | |||
BBB-1 | Aug. 5, 2021 | 1000 | 1000 (total for 2021) |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
10 | |
10 | |
8 | |
7 |