How do I sort my time of day ranges on a card so it is in chronological order?
I created a time of day beast mode below which works successfully. I am using a bubble chart to show the time od day most events occur. This also works successfully however, I would like to be able to sport my time of day in chronological order. I have tried to use the beast mode created below in the sort as both assending and decending but it is not giving me the times in chronoolocal order on the chart.
CASE
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('6:00 am') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('7:00 am') THEN '6:00am-7:00am'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('7:01 am') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('8:00 am') THEN '7:00am-8:00am'
WHEN TIMESTAMP(`EVENTTIME`)>= TIMESTAMP('8:01 am') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('9:00 am') THEN '8:00am-9:00am'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('9:01 am') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('10:00 am') THEN '9:00am-10:00am'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('10:01 am') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('11:00 am') THEN '10:00am-11:00am'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('11:01 am') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('12:00 pm') THEN '11:00am-12:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('12:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('1:00 pm') THEN '12:00pm-1:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('1:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('2:00 pm') THEN '1:00pm-2:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('2:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('3:00 pm') THEN '2:00pm-3:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('3:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('4:00 pm') THEN '3:00pm-4:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('4:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('5:00 pm') THEN '4:00pm-5:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('5:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('6:00 pm') THEN '5:00pm-6:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('6:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('7:00 pm') THEN '6:00pm-7:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('7:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('8:00 pm') THEN '7:00pm-8:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('8:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('9:00 pm') THEN '8:00pm-9:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('9:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('10:00 pm') THEN '9:00pm-10:00pm'
WHEN TIMESTAMP(`EVENTTIME`)> TIMESTAMP('10:01 pm') AND TIMESTAMP(`EVENTTIME`)<= TIMESTAMP('11:00 pm') THEN '10:00pm-11:00pm'
ELSE 'Overnight (11:01pm-5:59am)' END
Not in Chronological Order:
Answers
-
@user028582 I recommend adding the beast mode below as a sort field in your card to order all these times chronologically:
HOUR(`EVENTTIME`)
2 -
Thank you!
0 -
That worked thanks again!😀
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
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 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
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive