Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Formula with 12-hour time

cayladuplooy
7 - Meteor

Hi All,

 

I am looking for a formula which will give me "Sydney" for any time something is purchased between 9pm and 9am and then give me "Paris" for anything purchased between 9am-9pm. The time column will be in 00:00:00 AM/ PM (HH:MM:SS) format and be a time data type. 

 

The time will be in 12-hour format too and have either AM or PM at the end. 

 

Thank you

1 REPLY 1
DavidP
17 - Castor
17 - Castor

Hi @cayladuplooy 

 

Something like this?

 

DavidP_0-1640131732066.png

 

Labels