How do I display Time (mm-ss) as a value in bar chart
Hi - I have tried to hunt down this answer but it is tough to phrase and I haven't found a solution.
My time is in seconds, and I used the SEC_TO_TIME function to get a nice output - the data is exactly how I want it. In a table it looks like this:
However, when I try to put this information into a Bar or Pie, it shows no data. Am I missing something obvious here?
Thanks!
Best Answer
-
@cjack-PML - Have you tried plotting the seconds value as a number (total seconds - 65, 58, 12, 38, 22) rather than the string formatted version (00:01:05, 00:00:58, 00:00:12, 00:00:38, 00:00:22) of your seconds? You could then utilize your formatted string as a tooltip and then change the hover text or display text to pull the value from the Tooltip 1 field.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2
Answers
-
Does your organization use Google Analytics? If so, you can add the Google Analytics Quickstart App to your instance and it contains a pre-built card with beast modes that might be helpful for you. I have the quickstart app in our instance and there is a card called Average Visit Duration. They have a beast mode for average visit duration that converts the time on sites to a decimal in minutes. This seems like something you could use. Here is the beast mode:
(CASE WHEN (SUM(`Visits`) = 0) THEN 0 ELSE ((SUM(`Time On Site`) / SUM(`Visits`)) / 60) END )
The card ends up looking like this:
Hope this helps.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
@cjack-PML - Have you tried plotting the seconds value as a number (total seconds - 65, 58, 12, 38, 22) rather than the string formatted version (00:01:05, 00:00:58, 00:00:12, 00:00:38, 00:00:22) of your seconds? You could then utilize your formatted string as a tooltip and then change the hover text or display text to pull the value from the Tooltip 1 field.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2 -
This is a really cool solution and it does work! Thanks!
One issue for me is that I have to export these as PowerPoint slides. But your solution still works for this: in my Data Label Settings I set Text to include the tooltip as well, so now the time displays above each of the bars
2
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive