The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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
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
You can use the DAX function All Except with Calculate i.e Calculate (Average(Balance),AllExcept(Client Name)).
Hi @GlynMThomas ,
You can use averagex(summarize(table,column,"name",expression),column).