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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Marit
Helper II
Helper II

Calcular la media dentro de la categoría

¡Hola!

Anteriormente pregunté sobre cómo podía calcular un promedio por encima de varias categorías en una gráfica de línea. Usé la sintaxis DAX:

Nueva medida-CALCULATE(AVERAGE('Table'[Value]), ALL('Table'[Category1]),

ALL('Table'[Category2]), ALL('Table'[Category3]))

Esto funcionó muy bien. Sin embargo, ahora quiero calcular un promedio dentro de la categoría1 y por encima de todas las demás categorías. Por lo tanto, quiero un promedio para cada nivel en la categoría1. ¿Es posible?

Saludos marit

2 REPLIES 2
amitchandak
Super User
Super User

@Marit , compruebe si estos dos pueden ayudar

https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
MFelix
Super User
Super User

Hola @Marit ,

Sólo tiene que calcular el promedio para cada categoría:

AVERAGE 1= CALCULATE(AVERAGE('Table'[Value]); ALLSELECTED(Table[Category1])

Simplemente repita esto para cada una de las categorías.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors