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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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