cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
JoeDC
New Member

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

@JoeDC , 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) & """"

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors