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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Return a value if a value is between to conditions

Hi Power BI Geeks,

 

Earnings achieved  = VAR X = [Hours of work] * 0.51
VAR Y = [Hours of work]
return
IF(Y>1248,X,0)

If I use this measure everything goes on the right way, except that it still includes the hours of work below 1248 whereas sums everything. If I apply this in the visual filter it returns only the selected values. 

Additionally how do you write a dax measure where i can show to values such as if Y > 1248 en Y < 1500.?

Thank you in advance.
2 REPLIES 2
camargos88
Community Champion
Community Champion

@Anonymous ,

 

Earnings achieved  = VAR X = [Hours of work] * 0.51
VAR Y = [Hours of work]
return
IF(Y>1248,X,BLANK())


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Hello Camargos,

 

The measure you gave me does not work. Changing it into blank does only show blanks in each row but summed up it does not exclude the blank rows. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.