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
skolathu
New Member

Calculating Average by multiple columns

Hi All,

I am trying to calculate average based on multiple column. Would have used AverageIfs in excel for this calculation.

 

Example:

Average Revenue by "FY Quarter, Month, City and product" and then calculate "Max Sales by FY quarter, Month and city" and finally calculate difference between "Max Sales by FY quarter, Month and city" and "FY Quarter, Month, City and product" in percentage. Based on high percentage of revenue need to get "Product" name as recomendation to taget.

 

Can any one help on how to do this in powerbi.

 

Regards

Sriram

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @skolathu 

Thanks for reaching out to us.

How to convert AVERAGEIFS to dax code, please refer to this post https://community.powerbi.com/t5/DAX-Commands-and-Tips/AVERAGEIFS-in-dax/td-p/2653698

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@skolathu , Assume you sum values and then table Avg, then you can try measure like. Same is true for Max /min etc

 

AverageX(summarize(Table, Table[Month Year], Table[product], "_sum", calculate(Sum(Table[Value])) ) , [_sum])

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.