Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
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
Solved! Go to Solution.
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())
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())
@werner1107 , Pruebe una medida como estas
sumx(summarize(table, table[TicketId],"_1",min(CommentDuration )),[_1])
O
sumx(values(table[TicketId]),min(CommentDuration ))
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.