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

Transform aggregated hours as Text to Time

Is there a way to transform this Column that holds hours and minutes (stored is text in the Query) to time hours and minutes:

 

00:09

14:30

74:45

23:30

31:15

ertc...

 

Problems arise with the aggegated working hours on a machine that are above 24:00 hours. They will raise an error when you transform to time.

 

All help appreciated, Bert

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@libertus

 

You can only transfrom this text column into a "Duration" type column. Just add a custom column like below:

 

=#duration(0,Number.FromText(List.First(Text.Split([Time],":"))),Number.FromText(List.Last(Text.Split([Time],":"))),0)

55.PNG

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@libertus

 

You can only transfrom this text column into a "Duration" type column. Just add a custom column like below:

 

=#duration(0,Number.FromText(List.First(Text.Split([Time],":"))),Number.FromText(List.Last(Text.Split([Time],":"))),0)

55.PNG

 

Regards,

@v-sihou-msft

 

What an elegant solution, works like a charm 😉

Thanks!!

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.

Top Solution Authors