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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
al1981
Helper II
Helper II

Non classic average calculation

Dear colleagues

 

I have one basic question with possible answer already

As due to complexiti of the old model, i cant swith model to calculate averega activiy of the employee, so i found one workarrond

Example for  June 2024 (Acitivity is pretty long calculation of different contacts with customer, depends also on the channel and type of event)

 

Employee nameActivityDaysOffUserActiveDays
Employee 17.061.00018.000
Employee 27.003.00016.000
Employee 36.240.25018.750

Question i have: if i sum Activity and devide by number of Employees i get average 6.77, which i think its not ok, but if i remove Employees from the rows, i get Average activitity 6.75. My basic knowledge explains me, 2nd one is more correct as rows are not equal/does not have same weight: Employee 3 did in more days less activity and therefore id decrease average for all?

 

Thank you for your feedback!

1 ACCEPTED SOLUTION
dharmendars007
Super User
Super User

Hello @al1981 , 

 

To calculate a more accurate "average activity per active day" across employees, you should use a weighted average formula:

 

Weighted Average = Activity*Active Days /Active Days

This will account for differences in the number of days employees were active and therefore provide a more balanced view of the average activity.

In your example:

  • Employee 1: 7.06×18.00=127.087.06 \times 18.00 = 127.087.06×18.00=127.08
  • Employee 2: 7.00×16.00=112.007.00 \times 16.00 = 112.007.00×16.00=112.00
  • Employee 3: 6.24×18.75=117.006.24 \times 18.75 = 117.006.24×18.75=117.00

Sum of weighted activities: 127.08+112.00+117.00=356.08

 

Sum of active days: 18.00+16.00+18.75=52.75

 

So, the weighted average activity would be= 356.08/52.75 = 6.75

 

This is closer to the second value you mentioned, and it's more accurate because it takes into account the different active days for each employee.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

4 REPLIES 4
al1981
Helper II
Helper II

Dear @dharmendars007 , dear @Anonymous , thank you to both! If i understand: both of yours are "same" or at least are taking same solution. And i do agree: weighted average is something i need in my model! Many tnx to both of you!

Anonymous
Not applicable

Hi @al1981 ,

 

@dharmendars007 @lbendlin , thanks for your concern about this case. I tried to create sample data to perform weighted calculations.Please check if there is anything that can be improved. Here is my solution:

1\My data source (Table)

vbofengmsft_0-1728265235479.png

2\Create a measure

Result = SUMX('Table','Table'[Activity]*'Table'[UserActiveDays])/SUM('Table'[UserActiveDays])

vbofengmsft_1-1728265285936.png

 

Best Regards,

Bof

dharmendars007
Super User
Super User

Hello @al1981 , 

 

To calculate a more accurate "average activity per active day" across employees, you should use a weighted average formula:

 

Weighted Average = Activity*Active Days /Active Days

This will account for differences in the number of days employees were active and therefore provide a more balanced view of the average activity.

In your example:

  • Employee 1: 7.06×18.00=127.087.06 \times 18.00 = 127.087.06×18.00=127.08
  • Employee 2: 7.00×16.00=112.007.00 \times 16.00 = 112.007.00×16.00=112.00
  • Employee 3: 6.24×18.75=117.006.24 \times 18.75 = 117.006.24×18.75=117.00

Sum of weighted activities: 127.08+112.00+117.00=356.08

 

Sum of active days: 18.00+16.00+18.75=52.75

 

So, the weighted average activity would be= 356.08/52.75 = 6.75

 

This is closer to the second value you mentioned, and it's more accurate because it takes into account the different active days for each employee.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

lbendlin
Super User
Super User

You need to decide what is more meaningful in your scenario - the average of averages, the average over all values, or a weighted average.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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