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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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) & """"

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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