"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
- 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
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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