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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Sean500
Helper I
Helper I

How to calculate average entry time?

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.

 

Sean500_0-1687256397027.png

 

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

 

Sean500_0-1687257401348.png

 

 

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

 

 

0 REPLIES 0

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.