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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Anonymous
Not applicable

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
Memorable Member
Memorable Member

Hi @Anonymous , 
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
Memorable Member
Memorable Member

Hi @Anonymous , 
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
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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