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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Need help with Measure

Dear All - I need your help to create a measure as below

 

If Code is = “AAEA” or “CAPJ” or “MRAJ-1” or “12786” then return PASS else FAIL

 

DATA

 

CODE
AAEA
CALJ
CAPJ
AU31
AU04
GROJ
MORJ
MRAJ
MRAJ-1
12786
MRAJ-2
87979
2 REPLIES 2
ryan_mayu
Super User
Super User

@gauravnarchal 

Pls try this

 

Column = if('Table'[CODE] in {"AAEA","CAPJ","MRAJ-1" , "12786" },"PASS","FAIL")

 

1.PNG

Measure = if(max('Table'[CODE]) in {"AAEA","CAPJ","MRAJ-1" , "12786" },"PASS","FAIL")

1.PNG





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

Proud to be a Super User!




Hi @ryan_mayu  - With the measure you suggested, it is taking a lot of time to load.  Also, I am getting the below error. 

 

I did not try the column as I am keener to achieve this through the measure.

 

gauravnarchal_0-1632931618055.png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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