Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I have the following table, as you can see the Sum of distanceKM is 512.
I want o make a measure to calculate the Sum of distanceKM until its value is less than 450km.
So, I want a condition in the measure to stop calculating the Sum once it will reach 450km.
The reason is that I want to know on which row the sum will be 450km or less.
it look similar to this in Excel
Hi @tamim ,
Try this code for measure:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 12 | |
| 10 | |
| 10 | |
| 9 | |
| 8 |