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

  • 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"