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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jimpatel
Post Patron
Post Patron

multiple if

Hi,

 

Thanks for looking at my post.

I am looking for dax formula for multiple if condition please.

 

That is I have column named as Date 1, Date 2, quantity

 

I am looking for dax formula to do = if(date1<today and date 2 is empty and quantity = 0 then "statement", if date 1 = date 2 then statement 2, if date 1 = today and date 2 > today then statement 3, etc)

 

Much appreciated 

3 REPLIES 3
jimpatel
Post Patron
Post Patron

Thanks a lot for your reply

 

I am getting below error and any idea please?

Note : I just changed actual name of the table to "Table1" and thats why it is showing error in that line 🙂

Thanks a lot

 

jimpatel_0-1699520222751.png

 

Hi, @jimpatel 

you miss  "  )  " after table1[actual start date])

FreemanZ
Super User
Super User

hi @jimpatel ,

 

try like:

Column =
SWITCH(
   TRUE(),
    [date1]<TODAY()&&ISBLANK([date2])&&[quantity]=0,
    "Statement1",
     [date1]= [date2],
    "Statement2",
    "Statement3",
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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