I need help to create a rank column that considers the alert column and the alert date
Data table attached.
Yellow fields used in the rank criteria and green column the required result.
🙂
What I have done so far does not work for me, I attach it in case someone can correct me
-- no funciona todo queda en 1
RANKX(ALLSELECTED(CONCLUSION[ALERTA], CONCLUSION[FECHA_ALERTA], CONCLUSION[RESPONSABLE], CONCLUSION[PROBLEMA]), LASTDATE(CONCLUSION[FECHA_ALERTA]))
-- no funciona todo queda en 1
RANKX(
FILTER(CONCLUSION,
CONCLUSION[ALERTA]=EARLIER(CONCLUSION[ALERTA])
&& CONCLUSION[FECHA_ALERTA]=EARLIER(CONCLUSION[FECHA_ALERTA])
&& CONCLUSION[PROBLEMA]=EARLIER(CONCLUSION[PROBLEMA])
&& CONCLUSION[RESPONSABLE]=EARLIER(CONCLUSION[RESPONSABLE]))
, CONCLUSION[FECHA_ALERTA], ,ASC,Skip)
-- funciona ok, pero no agrupa por alerta
RANKX(
ALL(
CONCLUSION[ALERTA]
, CONCLUSION[FECHA_ALERTA]
, CONCLUSION[PROBLEMA]
, CONCLUSION[RESPONSABLE])
, CONCLUSION[FECHA_ALERTA], ,DESC,Skip)
-- funciona ok, pero no agrupa por alerta
RANKX(CONCLUSION, LASTDATE(CONCLUSION[FECHA_ALERTA]))
I managed to create a measure, but it does not work for me to use it as a page filter
attached as it works
🙂
Rank_FechaAlerta = RANKX(ALLSELECTED(CONCLUSION[ALERTA], CONCLUSION[FECHA_ALERTA], CONCLUSION[RESPONSABLE], CONCLUSION[PROBLEMA]), LASTDATE(CONCLUSION[FECHA_ALERTA]))
Solved! Go to Solution.
De acuerdo con su descripción, a partir del resultado puede ver, desea clasificar la columna FECHA_ALERTA cuando la columna ALERTA es la misma.
Aquí está mi solución, crear una columna calculada.
Rank_FechaAlerta =
RANKX (
FILTER ( CONCLUSION, CONCLUSION[ALERTA] = EARLIER ( CONCLUSION[ALERTA] ) ),
CONCLUSION[FECHA_ALERTA],
,
DESC,
DENSE
)
Obtén el resultado.
Adjunto mi muestra a continuación para su referencia.
Saludos
Equipo de apoyo a la comunidad _ kalyj
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
De acuerdo con su descripción, a partir del resultado puede ver, desea clasificar la columna FECHA_ALERTA cuando la columna ALERTA es la misma.
Aquí está mi solución, crear una columna calculada.
Rank_FechaAlerta =
RANKX (
FILTER ( CONCLUSION, CONCLUSION[ALERTA] = EARLIER ( CONCLUSION[ALERTA] ) ),
CONCLUSION[FECHA_ALERTA],
,
DESC,
DENSE
)
Obtén el resultado.
Adjunto mi muestra a continuación para su referencia.
Saludos
Equipo de apoyo a la comunidad _ kalyj
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |