Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi
I am trying to fine the average time in Power BI. I have a table called "Sheet1" which has Date (dd/mm/yyyy), Time (Hr:MM:SS am/pm), EmployeeID, EntryType (Binary 0 AND 1). This is Employee attedance record. Ths table has multiple employees and each employee enters and exit office multiple times on a single day.
I wanted to calculate Average Entry time for each employee. I did in Excel and took the below example for three days for one employee
I tried to do this in below dax measures, but no success. It gives minimum time not average
Average Entry Time =
VAR MinEntryTime =
CALCULATE(
MIN('Sheet1'[Time]),
'Sheet1'[EntryType] = 1
)
RETURN
AVERAGEX(
VALUES('Sheet1'[EmployeeID]),
MinEntryTime
)
Can anyone advise how to do this? I have multiple dates and employee ID's
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
19 | |
15 | |
7 | |
6 |