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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AI14
Helper III
Helper III

formula to count live time

Hi

 

i want to count the number of hours from start of shift till end of shift live.

 

for example:

#Scheduled start

Scheduled End

105:30

14:00

206:0014:30
306:3015:00
407:00

16:00

 

If the time was 10:00am then the count needs to be:

1: 4.5

2: 4

3: 3.5

4: 3

 

i tried using the below formula however i cant add my scheduled start column. any sugguesions 

Hrs from Shift = FORMAT( NOW() - xxxxxxxxx, "H")
 
also is there a way to count each hour until the schedule end time. so it should be a total of 8.5 hours based on shift length.
 
KR,
AI
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

HI @AI14 
Please try

Hrs from Shift =
DATEDIFF (
    TIMEVALUE ( 'Table'[Scheduled star] ),
    MIN ( TIMEVALUE ( 'Table'[Scheduled end] ), TIMEVALUE ( NOW () ) ),
    MINUTE
) / 60

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

HI @AI14 
Please try

Hrs from Shift =
DATEDIFF (
    TIMEVALUE ( 'Table'[Scheduled star] ),
    MIN ( TIMEVALUE ( 'Table'[Scheduled end] ), TIMEVALUE ( NOW () ) ),
    MINUTE
) / 60

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.