Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

The syntax for ")" is incorrect

Hello, I am trying to create a measure that highlights a bar when i have made a selection on a slicer. I have created this measure however when i click enter it says the syntax for ")" is incorrect...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Anonymous 

    Please replace TRUE function to TRUE()

     

    VAR _result =
    SWITCH (TRUE(),
    NOT(_filtered),"#0079EB",
    _boroughtohighlight IN _selectedborough
    &&_filtered,"#0079EB",
    "#99C9F7"
    )
     
    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.