Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
tnarenderr
Frequent Visitor

Running total with condition

Hello All,

 

Am facing dificuties in wriign measure for the below scenario.

 

If Running Total is <= 80 then True and in the range of 80.1 to 80.9 make it TRUE for the First occurrence record only.      (NOTE:Data is sorted by Asenceing order) 

 

Below is the sample data and expected output.

 

Running Total           T or F

44.04                           True
77.2                             True
80.21                           True
80.31                           False
97.93                           False
98.96                           False
100                             False

2 ACCEPTED SOLUTIONS
v-xiaotang
Community Support
Community Support

Hi @tnarenderr 

Thanks for reaching out to us.

>> If Running Total is <= 80 then True and in the range of 80.1 to 80.9 make it TRUE for the First occurrence record only.      (NOTE:Data is sorted by Asenceing order) 

you can try this measure,

Measure = 
var _min=CALCULATE(MIN('Table'[Running Total]),FILTER(ALL('Table'),'Table'[Running Total]>80))
return IF(MIN('Table'[Running Total])<=80 || MIN('Table'[Running Total])=_min,TRUE(),FALSE())

vxiaotang_0-1663656626262.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

tnarenderr
Frequent Visitor

Thanks for your response. how to rewrite measure if Running Total is also a measure. 

View solution in original post

3 REPLIES 3
tnarenderr
Frequent Visitor

Thanks for your response. how to rewrite measure if Running Total is also a measure. 

Hi @tnarenderr 

Please try 

 

Measure = 
var _min= minx(FILTER(ALL('Table'),[Running Total]>80),[Running Total])
return IF([Running Total]<=80 || [Running Total]=_min,TRUE(),FALSE())

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

v-xiaotang
Community Support
Community Support

Hi @tnarenderr 

Thanks for reaching out to us.

>> If Running Total is <= 80 then True and in the range of 80.1 to 80.9 make it TRUE for the First occurrence record only.      (NOTE:Data is sorted by Asenceing order) 

you can try this measure,

Measure = 
var _min=CALCULATE(MIN('Table'[Running Total]),FILTER(ALL('Table'),'Table'[Running Total]>80))
return IF(MIN('Table'[Running Total])<=80 || MIN('Table'[Running Total])=_min,TRUE(),FALSE())

vxiaotang_0-1663656626262.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors