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
mrbuttons07
Helper II
Helper II

DAX if Value from Column A is in range of Column B and C

Hello everyone,

I'm currently working on a DAX formula to measure a pass fail result if value from column A is between range of value of column B and Column C.

mrbuttons07_1-1684398185146.png

 

Currently, this is the DAX formula I'm using but it's not turning out the correct result.

Qty Comparison = IF('Purchase Order'[STO Actual Goods Receipt Qty]>'Purchase Order'[Total Qty -10%],"PASS",
IF('Purchase Order'[STO Actual Goods Receipt Qty]<'Purchase Order'[Total Qty +10%],"PASS",
"FAILED"))

Appreciate the help and support, thanks!
1 ACCEPTED SOLUTION
pratyashasamal
Super User
Super User

Hi @mrbuttons07 , 
Try this calculation .

IF(
Table2[Column B]>= Table2[Column A] && Table2[Column C]<= Table2[Column A]
,"Pass"
,"Fail"
)

 Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





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

Proud to be a Super User!





View solution in original post

1 REPLY 1
pratyashasamal
Super User
Super User

Hi @mrbuttons07 , 
Try this calculation .

IF(
Table2[Column B]>= Table2[Column A] && Table2[Column C]<= Table2[Column A]
,"Pass"
,"Fail"
)

 Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





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

Proud to be a Super User!





Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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