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
BhanuPBI
Frequent Visitor

Need to dax to calculate Employee work hours

Hi Team,

 

Can any one help me to write dax function to find out how many hours he worked in office based on his first checkin and check out as given below screen shot. can any one do some sample pbix for reference and share me please.

BhanuPBI_0-1677492243514.png

 

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @BhanuPBI ,

You can refer the following links to get the duration between two time:

Calculate Minutes Between Two Times in Power BI

How To Get The Duration Between Two Datetime Or Date Fields In Power BI

yingyinr_1-1677663986385.png

And as checked your screenshot, we can't identify which one is check-in or check-out time. Could you please provide more details to explain it and final expected result? Thank you.

Best Regards

 

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.