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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AW1976NOVA
Post Patron
Post Patron

DAX: IF(OR Created Measure

Hi there.

 

I am trying to do a simple If(or( measure but have three different criteria I want to consider.  Unfortunately, I only know how to handle two conditions.

 

I need to have this be a measure because I have other measures that are dependent on it.

 

Here is what I currently have:

MoM MARA PROSP Delta Type = if([MoM MARA PROSP]>0,"Increase","Decrease")

 

But what I also need it to consider is if the [MoM MARA PROSP] value is BLANK or 0.  If [MoM MARA PROSP] value is BLANK or 0 I want it to return "New".

 

Is there anyway I can include this into my current measure?

 

 

 

Thank you,

Andrew

1 ACCEPTED SOLUTION
Anonymous
Not applicable


@AW1976NOVA

MoM MARA PROSP Delta Type = SWITCH(TRUE(),
[MoM MARA PROSP]=BLANK(),"New",
[MoM MARA PROSP]=0,"New"
[MoM MARA PROSP]>0,"Increase","Decrease")

View solution in original post

2 REPLIES 2
Anonymous
Not applicable


@AW1976NOVA

MoM MARA PROSP Delta Type = SWITCH(TRUE(),
[MoM MARA PROSP]=BLANK(),"New",
[MoM MARA PROSP]=0,"New"
[MoM MARA PROSP]>0,"Increase","Decrease")
VijayP
Super User
Super User

@AW1976NOVA 

 

Instead of using OR Condition you can use "||" 

SWITCH(TRUE(),

Something="X"||Something="Y"||Something="Z", "YEs","NO")

Try this way




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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