Forum Discussion

Gazsim44's avatar
Gazsim44
Helper III
6 years ago
Solved

Average from measure with Datediff

Hi All, 

 

I have a measure which I am using to calculate the hours an employee is on site by using the first and last times they are utilising the access control system.

 

Hours Present = DATEDIFF(MIN('Access Report'[Date/time]),MAX('Access Report'[Date/time]),MINUTE)/60

 

However we now need to calculate the average hours present on any given day of the week based on the employees selected / and / or month / date etc. (using slicers as filters). 

 

A sample of my table is attached.

 

Thanks

 

4 Replies