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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Total of Variables Averages

Hello,

 

I have the following dataset with volumes by TIME and by BRAND:

 

003.png

 

I want to show the AVERAGE volumes by hour, with "Brand A" and "Brand B" combined together, like this:

 

001.png

 

The problem is that I want to show the total of "Brand A & B avg" highlighted in red not as the "Average of All" (above) but as "Average Brand A + Average Brand B" (below):

 

002.png

 

I'm using the measure Average( 'MyTable'[Volume] ) to calculate the averages and tried to add the functions ALL, ALLSELECTED, FILTER, KEEPFILTERS to properly show the totals, but no luck.

 

Any help is more than welcomed!

 

thanks!!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , refer if this can help

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

 

or like

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , refer if this can help

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

 

or like

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

thanks @amitchandak , that worked!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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