cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pbeeyeqs
Helper I
Helper I

More help with Average of Averages

Having an issue trying to look at other possible solutions to assist with my issue. 

 

I want the results to show, for example:

AVG GROUP 1 takes the avg of the brand then avg's group. 

So, avg BRAND J = 8.4

avg BRAND K = 4.8

avg BRAND L = 4.9

 

AVG GROUP 1 would then = 6.03    NOT 6.6

This would then continue for all groups.

 

Thanks

 

GROUPBRANDPERCENT CHANGE
GROUP 1BRAND J4.8%
GROUP 1BRAND J12.0%
GROUP 1BRAND K4.8%
GROUP 1BRAND L4.9%
GROUP 2BRAND M8.0%
GROUP 3BRAND A4.0%
GROUP 4BRAND B8.0%
GROUP 4BRAND B15.0%
GROUP 4BRAND C8.0%
GROUP 4BRAND N7.0%
GROUP 5BRAND D5.0%
GROUP 5BRAND E4.0%
GROUP 5BRAND E6.0%
GROUP 5BRAND E6.0%
1 ACCEPTED SOLUTION
jdbuchanan71
Super User II
Super User II

Like so?

Brand Avg = AVERAGE(Table1[PERCENT CHANGE])
Group Average = AVERAGEX( VALUES ( Table1[BRAND] ) , [Brand Avg] )

avg_averages.jpg

View solution in original post

4 REPLIES 4
jdbuchanan71
Super User II
Super User II

Like so?

Brand Avg = AVERAGE(Table1[PERCENT CHANGE])
Group Average = AVERAGEX( VALUES ( Table1[BRAND] ) , [Brand Avg] )

avg_averages.jpg

View solution in original post

One question -   what if I only wanted to show groups that had over 1 brand? So group 2 and 3 wouldn't show up. –

Write a measure like this.

Keep Row = 
VAR BrandCount = COUNTROWS ( VALUES ( Table1[BRAND] ) )
RETURN
IF ( BrandCount = 1, BLANK(), 1 )

Then add that measure as a visual filter and set it to [Keep Row] is 1:

keeprows.jpg

PERFECT! Thanks for the quick response. 

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors