Hello guys. Im trying to do a DAX command and I´m getting the following error.
What I´m trying to do is highlight teams based on their names (whenever I click one team, it will highlight it on a visual).
I will paste the DAX code and the error below:
Go to Solution.
It is what it is: you've got the syntax wrong. Head over to www.daxformatter.com, paste the code in there and let it check it. It'll show you where the problem is...
VAR _selectedteam =
VALUES( Teams_Highlight[Team Name] )
VAR _teamtohighlight =
SELECTEDVALUE( 'Premier League'[Team Name] )
VAR _filtered =
ISFILTERED( Teams_Highlight[Team Name] )
VAR _result =
NOT ( _filtered ), "#0079EB",
&& _filtered, "0079EB",
View solution in original post
Thank you a lot for the help. I thought the solution was with the return clause but didn´t know what to return
Click here to read more about the November 2022 updates!
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.