Alteryx Designer Desktop Discussions

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

Date Formatting and creating new column (concat)

sriniprad08
11 - Bolide

Hi Team,

Hope you are well.

I need help.

I need to create a new column based on three exiting column. The first step is to format the date column and then concatenate.

 

Please let me know,

 

Thanks,

Sri

sriniprad08_0-1681907469004.png

 

13 REPLIES 13
ShankerV
17 - Castor

Hi @sriniprad08 

 

One way of doing this.

 

ShankerV_0-1681907853634.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @sriniprad08 

 

Step 1: Input

 

ShankerV_0-1681907908955.png

 

Step 2: 

 

ShankerV_1-1681907925493.png

ShankerV_2-1681907933247.png

 

Step 3:

 

ShankerV_3-1681907955781.png

 

left(RIGHT([Year], 7),2)

 

ShankerV_4-1681907964033.png

 

Step 4:

 

ShankerV_5-1681907994445.png

 

[COM]+"."+[Year]+"."+[CNO]

 

[COM]+"-"+[Year]+"."+[CNO]

 

 

ShankerV_6-1681908005503.png

 

Many thanks

Shanker V

 

DanielG
12 - Quasar

@sriniprad08 this one uses RegEx to get the Year out.  No need for the intermediate step either.

DanielG
12 - Quasar

This also assumes your date field structure is consistent in your full data set.  I am guessing it would be seeing as it included the lead zeros on month, day and the time element.  😊

sriniprad08
11 - Bolide

Hi @ShankerV ,

 

Looks great. Thank you. Can you please share the workflow?

 

Thanks,

Sri

sriniprad08
11 - Bolide

Hi @DanielG ,

 

Great thanks. As per the requirement i need to have two separate column as output one with "." and other with "-". But currently your solution have both in same column. how can i modify that?

sriniprad08_0-1681909082168.png

 

DanielG
12 - Quasar

@sriniprad08  Just copy the formula for the 1 column into another and swap out the punctuation to give you both output fields

ShankerV
17 - Castor

Hi @sriniprad08 

 

Sorry, couldn't save the workflow as error is prompted.

 

ShankerV_0-1681909189023.png

 

Could you please replicate my workflow as I have shared all the steps. 

 

Many thanks

Shanker V

 

 

 

DanielG
12 - Quasar

DanielG_0-1681909253464.png

 

Labels