Weighted Averages of Summary Data
Hello!
I am trying to create a pretty simple bar chart visualization based off of sumarry data but with numerous filters. The summary data that looks something like this, where I'm charting the average of X-Y average :
X | Y | N | X-Y Average |
0 | 0 | 1000 | 50% |
0 | 1 | 900 | 60% |
0 | 2 | 500 | 70% |
0 | 3 | 300 | 70% |
0 | 4 | 300 | 70% |
0 | 5 | 300 | 70% |
0 | 6 | 100 | 80% |
0 | 7 | 100 | 80% |
0 | 8 | 100 | 80% |
… | … | ||
8 | 8 | 1000 | 50% |
The issue I'm having is that the card itself is showing data averaged over X and Y (which is what I want) with quick filters for X and Y so that I can drill down into the data. However, unless the data is drilled down to a single X-Y combo the visualization is an unweighted average. Is there a way to plot the weighted average? I know I could create a weighted average but I can't see how that would work if someone wanted to filter the data down.
Thanks!
Comments
-
I think what you are wanting will need to be created in beast mode. That way the weighted average beast mode calculation would change based on what is filtered.
0 -
I think it would be something along the lines of...
sum(`N` * `X-Y Average`) / sum(`N`)
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1
Categories
- All Categories
- 1.4K Product Ideas
- 1.4K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 282 Workbench
- 3 Cloud Amplifier
- 4 Federated
- 2.8K Transform
- 86 SQL DataFlows
- 548 Datasets
- 2.2K Magic ETL
- 3.2K Visualize
- 2.3K Charting
- 542 Beast Mode
- App Studio
- 26 Variables
- 566 Automate
- 134 Apps
- 411 APIs & Domo Developer
- 21 Workflows
- DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 344 Distribute
- 86 Domo Everywhere
- 257 Scheduled Reports
- 1 Software Integrations
- 85 Manage
- 84 Governance & Security
- 6 Product Release Questions
- Community Forums
- 41 Getting Started
- 27 Community Member Introductions
- 81 Community Announcements
- 4.8K Archive