Dropdown Selector: always have pre-selected the latest date on a filter card.
Hi, I have a filter card (dropdown selector) to display all dates available and I would like to have pre-selected the latest date. Is this possible?
Right now I added it by manually typing the latest month but I'd like it to switch automatically when the month ends.
Any ideas are welcome!
Thanks
Best Answer
-
If you create a beast mode using a window function, you can get the latest available data.
CASE WHEN ScheduleDate = MAX(ScheduleDate) over () then 'Latest Data' else ScheduleDate end
This will make the latest data show as "Latest Data" and all other data show as the date.
You can then set your default to "Latest Data"
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**1
Answers
-
If you create a beast mode using a window function, you can get the latest available data.
CASE WHEN ScheduleDate = MAX(ScheduleDate) over () then 'Latest Data' else ScheduleDate end
This will make the latest data show as "Latest Data" and all other data show as the date.
You can then set your default to "Latest Data"
David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**1 -
Thank you so much!!!! This solved the problem 😀
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 693 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive