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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
eden
Helper I
Helper I

Fecha de clasificación y romper lazos ?

Hola

cómo clasificar esta tabla en función de la fecha de inicio, excluyendo el estado

Orden de trabajoEstadoCliente fecha de inicioFecha de finalización
UnoPublicadoAbc01/08/202024/09/2020
DosRevisadoDef24/09/202001/11/2020
TresEsperandoXyz17/09/202012/01/2021
CuatroaplazadoAbc 01/12/202003/06/2021
CincoPublicadooiu01/07/202023/12/2021
Seisen cursoAbc 22/05/201901/09/2020
Sieteen cursoDef21/07/201921/08/2020
Ochoen cursoKjs21/08/201912/11/2020

Si la fecha son los mismos lazos necesita ser roto usando la fecha de finalización

saludos

1 ACCEPTED SOLUTION

Hola @eden ,

Crear una medida

BREAK - RANKX(FILTER(ALL('Table'),'Table'[fecha de inicio] á MAX('Table'[fecha de inicio])),CALCULATE(MAX('Table'[End Date])))
A continuación, cree la medida RANK
Clasificación: IF( MAX('Table'[Status]) á "publicado" , BLANK(),
RANKX(FILTER(ALL('Table'),'Table'[Status] <> "published"),CALCULATE(MAX('Table'[fecha de inicio])+ [BREAK])))
1.jpg
saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

View solution in original post

7 REPLIES 7
eden
Helper I
Helper I

• harshnathani Compruebe la clasificación 7 , diferentes fechas se clasificaron como las mismas en orden
harshnathani
Community Champion
Community Champion

Hola @eden ,

Clasificación: IF( MAX('Table'[Status]) á "publicado" , BLANK(),
RANKX(FILTER(ALL('Table'),'Table'[Status] <> "published"),CALCULATE(MAX('Table'[start date]))))
1.jpg
Si esta no es la salida que desea, por favor comparta la salida en la muestra que ha proporcionado.
saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

@harshnathani

¿Cómo romper los lazos?

Hola @eden ,

Crear una medida

BREAK - RANKX(FILTER(ALL('Table'),'Table'[fecha de inicio] á MAX('Table'[fecha de inicio])),CALCULATE(MAX('Table'[End Date])))
A continuación, cree la medida RANK
Clasificación: IF( MAX('Table'[Status]) á "publicado" , BLANK(),
RANKX(FILTER(ALL('Table'),'Table'[Status] <> "published"),CALCULATE(MAX('Table'[fecha de inicio])+ [BREAK])))
1.jpg
saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

@ harshnathani

Powe.JPG

Hola @eden ,

Esto se debe a que la fecha de inicio y la fecha de finalización de 2 filas son las mismas.

Intente agregar RAND() para romper los lazos.

Clasificación: IF( MAX('Table'[Status]) á "publicado" , BLANK(),
RANKX(FILTER(ALL('Table'),'Table'[Status] <> "published"),CALCULATE(MAX('Table'[fecha de inicio])+ [BREAK]+ RAND())))
amitchandak
Super User
Super User

@eden, añadir una duración muy pequeña usando el generador de números aleatorios y tratar de

como rango en [Fecha de finalización]+ tiempo(0,0,RAND() )

referir este https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale

Para rango Consulte estos enlaces
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors