Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.