Is beast mode needed?

Hi Everyone,
I created a card that uses a date_time_start dimension along with a ticket count on a metric table. This card shows the number of tickets that have a scheduled dispatch showing date and time.
What we want to do is turn past tickets to red except for today's and we used the Last 7 days by hour but the date range.
Here is the table from Yesterday-1/28 and it shows tickets that have scheduled dates from the last 7 days but it also shows date-1/28 ( the screenshot was made yesterday and giving an example as we don't have any dispatches scheduled for today-1/29).
We want to have the dates- 1/22-1/26 turn red. Would this be a "Case, When, Then, End" SQL?
Any assistacne is greatly appreciated.
Best Answer
-
Hopefully the GOATs 🐐 can chime in, but here's what I'd do:
Use this CASE WHEN (you were on the right track thinking of using the CASE WHEN) to flag a date as before today:
CASE WHEN `
Date_Time_Start
` < CURDATE() THEN 'Older' ELSE 'Newer' ENDThis will create a new column that can signify whether the date is for a past ticket or not.
Next, you'll use Color Rules (see link below) to highlight the table row when the "Older/Newer" column is == Older
Let us know if this gets you where you need to go,
✅Did this solve your problem? Accept it as a solution!
❤️Did you love this answer? Mark it as "Awesome"!
👍Do you agree with this process? Click "Agree"!
1
Answers
-
Hopefully the GOATs 🐐 can chime in, but here's what I'd do:
Use this CASE WHEN (you were on the right track thinking of using the CASE WHEN) to flag a date as before today:
CASE WHEN `
Date_Time_Start
` < CURDATE() THEN 'Older' ELSE 'Newer' ENDThis will create a new column that can signify whether the date is for a past ticket or not.
Next, you'll use Color Rules (see link below) to highlight the table row when the "Older/Newer" column is == Older
Let us know if this gets you where you need to go,
✅Did this solve your problem? Accept it as a solution!
❤️Did you love this answer? Mark it as "Awesome"!
👍Do you agree with this process? Click "Agree"!
1 -
@Data_Devon Thank you for the assistance!
This is exactly what we were looking for! Thank you and have a great day!
1
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 825 Beast Mode
- Visualize
- 2.6K Charting
- 89 App Studio
- 46 Variables
- Automate
- 197 Apps
- 489 APIs & Domo Developer
- 94 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 144 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive