Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Milliseconds column in csv to usable time value

Hello,

Surprised at how such a simple problem seems to be so complex to solve. I have a csv a number column that stores millisecond data. What's the best way to get this to a usuable hh:mm:ss format in Looker Studio? I have tried calculated columns and custom number formats with no luck.

Thanks.

Solved Solved
0 2 247
1 ACCEPTED SOLUTION

First, use a calculated field to convert the data from milliseconds to seconds. A simple (millis/1000) should work.

Second, click the field definition once it's in a table, and select the "Duration" data type. This expects a number of seconds, so the default format is fine.

Screenshot 2025-03-14 at 5.03.27 PM.png

View solution in original post

2 REPLIES 2

First, use a calculated field to convert the data from milliseconds to seconds. A simple (millis/1000) should work.

Second, click the field definition once it's in a table, and select the "Duration" data type. This expects a number of seconds, so the default format is fine.

Screenshot 2025-03-14 at 5.03.27 PM.png

Ah! Thank you! Knew it would be simple. I'd been looking for 'Duration' in the Date/Time menu but there it is under 'Number'. 😁