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
Syndicate_Admin
Administrator
Administrator

Cambiar con IN DAX

Hola comunidad,

¿Alguien puede decirme qué está mal con la primera imagen a continuación?

La imagen 2 funciona bien

Gracias

Zoey

zraopingm_0-1713982669939.png

zraopingm_1-1713982681665.png

1 ACCEPTED SOLUTION

¡¡Perfecto!! Gracias

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hola

FYQ= CAMBIAR ( Fecha[Nº de mes], 1, "Pregunta 1", 2, "Pregunta 1", 3, "Pregunta 1", 4, "Pregunta 2", 5, "Pregunta 2", 6, "Pregunta 2", 7, "Pregunta 3", 8, "Pregunta 3", 9, "Pregunta 3", 10, "Pregunta 4", 11, "Pregunta 4", 12, "Pregunta 4", "Desconocido" )

O

FYQ= CAMBIAR ( TRUE(),

Date[Month No]>=7 && Date[Month No]<=9, "Pregunta 3",

Fecha[Nº de mes]>=1 && Fecha[Nº de mes]<=3, "Q1",

Fecha[Nº de mes]>=4 && Fecha[Nº de mes]<=6, "Q2","Q4" )

¡Gracias, esto es genial!

Zoey

Syndicate_Admin
Administrator
Administrator

Probar

FYQ = SWITCH(TRUE(), 'date'[month no] IN {7,8,9}, "Q4")

¡¡Perfecto!! Gracias

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.

Top Solution Authors