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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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