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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 7 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 655 Datasets
- 114 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 770 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 76 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 408 Distribute
- 119 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive