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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DessiG
Regular Visitor

Operator or expression '( )" is not supported in this context

Hi Everyone,

New here and would highly appreciate your help. 

I am getting the error "Operator or expression '( )" is not supported in this context"

I checked a couple of times, but in my opinion the formula is correct - at least this is how I would write it in Excel. Please can someone help out 

Thanks in advance, 

Dessi

 

 

DessiG_0-1727701744982.png

 

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

You had some extra () in there and one of your conditions was outside the IF().  Give this a try.

 

Discussion Points =
IF (
    Data[Follow-upDate] <= TODAY (),
    "To Be Discussed",
    IF (
        ISBLANK ( Data[Follow-upDate] ),
        "To Be Discussed",
        IF (
            AND ( ISBLANK ( Data[Completion Date] ), ISBLANK ( Data[Follow-upDate] ) ),
            "To Be Discussed",
            "OK"
        )
    )
)

 

View solution in original post

jdbuchanan71
Super User
Super User

You can also use a SWITCH instead of nested IFs, makes it easier to read sometimes.

 

Discussion Point =
SWITCH (
    TRUE (),
    Data[Follow-upDate] <= TODAY (), "To Be Discussed",
    ISBLANK ( Data[Follow-upDate] ), "To Be Discussed",
    AND ( ISBLANK ( Data[Completion Date] ), ISBLANK ( Data[Follow-upDate] ) ), "To Be Discussed",
    "OK"
)

 

View solution in original post

7 REPLIES 7
DessiG
Regular Visitor

 Both solutions worked - THANK YOU so much for the pormpt help!!!!

 

jdbuchanan71
Super User
Super User

You can also use a SWITCH instead of nested IFs, makes it easier to read sometimes.

 

Discussion Point =
SWITCH (
    TRUE (),
    Data[Follow-upDate] <= TODAY (), "To Be Discussed",
    ISBLANK ( Data[Follow-upDate] ), "To Be Discussed",
    AND ( ISBLANK ( Data[Completion Date] ), ISBLANK ( Data[Follow-upDate] ) ), "To Be Discussed",
    "OK"
)

 

Thank you so much for your help!!! One more question, please: I am trying to exclude specific test from a column, but the "NOT" does not to be acceptable. Please could you help with the way to exclude / filter out based on specific test, please. THANKS

 

Discussion Point =
SWITCH (
TRUE (),
Data[Follow-upDate] <= TODAY (), "To Be Discussed",
ISBLANK ( Data[Follow-upDate] ), "To Be Discussed",
AND ( ISBLANK ( Data[Completion Date] ), ISBLANK ( Data[Follow-upDate] ) ), "To Be Discussed",
Data[Status] not "COMPLETED", "To be Discussed",
"OK"
)

Try it like this.

Discussion Point =
SWITCH (
    TRUE (),
    Data[Follow-upDate] <= TODAY (), "To Be Discussed",
    ISBLANK ( Data[Follow-upDate] ), "To Be Discussed",
    AND ( ISBLANK ( Data[Completion Date] ), ISBLANK ( Data[Follow-upDate] ) ), "To Be Discussed",
    Data[Status] <> "COMPLETED", "To be Discussed",
    "OK"
)
jdbuchanan71
Super User
Super User

You had some extra () in there and one of your conditions was outside the IF().  Give this a try.

 

Discussion Points =
IF (
    Data[Follow-upDate] <= TODAY (),
    "To Be Discussed",
    IF (
        ISBLANK ( Data[Follow-upDate] ),
        "To Be Discussed",
        IF (
            AND ( ISBLANK ( Data[Completion Date] ), ISBLANK ( Data[Follow-upDate] ) ),
            "To Be Discussed",
            "OK"
        )
    )
)

 

jdbuchanan71
Super User
Super User

Please post the text of your meaure here instead of a screen shot so we don't have to re-type it out to test it.

Apologies 🙂 and here it is

 

 

Discussion Points = (if((Data[Follow-upDate]<=TODAY(),"To Be Dicussed", IF(ISBLANK(Data[Follow-upDate]),"To Be Diecussed",IF(AND(ISBLANK(Data[Completion Date]),ISBLANK(Data[Follow-upDate])),"To Be Discussed"),"OK"))))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.