Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Addition of time interval column and number in new columns

kv-defy
8 - Asteroid

Current Dataset:

 

The current dataset, the datetime are together in a column with a measure called Incidents.

 

DateTimeIncidents
2022-01-03 00:00:000
2022-01-03 00:30:000
2022-01-03 01:00:002
2022-01-03 01:30:001
2022-01-03 02:00:004
2022-01-03 02:30:005
2022-01-03 03:00:001
2022-01-03 03:30:002
2022-01-03 04:00:000
2022-01-03 04:30:002

 

 

I would like to split the time out into a table seen below:

 

New Column:

1) Period - 30 minutes interval with the name stated

2) Period Number - Period 1 to 48 since there are 48 periods in a day (30 minutes interval)

 

This is just a snippet of the data and I would like to include for multiple days and data are running in all 24 hours (12am to 12am - 48 "30 minutes" period interval)

 

 

DateTimeIncidentsPeriodPeriod Number
2022-01-03012am to 12.30am1
2022-01-03012.30am to 1am2
2022-01-0321am to 1.30am3
2022-01-0311.30am to 2am4
2022-01-0342am to 2.30am5
2022-01-0352.30am to 3am6
2022-01-0313am to 3.30am7
2022-01-0323.30am to 4.00am8
2022-01-0304am to 4.30am9
2022-01-0324.30am to 5am10
1 REPLY 1
KilianL
Alteryx Alumni (Retired)
Labels