cancel
Showing results 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

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.

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
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.

Proud to be a 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.

Proud to be a Super User!