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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Comparación de eventos

Hola a todos

He estado estupendo durante todo el fin de semana con éste, no puedo hacer que esto funcione... ¿Podrías ayudarme, por favor?


(consulte los datos de muestra aquí)
Tengo una tabla con datos de eventos a lo largo de los años. Cada fila también tiene un campo que contiene el ID de evento anterior, el número de pedido/fecha y el ID del expositor:

Jorn_Mazet_0-1618823994529.png

Tengo 3 objetivos:

1) Medida 1: diferenciar a los expositores que estuvieron en el evento anterior
(por ejemplo, el evento 6463 tenía 99 expositores; el evento anterior es 6361 y tenía 118 expositores; aquí no puedo averiguar cómo usar el PreviousEventID como fuente para el distinctcount en una página que ya tiene un filtro al id de evento actual)

2) Medida 2: distintos recuentos de los expositores que se encuentran tanto en el evento actual como en el anterior (comparando los 2 eventos)

3) Medida 3 -"Ratio de retención": % de expositores tanto en el evento actual como en el anterior frente al recuento de expositores en el evento actual

(Esto debe ser fácil si tengo la medida 2, por supuesto)

Agradecería gratamente el apoyo, yendo a dejar de "locos" en este 🙂

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Allí, @Jorn_Mazet

Por favor, corrígeme si entendí mal tu pregunta.

Cuando comparo el id. de evento 6464 y 6438, no hay identificación común del expositor.

Sin embargo, compruebe las siguientes medidas.

Evento de DistCount_Exhib_previous =
VAR anteriorevent =
MAX ( Tabla1[PreviousUBEventID] )
Var previousexhibitors =
RESUMEN (
FILTRO (
RESUMEN ( TODOS ( Tabla1 ), Tabla1[EventID], Tabla1[ExhibitorID] ),
Tabla1[EventID] = evento anterior
),
Tabla1[ExhibitorID]
)
devolución
COUNTROWS ( anteriorexhibidores )
DistCount_Exhib_Current y evento anterior =
Var currenteventexhibitor = VALUES(Tabla1[ExhibitorID])
VAR anteriorevent =
MAX ( Tabla1[PreviousUBEventID] )
VAR previousexhibotors =
RESUMEN (
FILTRO (
RESUMEN ( TODOS ( Tabla1 ), Tabla1[EventID], Tabla1[ExhibitorID] ),
Tabla1[EventID] = evento anterior
),
Tabla1[ExhibitorID]
)

RESULTADO VAR = COUNTROWS(INTERSECT( currenteventexhibitor, previousexhibotors))
devolución
COALESCE(resultado, 0)
Relación de retención =
DIVIDE([DistCount_Exhib_Current y evento anterior], [DistCount_Exhib_CurrentEvent])

Hola, mi nombre es Jihwan Kim.


Si este post ayuda, entonces considere aceptarlo como la solución para ayudar a otros miembros a encontrarlo más rápido, y dar un gran pulgar hacia arriba.


Linkedin: https://www.linkedin.com/in/jihwankim1975/

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Estimado @Jihwan_Kim ,
Tienes razón, los datos de la muestra no contenían "expositores que regresan" (debería haber comprobado esto, lo siento)
Después de cambiar los datos de la muestra, obtuve los resultados deseados!!
¡Muchas gracias!

Jorn_Mazet_0-1618834929208.png

Syndicate_Admin
Administrator
Administrator

Allí, @Jorn_Mazet

Por favor, corrígeme si entendí mal tu pregunta.

Cuando comparo el id. de evento 6464 y 6438, no hay identificación común del expositor.

Sin embargo, compruebe las siguientes medidas.

Evento de DistCount_Exhib_previous =
VAR anteriorevent =
MAX ( Tabla1[PreviousUBEventID] )
Var previousexhibitors =
RESUMEN (
FILTRO (
RESUMEN ( TODOS ( Tabla1 ), Tabla1[EventID], Tabla1[ExhibitorID] ),
Tabla1[EventID] = evento anterior
),
Tabla1[ExhibitorID]
)
devolución
COUNTROWS ( anteriorexhibidores )
DistCount_Exhib_Current y evento anterior =
Var currenteventexhibitor = VALUES(Tabla1[ExhibitorID])
VAR anteriorevent =
MAX ( Tabla1[PreviousUBEventID] )
VAR previousexhibotors =
RESUMEN (
FILTRO (
RESUMEN ( TODOS ( Tabla1 ), Tabla1[EventID], Tabla1[ExhibitorID] ),
Tabla1[EventID] = evento anterior
),
Tabla1[ExhibitorID]
)

RESULTADO VAR = COUNTROWS(INTERSECT( currenteventexhibitor, previousexhibotors))
devolución
COALESCE(resultado, 0)
Relación de retención =
DIVIDE([DistCount_Exhib_Current y evento anterior], [DistCount_Exhib_CurrentEvent])

Hola, mi nombre es Jihwan Kim.


Si este post ayuda, entonces considere aceptarlo como la solución para ayudar a otros miembros a encontrarlo más rápido, y dar un gran pulgar hacia arriba.


Linkedin: https://www.linkedin.com/in/jihwankim1975/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.