Filled Gauge Chart
I have a gauge filled chart built that has been working each month and is now showing an error. The field I am using for the time period is Date Closed and now it makes me pick a Max Or Min. That was never showing before. Is this a change? I am trying to show the Ave Days to Close incidents base on Previous Month compared to one year ago. So a period over period graph using the filled gauge.
My formula for the Gauge Values is the following:
ROUND(AVG(DATEDIFF(`Investigation End Date`,`Investigation Start Date`)),0)
Nothing seems to work in the Date Filter either. Not sure what it wants.
Sample of when it did work
Thank you,
Answers
-
Hi @user082291
has something changed with your date fields? Are there now nulls in your date field?
Can you try an alternate method for calculating date difference by using UNIX_TIMESTAMP?
’’’
ROUND(AVG((UNIX_TIMESTAMP(`Investigation End Date`-UNIX_TIMESTAMP(`Investigation Start Date`))/60/60/24),0)
’’’
simply it’s calculating the number of seconds between the two dates and converting them to data using division
I’m on mobile so there may be some syntactical errors.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
@user082291 , convert your card into a table card and confirm that it still retrieves values.
Also, are you confident that your EndDate and StartDate never contain nulls?
If it does contain nulls, can you confirm that the math still works as desired.
ROUND(AVG(DATEDIFF(`Investigation End Date`,`Investigation Start Date`)),0)
Also, Domo recently (i'd say in the last 5 weeks) changed the functionality of Domo such that you can't wrap aggregate functions (AVG) inside another function (ROUND). This may or may not be part of your problem, but do try removing the ROUND() function and see if it works, first as a table card, then as a gauge.
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"1
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