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! 

Tagged:

Comments

  • jaeW_at_Onyx
    jaeW_at_Onyx Budapest / Portland, OR 🟤

    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.