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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors