March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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) |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
16 | |
13 | |
12 | |
9 |
User | Count |
---|---|
34 | |
31 | |
20 | |
19 | |
17 |