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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power BI DAX - Average Per Category Calculation

I have a requirment to average by 2 Categories i.e. By Date (Year/Quarter/Month) and by Market. How could I get in DAX average by tow categories?. 

 

Using Quick Measure I get this , how to add another category  - By Date (Year/Quarter/Month)?

AVERAGEX(
    KEEPFILTERS(VALUES('Office'[Market])),
    CALCULATE(SUM([Column1]))
)

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could try ALLEXCEPT() function.

Measure = CALCULATE(AVERAGE('Table'[value]),ALLEXCEPT('Table','Table'[date],'Table'[categories])

 

Best Regards,

jay 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Not very clear

Try like


AVERAGEX(Summarize('Office','Office'[Market],'Office'[Market], "_1",CALCULATE(SUM([Column1]))), [_1])

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
Anonymous
Not applicable

Thanks for the reply, but in the DAX I need to summarize by 2 categories , 

1. By Date
2. By Market

I used below Dax. but in my visualtion I add this new measure along with the Date or  Office get Error

AVERAGEX(SUMMARIZECOLUMNS(Date[Calendar Month],Offices[Name],"Name1", SUM(Column1[]), [Name2])

 

Anonymous
Not applicable

Hi @Anonymous ,

 

You could try ALLEXCEPT() function.

Measure = CALCULATE(AVERAGE('Table'[value]),ALLEXCEPT('Table','Table'[date],'Table'[categories])

 

Best Regards,

jay 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.