Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
"I want cumulative sum of values based on different countries , here is the dataset and the dax I written. The cumulative sum of each country is 100. Suppose I have 2 countries "AL" and "NL". The cumulative sum of "AL" would be 100 and same would be for "NL". The result from the DAX i have written gives me 200 for "NL". The cumulative sum for "AL" ends on 100, so for "NL" it starts from 100. I just want to start it from "0" for "NL"."FOR "AL"
FOR "NL"
Solved! Go to Solution.
Hi @jay_patel ,
country code must just be equal ("=")and not less than equal ("<="):
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @jay_patel ,
country code must just be equal ("=")and not less than equal ("<="):
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |