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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.