Window Function on Fixed Column Finding Aggregations of Previous Beast Mode
Hello,
I was hoping to find a way to take the MAX, MIN, and AVG of a calculation based on a column in a beast mode calculation. For example, I am creating the "Average Performer" as something like the below query but I am getting an error thrown.
AVG(AVG((SUM(COMPLETED
) / SUM(EXPECTED
))) FIXED (BY GROUP_1
))
I was basing my work on this link:
. Does anyone have any suggestions on what I can do?Best Answers
-
Hi, I found a column that represents this inner Completion Percentage beast mode but I am still having trouble with showing a line graph for the MAX, MIN, and AVG of the Completion Percentage column based on the GROUP_1 column. Can anyone help me out?
Edit: This is not an answer so please disregard my misclick
0 -
Hi, your answer was correct
0
Answers
-
If you just want the average by group, you probably don't need a fixed function. You could just set the aggregation to average. In a table, for example, make the first column GROUP_1 and the second column your BeastMode.
Or if that's not working, could you be more specific about what you mean by "average performer"?
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
Hi, I am using these beast modes in the line graph card. I am not sure that the table solution will work. By 'Average Performer', it is someone who is the average performer based on the group for the rate of completed/expected
0 -
To be more clear, I created a beast mode called 'Completion Percentage' with it being (SUM(
COMPLETED
) / SUM(EXPECTED
). I am trying to find the MAX, MIN, AVG of this metric while fixing on the GROUP_1 column so that I can plot the Max Completion Percentage, the Min Completion Percentage and the Avg Completion Percentage over time based on the GROUP_1 column. I hope this helps :)0 -
Hi, I found a column that represents this inner Completion Percentage beast mode but I am still having trouble with showing a line graph for the MAX, MIN, and AVG of the Completion Percentage column based on the GROUP_1 column. Can anyone help me out?
Edit: This is not an answer so please disregard my misclick
0 -
Since you're saying line graph, I'm assuming you want it not just fixed by category but also by date. If it's not fixed by date (or whatever your x variable is) it would be a bunch of horizontal lines. That would be something like this for your completion percentage:
( SUM(COMPLETED) FIXED(BY GROUP_1, DATE) ) / ( SUM(EXPECTED) FIXED(BY GROUP_1, DATE) )
Then you could create BeastModes with this same formula wrapped in Max, Min, Avg, etc.
It sounds a bit like Spaghetti to me, though with 4 lines x number of groups. Maybe you could do vertical box plots, which shows that 4 number summary and put a control/filter to switch between groups.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
Hello, thanks for the response! I am getting the following message. An issue has occurred during processing. We are unable to complete the request at this time. The graph should show a line plot for each month with 1 line for the max, another for the average, and finally a line for the min. Unfortunately, I have no control in setting the parameters for the type of graph to show as I was directed to choose a line graph specifically by the organization that I work for.
0 -
Hi, your answer was correct
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 712 Beast Mode
- 50 App Studio
- 39 Variables
- 668 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 45 Workflows
- 7 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 116 Manage
- 113 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 104 Community Announcements
- 4.8K Archive