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
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])

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])

Anonymous
Not applicable

thanks @amitchandak , that worked!

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.