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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dsmitha
Responsive Resident
Responsive Resident

In time and out time on different days

Hi,

 

I request your guidance and help to solve this issue of mine related to a call centre dashboard

employees log in at 07:00 pm on 01st July 2022 and they log out at 03:00 am on 02nd July 2022. How can i calculate the hours worked considering it as a single day ( i.e  8 hours duty )

 

 

regards,

dsmitha

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @dsmitha ,

 

Do you want to calculate the time interval between dates?

Try the DATEDIFF function:

DATEDIFF(<Date1>, <Date2>, <Interval>)  

DATEDIFF function (DAX) - DAX | Microsoft Docs

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @dsmitha ,

 

Do you want to calculate the time interval between dates?

Try the DATEDIFF function:

DATEDIFF(<Date1>, <Date2>, <Interval>)  

DATEDIFF function (DAX) - DAX | Microsoft Docs

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi 

v-stephen-msft,
thanks a lot , this is what i was looking for
regards,
dsmitha
 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.