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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
mpicca13
Resolver IV
Resolver IV

Averaging measure average results (Averaging subtotals in a matrix)

I have created measures which calculates rates and returns an average based on 3 context: location, job title and department

What I need now is to also return an average of those results within the same department and location (2 context)

 

As you can see in the image below the "Construction" Department has 3 job titles for the "IE" Location.

Left hadn side table details the resulting averages.

On the bottom right hand side you can also the employee breakdown by location.

I need the the average of those subtotals to then populate in the main table on the left hand side as a roll-up subtotal.

 

The end results should be 22.50 as the average of all 3 job titles in the "Construction" Department within the "IE" location.

Been struggling with Dax calculations to figure this out. Some guidance would help me immensly

Capture.PNG

 

the DAX I used to calculate the average you see in the left hand table is :

 
Average Hourly Rate per Employee by Category =
    AVERAGEX('Active Employees',
        IF('Active Employees'[Department] <> "", [Max Hourly Rate], 0))
 
Max Hourly Rate =
    CALCULATE(
        MAXX('Active Employees',
            'Active Employees'[Hourly Rate]))
0 REPLIES 0

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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