Beast Mode- SQL code to count how many updates in 6 hour intervals

Hello,
I'm in need of assistance please of creating a beast mode but can't seem to write it correctly.
I have a table named updates
with a column time_start
that stores the timestamp of each update.
the Rows will be the ticket numbers
And I want to group the updates by 6-hour intervals, and count how many updates fall into each interval.
Here is what I have curently-
DATE_ADD(Hours
, time_start
) - INTERVAL '1 hour' * (EXTRACT(Hours
FROM time_start
) % 6) AS time_start
,
COUNT(*) AS TicketNbr
Any assistance is greatly appreciated.
Answers
-
@DashboardDude thank you for assisting me in the previous post and while the new ETL data set worked, we are not allowed to create new data sets so I have to create a beast mode for this request.
I was hoping you can assist on a beast mode to get this working, or if this is even possible to create?
0 -
Hi @Abe ,
Feel free to book some time and we can see what we can do: https://www.dashboarddudes.com/domo-help
John Le
Are you on my newsletter? If not, signup here so you don't miss out on my Domo tricks, alerts about my webinars, cooking tips and more
Signup here:
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 659 Datasets
- 116 SQL DataFlows
- 2.2K Magic ETL
- 816 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 82 App Studio
- 46 Variables
- 776 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 82 Workflows
- 23 Code Engine
- 41 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 2 AI Projects and Models
- 18 Jupyter Workspaces
- 411 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 11 Software Integrations
- 145 Manage
- 141 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 115 Community Announcements
- 4.8K Archive