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 August 31st. Request your voucher.

Reply
GlynMThomas
Resolver I
Resolver I

Correct way to average at different aggregate levels. Best Practice

Hi Guys,

 

What is the best practice in power bi for getting averages at different granularities?

 

E.g. If my data in power bi is at client account level and I want the average balance across accounts this would be straight forward as the data is already at account level. However if I wanted the average balance across the clients I would need to sum and group by the client id or name first then take the average.

 

Now normally I would create a summarised table using a group by to transform the data before taking the average at client level. However I'm just wondering if this is the correct way I should be doing it, and there's not a formula in dax I should use instead.

 

I'd be keen on your thoughts regarding this.

 

Kind Regards

 

Glyn

1 ACCEPTED SOLUTION
GlynMThomas
Resolver I
Resolver I

Thanks guys,

 

It seems the way I'm already doing it works fine so I'll continue that way.

 

Thanks for you help.

 

Kind Regards

 

Glyn

View solution in original post

4 REPLIES 4
GlynMThomas
Resolver I
Resolver I

Thanks guys,

 

It seems the way I'm already doing it works fine so I'll continue that way.

 

Thanks for you help.

 

Kind Regards

 

Glyn

VSrujana
Frequent Visitor

You can use the DAX function All Except with Calculate i.e Calculate (Average(Balance),AllExcept(Client Name)).

 

 

v-kelly-msft
Community Support
Community Support

Hi @GlynMThomas

 

You can use averagex(summarize(table,column,"name",expression),column).

 

Best Regards,
Kelly
 
Did I answer your question? Mark my post as a solution!
amitchandak
Super User
Super User

Did not get it completely

But Avg should preferably should be like

divide(Sum(a),sum(b))

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

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.