We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Find quarter out of date in Alteryx

LeoMessi
7 - Meteor

Hi,

 

I am trying to figure out Quarter from input as a date in my data. 

 

Attaching the sample dataset. Any suggestions will be a great help. 

 

Regards,

3 REPLIES 3
RSreeSurya
9 - Comet

Hi,

 

 

Attaching the workflow. 

FrederikE
13 - Pulsar

Hey @LeoMessi,

 

You could do it with the new (23.1 required) BETWEEN-Function. 

FrederikE_0-1685430051868.png

 

IF Between([MonthNr], 1, 3)
THEN 'Q1'
ELSEIF Between([MonthNr], 4, 6)
THEN 'Q2'
ELSEIF Between([MonthNr], 7, 9)
THEN 'Q3'
ELSE 'Q4'
ENDIF

danilang
19 - Altair
19 - Altair

Hi @LeoMessi 

 

You can find the quarter using the following equation in a formula tool, independent of the Alteryx version you have installed

 

Ceil(DatetimeMonth([Date])/3)

 

the Ceil() function returns the smallest Integer greater than or equal to its input, which in this case is Month/3.

danilang_0-1685447171808.png

Dan

   

Labels
Top Solution Authors