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
EshaanG
Helper I
Helper I

Sincronizar dos columnas para la visualización

Hola

Tengo datos como este

PersonID TransactionID TransactionMonth Training TrainingMonth

1 X1 de enero de 2020 C1 de febrero de 2020

1 X2 Febrero 2020 C2 Febrero 2020

2 X3 de febrero de 2020 C2 febrero 2020

Quiero resumirlo como abajo :

Mes - Transacciones - Capacitaciones

Enero 2020 1 0

Febrero 233

¿Cómo sincronizo los dos meses en un mes común para poder mostrar ambas métricas?

¡Muchas gracias!

1 ACCEPTED SOLUTION
HashamNiaz
Solution Sage
Solution Sage

¡Hola!

Intente crear una relación inactiva entre la columna de fecha y mes de entrenamiento.

A continuación, escriba DAX utilizando esta relación inactiva. Puede ver el siguiente vídeo sobre cómo implementar esto en su escenario;

https://www.youtube.com/watch?v=ppxcpuNMBoE&feature=youtu.be&t=86

saludos

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hola @EshaanG ,

//measure
Transactions = 
CALCULATE(
    COUNT(Sheet4[  TrainingMonth]),
    ALLEXCEPT(
        Sheet4,
        Sheet4[TransactionMonth ]
    )
)
//measure
Trainings = 
VAR x = 
CALCULATE(
    COUNT(Sheet4[  TrainingMonth]),
    FILTER(
        ALL(Sheet4),
        Sheet4[  TrainingMonth] = MAX(Sheet4[TransactionMonth ])
    )
)
RETURN
IF(
    x = BLANK(),
    0,
    x
)

aaa5.PNG

Saludos
Lionel Chen

Si este post ayuda,entonces por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

HashamNiaz
Solution Sage
Solution Sage

¡Hola!

Intente crear una relación inactiva entre la columna de fecha y mes de entrenamiento.

A continuación, escriba DAX utilizando esta relación inactiva. Puede ver el siguiente vídeo sobre cómo implementar esto en su escenario;

https://www.youtube.com/watch?v=ppxcpuNMBoE&feature=youtu.be&t=86

saludos

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.