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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 601 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 691 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 385 Distribute
- 110 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 112 Manage
- 109 Governance & Security
- 8 Domo University
- 25 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive