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
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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.