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
DeeS
New Member

DAX error message

Hi everyone,

 

I really hope you can help, I'm completely new to PowerBI and DAX but am giving creating a new column a go in my dataset. I have the below but when I run it through a DAX checker and it says it is missing a syntax but doesn't tell me where unfortunately.

 

SLA Met = IF(AND([State Open] = "0", [Incident Type] = "Incident", [Work Time Duration Formatted] >3), "Yes", IF(AND([State Open] = "0", [Incident Type] = "Service Request"), "NO", "Open"))

 

Am I not able to have 3 conditions for my first section? I intend to add a 3rd condition to the 2nd result also but want to nail this one to begin with.

 

Effetively in the end I want to build it up so that the results show as below:

 

State Open    Incident Type            Work Time Duration Formatted    Result

0                     Incident                                >3                                             Miss

0                     Incident                                <=3                                           Hit

0                     Service Request                   >5                                              Miss

0                     Service Request                   <=5                                            Hit

 

Anything else would be "Open"

 

Thanks so much if anyone is able to assist, hopefully it's an easier one?

 

 

 

1 ACCEPTED SOLUTION
marcorusso
Most Valuable Professional
Most Valuable Professional

The AND function has only two arguments, use the && operator instead so it's easier to write.

SLA Met =
IF (
    [State Open] = "0"
        && [Incident Type] = "Incident"
        && [Work Time Duration Formatted] > 3,
    "Yes",
    IF ( [State Open] = "0" && [Incident Type] = "Service Request", "NO", "Open" )
)

View solution in original post

2 REPLIES 2
marcorusso
Most Valuable Professional
Most Valuable Professional

The AND function has only two arguments, use the && operator instead so it's easier to write.

SLA Met =
IF (
    [State Open] = "0"
        && [Incident Type] = "Incident"
        && [Work Time Duration Formatted] > 3,
    "Yes",
    IF ( [State Open] = "0" && [Incident Type] = "Service Request", "NO", "Open" )
)

Thank you so sooo much @marcorusso, this works perfectly!

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.

Top Solution Authors