"Other" bar for averages
I'm building a card that displays the average value of a field in single bar graph. I'd like to limit the number of bars that are shown by using the "Maximum Bars" option in the chart properties and use the "Other" bar to show the average of all the remaining values. However, the "Other" bar appears to add up the averages of the bars that are hidden instead of taking the true average, which is not a meaninful metric. Does anyone know a way around this? Thanks!
Comments
-
@MichelleH Mind sharing a screenshot of your settings and the graph?
0 -
Thank you for the quick response. I've attached screenshots from the Analyzer. The only Chart Properties option I've configured is the "Maximum Bars". Also, the Beast Mode calculation for the Y-axis is the following:
AVG(DATEDIFF(`Date Col1`,`Date Col2`))
0 -
Interesting. I wonder if this is a limitation of the "Other" bar.
Could you try changing the beastmode to:
(SUM(DATEDIFF(`Date Col1`,`Date Col2`)) / COUNT(`Date Col1`))
Are either of the two date columns ever null?
You could also try:
AVG(case
when `Date Col1` is not NULL AND `Date Col2` is not NULL
then DATEDIFF(`Date Col1`,`Date Col2`)
end)0 -
I suspect it is a limitation of the "Other" bar. I've tried formulas similar to what you suggested and it all shows the same result. It seems like the "Other" bar is only intended for summed values.
Thank you for your help.
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 665 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 825 Beast Mode
- Visualize
- 2.6K Charting
- 90 App Studio
- 46 Variables
- Automate
- 197 Apps
- 489 APIs & Domo Developer
- 94 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 145 Governance & Security
- 12 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive