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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.