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
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
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.