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

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.

Reply
Rinku21
Helper III
Helper III

comparación de valores de columna en Power BI

Hola

He creado una curva de distribución Histograma y Normal en Power BI. Quiero mostrar el valor Medio en el gráfico.

He creado una fórmula a continuación:

μ = IF('DISTRIBUCION NORMAL'[X]=ROUND([Mean_Age],0),[f(x)],0)
de modo que, si el valor del Mean_Age coincide con el valor de la 'DISTRIBUCION NORMAL'[X], entonces gererala la barra.
'DISTRIBUCION NORMAL'[X] --> Contiene series de valores de 10 a 60.
Mean_Age --> Media calculada para la Edad.
Actualmente, soy capaz de obtener la barra y se muestra como se muestra a continuación:
Mean_bar.PNG

Por lo tanto, cuando el valor de Mean_age coincide con ''DISTRIBUCION NORMAL'[X]', muestra el valor f(x) en lacolumna '' else return '0' como se muestra a continuación:

Data.PNG

pero cuando selecciono cualquier valor del filtro, el valor medio cambia, pero en el '"Columna", no está cambiando.

Por favor, vea el siguiente ejemplo,

aquí, seleccioné, Emp Id 1 y 2, el valor medio es: 14 pero en la barra todavía se muestra como 29. No está considerando que la selección del filtro y la comparación no está sucediendo.

Issue.PNG

todavía mostrando valor para 29 en los datos también.

Data1.PNG

¿Alguien tiene idea de esto? ¿Me estoy perdiendo algo?

Gracias de antemano.

5 REPLIES 5
parry2k
Super User
Super User

@Rinku21 está agregando á como columna, debe medirse:

μ = IF(MAX('DISTRIBUCION NORMAL'[X])=ROUND([Mean_Age],0),[f(x)],0)

Pregunte cualquier cosa Power BI. Reserva una cita para una consulta gratuita en https://www.perytus.com



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.

Hola @parry2k ,

¿Hay alguna forma de que podamos mostrar 'Mean_Age' en la etiqueta de datos? Actualmente, no muestra el valor medio (14) en la etiqueta.

pro.PNG

@Rinku21 debería si tiene los datos etiquetados activados.



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.

Hola @parry2k ,

Si enciendo la etiqueta, se muestra el valor de f(x) como '_measure' devolviendo ese valor.

pro1.PNG

Hola @parry2k,

Está funcionando perfectamente. Muchas gracias 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.