MAX of SUM in Beast Mode Windowing Functions
Hello!
Our org just had our windowing functions for Beast Mode turned on, and we're hoping to utilize it to calculate our MAX messages per second. Below is the logic I've gotten so far, but it does not work unless the table has all of the fields in it. We want to display the value dynamically, so we need to stay within beastmode for this formula.
MAX(SUM(`TOTALMESSAGES`))
OVER(
PARTITION BY `MESSAGE_DATE`,`MSG_HOUR`,`MSG_MINUTE`,`MSG_SECOND`
ORDER BY `MESSAGE_DATE`,`MSG_HOUR`,`MSG_MINUTE`,`MSG_SECOND` ASC)
Thanks in advance!
Comments
-
By definition, you can only partition on columns that are part of the card , because those columns in the card become part of the query that extracts data from Domo.
To only retrieve one value, keep the Max(Sum ...) and add a data table limit set to 1.
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"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.4K Charting
- 710 Beast Mode
- 50 App Studio
- 39 Variables
- 668 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 45 Workflows
- 7 DomoAI
- 33 Predict
- 13 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
- 103 Community Announcements
- 4.8K Archive