Calling all Windowed Beast Mode and FIXED Function experts!

I think I'm close on this but am struggling to get my expected result. Here is my end goal—a chart showing data by date, with a line for the "Best Ever" value.
Things making it tricky:
- I need the date range to be dynamic, i.e. user can select different dates
- I need the "best ever" value to be pulled from across the entire dataset, not just the displayed dates.
- The dataset is not structured with 1 row per date. Sometimes multiple rows exist for a single date.
I have the line working using the following windowed beast mode: MAX(SUM(Total Revenue)) OVER ()
however, this pulls the max from the filtered/displayed dates. I need the max from the entire dataset (all time).
If only I could add the DENY FILTER date
from FIXED functions into my window, I would have what I want 🙂 but obviously it doesn't work that way. Using a FIXED function, e.g. MAX(SUM(Total Revenue) FIXED (BY date))
because I have date
on the x axis; and MAX(SUM(Total Revenue) FIXED ())
doesn't work either.
Any ideas that don't involve ETL? ETL isn't an option because I also need to do this for calculations and I need them to be filterable by location — in order to keep everything contextual, it needs to be done in beast mode. TIA!!!
Best Answer
-
Ah, since you're displaying dates in your x-axis and you don't want the dates to be included in your amount you can use the REMOVE clause in your fixed function:
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
have you tried using your fixed function but instead of using by date use filter deny date and have no by clause
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Thank you @GrantSmith — no dice.
MAX(SUM(total_revenue) FIXED (FILTER DENY date))
gives me the sum of all records for all time. I need the max sum by date, but not affected by the x axis.Maybe it's not possible
0 -
Ah, since you're displaying dates in your x-axis and you don't want the dates to be included in your amount you can use the REMOVE clause in your fixed function:
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 666 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive