Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |