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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
omarrene17
New Member

La sintaxis de ')' es incorrecta.

¡Hola!

¡No sé por qué este código DAX no funciona! ¡Muchas gracias!

BarToHighlight (BarToHighlight)
DONDE _selecteddates ?
VALUES(SelectedDate[Fecha ])
VAR _datetohighlight de VAR ( VAR _datetohighlight VAR)
SELECTEDVALUE ( 'Tabla1'[Fecha ] )
VAR _filtered ?
ISFILTERED ( SelectedDate[Fecha ] )
VAR _result ?
SWITCH (
Verdad
NOT ( _filtered ), "#0079EB",
_datetohighlight EN _selecteddates
&& _filtered, "#0079EB",
"#99C9F7"
)
1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hola @omarrene17

Parece que te estás perdiendo.

RETURN _result

al final.

saludos

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@omarrene17 , Probar como

arToHighlight ( arToHighlight)
VAR _selecteddates ?
VALUES(SelectedDate[Fecha ])
VAR _datetohighlight de VAR ( VAR _datetohighlight VAR)
SELECTEDVALUE ( 'Tabla1'[Fecha ] )
VAR _filtered ?
ISFILTERED ( SelectedDate[Fecha ] )
devolución
SWITCH (
Verdad
NOT ( _filtered ), "#0079EB",
_datetohighlight EN _selecteddates
&& _filtered, "#0079EB",
"#99C9F7"
)

OwenAuger
Super User
Super User

Hola @omarrene17

Parece que te estás perdiendo.

RETURN _result

al final.

saludos

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.