cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
PedroPablo
Helper I
Helper I

RANK USING LASTDATE() AND COLUMN TEXT

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. 

   🙂 

 

PedroPablo_0-1664892547153.png

 

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]))

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin ,

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.

vkalyjmsft_0-1664949515812.png

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.

vkalyjmsft_1-1664949669291.png

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.

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin ,

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.

vkalyjmsft_0-1664949515812.png

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.

vkalyjmsft_1-1664949669291.png

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.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors