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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EmmanuelleD
Frequent Visitor

Average of Average

Hi all, 

 

I can't find a solution to my problem so I'm asking for your help. 

 

I have a measure calculating the average number of jobs done by an employee per day which works fine:

Average Completion by Worked Day = AVERAGEX(VALUES('Completed RMs'[ActivityDate]),[Jobs Completed])
 
I would like to get the average per employee category (some employees are expected to complete more jobs per day than others): 
AVG per category = CALCULATE([Average Completion by Worked Day], ALLEXCEPT('Engineers Categories','Engineers Categories'[Category]))
 
But see below (last row) that last measure gives me an average of 212.65 for the selected category which is not what I want. I'd like it to show that on average, an employee in this category completes 35 jobs per day so we can identify who is above or below the average. 
 
Capture.PNG
 
Thanks in advance! 
1 ACCEPTED SOLUTION
EmmanuelleD
Frequent Visitor

Found the solution which was simply : 

AVG per category = CALCULATE(AVERAGE('Jobs Completed'[Count]), ALLSELECTED('Engineers Categories'[Category]))

View solution in original post

3 REPLIES 3
EmmanuelleD
Frequent Visitor

Found the solution which was simply : 

AVG per category = CALCULATE(AVERAGE('Jobs Completed'[Count]), ALLSELECTED('Engineers Categories'[Category]))
amitchandak
Super User
Super User

@EmmanuelleD , I think you have to try like

 

AVERAGEX(VALUES('Engineers Categories'[Category]),[Average Completion by Worked Day])

This gives me the same result as the above measure unfortunately. 

I don't understand the logic to get to 212.65. Do you? 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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