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
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:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |