Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.