Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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:
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |