Forum Discussion
sdas028
8 years agoHelper I
Average Head Count by Week
Hi, I am trying to calculate average head count by ISOWEEK. I have a data table that contains employee number, employee name, date of shift, position, isoweek. As the data has an inidvidual line for ...
- 8 years ago
Hi sdas028,
You should use the following formula and check if it works fine.average=COUNTROWS(Table)/DISTINCTCOUNT(Table[Emplyeename])
Best Regards,
Angelia
sdas028
8 years agoHelper I
I have managed to also get to this table - however I would have thought that the average for week 21 should be 5? 20 shifts in one week worked by 4 people should give an average of 5, or perhaps I am incorrect in my thinking and possibly overthinking the calculation
Seward12533
8 years agoSolution Sage
Is week 21 a complete or partial week?
- sdas0288 years agoHelper I
Do you mean did they work a full week?
- v-huizhn-msft8 years agoMicrosoft Employee
Hi sdas028,
You should use the following formula and check if it works fine.average=COUNTROWS(Table)/DISTINCTCOUNT(Table[Emplyeename])
Best Regards,
Angelia- sdas0288 years agoHelper I
Brilliant!