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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.