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.
SOLVED

Getting the Quarter for a Specific Date

KamenRider
11 - Bolide

Hi

 

How can get the quarter for this date

 

2024-01

2024-03

2024-06

 

Then format this to:

IF first quarter - results should be Q1

    2nd quarter - results should be Q2 

    3rd quarter - results should be Q3

    4th quarter - results should be Q4

 

Thanks,

 

Kamen

1 REPLY 1
KamenRider
11 - Bolide

Hi,

 

Thanks for those who check my inquiries. Just got an answer from a friend. Sharing the solution

 

'Q'+tostring(CEIL(Datetimemonth([BEGIN_DATE])/3))

 

This will result automatically to Q1, Q2, Q3 or Q4 depending on the date given.

 

Thanks,

 

Kamen

Labels
Top Solution Authors