The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I'm trying to use SUMX to create a cumulative sum of a measure that counts the amount of distinct Projects.
Currently I have a distinct incomplete Project count measure:
Incomplete Projects =
For some reason my Cumulative Active Projects measure is not adding up over time. What am I doing wrong here?
Solved! Go to Solution.
Hi! You can use a running total through quick meausures, or use the below DAX:
Proud to be a Super User! | |
Hi! You can use a running total through quick meausures, or use the below DAX:
Proud to be a Super User! | |
Thank you @audreygerred, that worked perfectly. I'm still curious, though, why is my old measure not working?
No problem! SUMX is an iterator function so it completes the summing at each row, then sums those up for a total, but it is not meant for cumulative or running total - just a row and total. Here is a blog I recently wrote abot iterators: http://powerbiwithme.com/2023/11/01/the-iterator-edition/
Proud to be a Super User! | |
OK, when I looked up similar questions to mine I saw many people using SUMX. Thank you for the explanation!
Anytime! Thanks for asking!
Proud to be a Super User! | |
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
112 | |
80 | |
65 | |
48 | |
38 |