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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.