Creating a Quick Filter from a CASE Expression
I'm trying to create a quick filter based off of a case expression and I'm running into some trouble because the dates overlap as you can see below. When I click on the first section it works great but when I click on 'Aug 2018 - Oct 2018' it only gives me Oct's numbers because August and September are already in July - Sept filter. How can I get this to show all 3 months based on what is selected? I know I can do them all in individual case expressions but then how do I combine them all into one quick filter?
CASE
WHEN `PostedDate` >= CAST('2018-07-01' as DATE) AND `PostedDate` <= CAST('2018-09-30' as DATE) THEN 'Jul 2018 - Sep 2018'
WHEN `PostedDate` >= CAST('2018-08-01' as DATE) AND `PostedDate` <= CAST('2018-10-31' as DATE) THEN 'Aug 2018 - Oct 2018'
WHEN `PostedDate` >= CAST('2018-09-01' as DATE) AND `PostedDate` <= CAST('2018-11-30' as DATE) THEN 'Sep 2018 - Nov 2018'
...
Comments
-
I dont think it will ever work as you intended it to unfortunately
You could set up a bestmode that is instead gives you Year-Month so you would be able to select each individual month. Not ideal but it will work
0 -
Thanks for your response/suggestion. Very frustrating as the users want 90 day filters
0 -
The othe way of doing it, although it could generate more confusion is to have more than one beastmode/quick filter to select from
0 -
Yea, I think over time it would just get cluttered. Thanks for your time on this.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 731 Beast Mode
- 55 App Studio
- 40 Variables
- 682 Automate
- 175 Apps
- 451 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 122 Manage
- 119 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 107 Community Announcements
- 4.8K Archive