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

Total de Promedios de Variables

Hola

Tengo el siguiente conjunto de datos con volúmenes por TIEMPO y por MARCA:

003.png

Quiero mostrar los volúmenes AVERAGE por hora, con "Marca A" y "Marca B" combinadas, así:

001.png

El problema es que quiero mostrar el total de "Marca A & B avg" resaltado en rojo no como el "Promedio de Todos" (arriba) sino como "Marca Promedio A + Marca Promedio B" (abajo):

002.png

Estoy usando la medida Average( 'MyTable'[Volume] ) para calcular los promedios y he intentado agregar las funciones ALL, ALLSELECTED, FILTER, KEEPFILTERS para mostrar correctamente los totales, pero no hay suerte.

¡Cualquier ayuda es más que bienvenida!

¡¡Gracias!!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@el_dido , remítese si esto puede ayudar

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

o como

sumx(summarize(table,table[brand],,"_1",Average( 'MyTable'[Volume] ) ),[_1])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@el_dido , remítese si esto puede ayudar

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

o como

sumx(summarize(table,table[brand],,"_1",Average( 'MyTable'[Volume] ) ),[_1])

Anonymous
Not applicable

gracias @amitchandak , que funcionó!

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.