Forum Discussion
Running Total for 100 columns
- 4 years ago
I have calculated the running total now after unpivoting with the help of here:
https://www.youtube.com/watch?v=EFQBMJ6JyCQ&t=313s
Hi Anne1234
I think the best thing to do is to unpivot this, and then you can do a running total on one column. You can do this easily in Power Query. I'm not sure how to unpivot in DAX though, or even if you can.
The following DAX can be adapted to do a running total. I hope this helps, but it might need someone else to help tune this so it fits your situation.
Neil
Hello pbix1,
unpivoting is a great idea! However, is there any way how I can calculate the running total in power query, and not as DAX? Because I would need to pivot the table afterwards again.
Thank you for your help,
Anne
- Anne12344 years agoFrequent Visitor
I have calculated the running total now after unpivoting with the help of here:
https://www.youtube.com/watch?v=EFQBMJ6JyCQ&t=313s