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
- 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
- 769 Automate
- 189 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