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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Excel Duration - Transforms to different types

I'm buiding some reporting based on Excel files, these will be dropped in a folder monthly. I have the first months data, I usually just copy that file a couple of times to simulate multiple months of reports. 

 

Excel sheet has a duration column with custom formatting. 

JoeDC_0-1692975545092.png

 

On the first sheet it comes in as a decimal value (could simply convert to duration as transform). The next two (which are simply copies of the original) it comes in as a date/time by default (can't easily convert). Any ideas on why the differnt sheets (again just copy and pasted the whole Excel file) are showing different default formats after expansion 

JoeDC_1-1692975680706.png

 

The expansion columns show as type "Any"
{"Talk Time", type any}, {"Column7", type any}

 

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , keep your time in second and use Dynamic FOrmatting to handle this

 

Time format

"""" & QUOTIENT([net time],3600) & ":" & QUOTIENT(mod([net time],3600),60) & ":" & round(mod(mod([net time],3600),60),0) & """"

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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