Ask Your Question
1

In Google Looker Studio, what is the method for converting seconds to a duration format displayed as minutes and seconds (mm:ss)?

asked 2023-07-14 16:05:44 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-14 16:35:01 +0000

woof gravatar image

The method for converting seconds to a duration format displayed as minutes and seconds (mm:ss) in Google Looker Studio is to use the DATE_TRUNC function with the SECOND interval and format it using the FORMAT_DATE function. Here's an example:

SELECT FORMAT_DATE('%M:%S', DATE_TRUNC('SECOND', TIMESTAMP_SECONDS(1234)))

This will convert the number of seconds (1234) to a duration format displayed as minutes and seconds (20:34).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-14 16:05:44 +0000

Seen: 9 times

Last updated: Jul 14 '23