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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Establecer objetivo basado en el valor medio de una medida

Estoy tratando de crear un objetivo para un conjunto de usuarios que se basa en la mediana de la mediana de las transacciones totales realizadas por usuario. Pude crear esto basado en la función de mediana y resumir, pero cuando lo descompongo por el usuario en una tabla me da la mediana de esa fila en lugar del mismo número para todos los usuarios. Quiero que muestre lo mismo para todos los usuarios para que pueda terminar dividiendo la transacción total por el importe del objetivo para obtener el % por usuario. Esencialmente me gustaría mostrar 14 para todas las filas de la columna Objetivo en lugar de la mediana de esa fila. ¿Alguna idea de cómo lograr esto?

¡Gracias!

Mattyicee_0-1610037212599.png

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Mattyicee probar esto

Goal = MEDIANX(
SUMMARIZE(ALL('Closed Cases'),'Closed Cases'[Case Owner],
"MEdianValue",[Transactions per Rep]),
[MEdianValue])

o reemplace ALL por ALLSELECTED si desea mantener el contexto del filtro.

Consulta mi última entrada de blog Año-2020, Pandemia, Power BI y más allá para obtener un resumen de mis versiones favoritas de las características de Power BI en 2020

Me gustaría elogios si mi solución ayudara. 👉 Si puedes dedicar tiempo a publicar la pregunta, también puedes hacer esfuerzos para dar Felicitaciones a quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@Mattyicee probar esto

Goal = MEDIANX(
SUMMARIZE(ALL('Closed Cases'),'Closed Cases'[Case Owner],
"MEdianValue",[Transactions per Rep]),
[MEdianValue])

o reemplace ALL por ALLSELECTED si desea mantener el contexto del filtro.

Consulta mi última entrada de blog Año-2020, Pandemia, Power BI y más allá para obtener un resumen de mis versiones favoritas de las características de Power BI en 2020

Me gustaría elogios si mi solución ayudara. 👉 Si puedes dedicar tiempo a publicar la pregunta, también puedes hacer esfuerzos para dar Felicitaciones a quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Esa fue la clave - ¡Gracias!

ToddChitt
Super User
Super User

Suena como si necesita agregar la función ALL( ) al cálculo de la medida.

Por ejemplo, la siguiente función 'airware' obtendrá la suma de la métrica, pero se segmentará por todas las dimensiones:

MySum - SUM ( [Algunas métricas] )

Pero ESTO mostrará la suma para todos los usuarios, incluso si cortamos por usuario:

Mi suma para usuarios : CALCULATE ( SUM ( [Algunas métricas] ), ALL ( 'Usuarios' ) )

Seguirá volviendo a seleccionar los sectores por fecha u otras dimensiones, pero no respetará los sectores por usuario.

¿Puede compartir su código DAX para que podamos ayudar a fuuther?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





parry2k
Super User
Super User

@Mattyicee necesita dividir utilizando ALL en la función para que elimine cualquier filtro aplicado en la medida. Comparta la medida real (no use la imagen), pero pegue el código y le proporcionará la nueva medida.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k Gracias por la respuesta!

Aquí está la Fórmula para el Objetivo

Objetivo- MEDIANX(
RESUMEN('Casos cerrados','Casos cerrados'[Propietario del caso],
"MEdianValue",[Transacciones por Representante]),
[MEdianValue])
% de la meta ?
[Transacciones por representante]/[Objetivo]

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.