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
Griggs
Frequent Visitor

How to calculate Team's average performance with a distinct count if days?

Good morning all,

 

I am hoping someone can shed some light on this matter. I am currently working on a dashboard to show individual's performance compared to the team average. For added context, 'Analyst Average Performance per Day', 'Team Average per Day', 'Team Average' and 'Distinct Count of Days' are all measures. As you can see in the graph below, the 'Team Average per Day' is currently doing Team Average divided by the Distinct Count of Days (839/16), resulting in the 52.4 shown in the graph. However, this is not accurate as not all analysts were working for 16 days, producing a team average that is lower than expected. What I think I need to do (correct me if I am wrong) is total each analyst's performance, then divide that by the amount of people in said team. In the example below, that would be (109.2 + 71.9 + 35.1 + 56.8)/4 = 68.25 (which I believe is a much more accurate representation of the average). I would assume it would look something like the following:

Team Avg per Day = 

CALCULATE(*Function to total the following*(DIVIDE(SUM('KPI Data Dump'[Analyst Performance]),(DISTINCTCOUNT('KPI Data Dump'[Date]))/DISTINCTCOUNT('KPI Data Dump'[Full Name])
 

The question is, how do I achieve this in Power BI? Any help would be greatly appreciated. Capture.PNG

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Griggs ;

You could create a mesure such as:

Measure = AVERAGEX(  SUMMARIZE(FILTER(ALL('Table'),[KPI]=MAX('Table'[KPI])),[Index], [KPI],"1",SUM([Analyst])/SUM([distinct days])),[1])

The final show:

vyalanwumsft_0-1659335970515.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @Griggs ;

You could create a mesure such as:

Measure = AVERAGEX(  SUMMARIZE(FILTER(ALL('Table'),[KPI]=MAX('Table'[KPI])),[Index], [KPI],"1",SUM([Analyst])/SUM([distinct days])),[1])

The final show:

vyalanwumsft_0-1659335970515.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I managed to solve this slightly different to your method with the following: 

CALCULATE(DIVIDE(CALCULATE(SUMX(Values('KPI Data Dump'[Full Name]),[Analyst Average Performance per Day]),REMOVEFILTERS('KPI Data Dump'[Full Name])),DISTINCTCOUNT('KPI Data Dump'[Full Name])),REMOVEFILTERS('KPI Data Dump'[Full Name]))

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. I cannot help you without usable sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.