How do you round up a decimal on a gauge graph
I can't figure out how I can round up the decimal on a gauge fill graph. Do not see an option in the chart properties nor the formatting of the field used for the gauge. It is set to number with 0 decimal in the formatting but the decimal still shows. See attached
Thank you for any assistance.
Best Answer
-
Did you try this?
ROUND(AVG(DATEDIFF(`Investigation End Date`,`Investigation Start Date`)),0)
**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.0
Answers
-
In the Chart Properties under General, place a check next to Abbreviate Values. Along with the zero decimal places you already have selected, this should do it. It is working for me.
**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.0 -
Thank you for the reply. I do have that checked and it is not working for me. My output is based on a formula: AVG(`Investigation End Date`-`Investigation Start Date`) so I wonder is that has something to do with it. It is taking the difference between the start and end dates of reports with the quarter and getting an average, but output is in decimal format.
0 -
I wouldn't think that a beast mode would prevent it from rounding, but you could use the round function on the outside of your average function within the beast mode. You should be able to round it to zero decimals in there.
**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.0 -
I don't think it's SQL correct syntax to subtract dates using
date - date.
you should use date_diff(end_date, start_date)
OR
convert your dates to unix_timestamp() and then subtract.
see if that impacts the output.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thanks, I did try that formula and get the same output in decimal format. I now want to round the output to the nearest whole number and not sure how to. I tried to use the round function, but it's not working or I am not using it correctly. thanks for you assistance
AVG(DATEDIFF(`Investigation End Date`,`Investigation Start Date`))
The output is 108.38.
Nothing in the properties allows for rounding.
0 -
Did you try this?
ROUND(AVG(DATEDIFF(`Investigation End Date`,`Investigation Start Date`)),0)
**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.0 -
Thank you, Can you give me an example of the round function. I tried and not getting it to work. What would go inside the parentheses? Thank You.
AVG(DATEDIFF(`Investigation End Date`,`Investigation Start Date`))Round()
0 -
Perfect, That worked! Thank you very much Mark.
0
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