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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Anonymous
Not applicable

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

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.