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).
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
Asked: 2023-07-14 16:05:44 +0000
Seen: 9 times
Last updated: Jul 14 '23