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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors