replicating Google Analytics’ Time Format in DOMO
I want to show Time on Site (and ither metrics that report in minutes and seconds) the way Google Analytics does, but it shows up in DOMO as number of seconds.
Is there a solution at the connector level and is there a solution at the beastmode level (something I could do on the fly for reports do yesterday)?
Thanks all,
Best Answer

If you want to display the time on site data as minutescolonseconds (e.g. 2:30, instead of 150) you could use a beast mode like this:
CONCAT(FLOOR(`Time_On_Site_Field` / 60), ':' , MOD(`Time_On_Site_Field`, 60))
Note, however, that this will turn the output into text for display and you will no longer be able to do math on it.
If you need to use this in a sum, you can also add that to the beast mode like this:
CONCAT(FLOOR(SUM(`Time_On_Site_Field`) / 60), ':' , MOD(SUM(`Time_On_Site_Field`), 60))
The floor function is used to round down the division of the time on site divided by 60 to get hours. The MOD function returns only the remainder after the division of the time on site divided by 60 to get minutes.
I hope that helps!
3
Answers

Hey
Thanks! This is very helpful.
But after the calculation, the metric becomes a dimension.
How can I show the avg session time by month in a card?
Many thanks!
0 
There isn't a way to graph this data as a metric after converting it to minutescolonseconds format. If you want to graph the average session time by month, you'd need to pick a single unit of time (seconds, minutes, or hours) as your metric and convert the data to that unit (seconds\60 = minutes). Then you're graphing average session time in minutes per month.
0
Categories
 11K All Categories
 5 Private Company Board
 2 APAC User Group
 12 Welcome
 42 Domo News
 9.9K Using Domo
 2K Dataflows
 2.5K Card Building
 2.2K Ideas Exchange
 1.2K Connectors
 349 Workbench
 266 Domo Best Practices
 11 Domo Certification
 474 Domo Developer
 51 Domo Everywhere
 110 Apps
 725 New to Domo
 85 Dojo
 Domopalooza
 1.1K 日本支部
 4 道場日本支部へようこそ
 29 お知らせ
 65 Kowaza
 301 仲間に相談
 662 ひらめき共有