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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.