In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Identify Quarter and Month column

PassION_es
10 - Fireball

Hello Everyone,

 

 

Requesting your assistance to identify the first and last day of a quarter using the date column. 

 

Attached is the dummy input and output for your reference.

 

Date- 02/03/2024

 

OUTPUT Columns:

1. Period From (first day of the quarter) - 01/01/2024

2. Period To (last day of the quarter) - 03/31/2024

3. 1st month of the quarter -  zero 

4. 2nd month  - copy the cwt amount

5. 3rd month - zero

 

6. Total - from 1st to 3rd month column.

 

 

 

3 REPLIES 3
ChrisTX
16 - Nebula
16 - Nebula

check out the DateTime Functions like 

 

DateTimeAdd

 

DateTimeFirstOfMonth


DateTimeLastOfMonth

 

DateTimeTrim(dt,t): Removes unwanted portions of a date-time and returns the modified date-time.

Parameters
dt: Date-time data expressed as a selected column or a specified date-time value between quotes.

t: Trim type. Options include:

firstofmonth: Trim to the beginning of the month (this does the same as month).

lastofmonth: Extend to one second before the end of the last day of the month.

 

Chris

binu_acs
21 - Polaris

@PassION_es one way of doing this

image.png

PassION_es
10 - Fireball

thank you both of you @ChrisTX  and @binu_acs 

Labels
Top Solution Authors