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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

DAX help - IF statement

Hello I am wanting to add a conditional column in my dataset so it checks for the following outcomes. The column would then be a Match or Non Match. So something like IF(AND(??

See below outcomes.

 

MATCH

Sat > sat

Sat> sat minor

Sat minor > Sat

Risk of > risk of

Unsat > unsat

 

NO MATCH

Sat> risk of/unsat

Sat minor > risk of/unsat

Risk of > sat/sat minor/ unsat

Unsat> sat/sat minor/ risk of

 

My data looks a bit like this - Mock up

 

Customer_OutcomeOverscoreMatch column
SatisfactorySatisfactory with minors 
2 REPLIES 2
Greg_Deckler
Super User
Super User

You could do it that way but using && and || is cleaner in my opinion. And you might consider SWITCH



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Can you give me an example of how I could use it Greg?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.