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
Anonymous
Not applicable

Eliminar filas desplicadas en función del número más bajo

Estoy luchando para que esto funcione.

Esta es una pequeña parte de mi conjunto de datos. Mi conjunto de datos solo contiene TicketId, CommentId (no se muestra aquí, no es realmente importante) y CommentDuration. CommentDuration es una columna calculada.

werner1107_0-1597313313785.png

Lo que estoy tratando de lograr es eliminar filas con el mismo TicketId, manteniendo solo el CommentDuration más bajo. ¿Cómo puedo hacer esto? Preferiblemente como medida DAX...

Gracias de antemano

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hola @werner1107

Por favor, compruebe a continuación los resultados:

Measure = var a = CALCULATE(MIN('Table (2)'[CommentDuration]),ALLEXCEPT('Table (2)','Table (2)'[Ticketid]))
return 
IF(MAX('Table (2)'[CommentDuration])=a,a,BLANK())

07.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hola @werner1107

Por favor, compruebe a continuación los resultados:

Measure = var a = CALCULATE(MIN('Table (2)'[CommentDuration]),ALLEXCEPT('Table (2)','Table (2)'[Ticketid]))
return 
IF(MAX('Table (2)'[CommentDuration])=a,a,BLANK())

07.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@werner1107 , Pruebe una medida como estas

sumx(summarize(table, table[TicketId],"_1",min(CommentDuration )),[_1])

O

sumx(values(table[TicketId]),min(CommentDuration ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Fowmy
Super User
Super User

@werner1107

Cree una nueva tabla con el siguiente código (Ir a Modelado ab, 'en Cálculo, Nueva tabla

New Table = 

SUMMARIZECOLUMNS(
    TICKET[TicketID],
    "MinDur",
    MIN(TICKET[CommetnDuration])
)

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.