Alteryx Designer Desktop Discussions

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

extracting and converting date

srk0609
8 - Asteroid

Hi,

 

can anyone please help me extract and convert this data. I'm attaching input file in xlsx format and photo desired output. I would like to have 3 outputs like this in V_String or VW_String data type. Thank you.

srk0609_0-1657301084739.png

 

13 REPLIES 13
IraWatt
17 - Castor
17 - Castor

Hey @srk0609, is Jan26 the same as year 2026 Jan or is it the 26th day of Jan?

PhilipMannering
16 - Nebula
16 - Nebula

Where does the data for Outputs 2 and 3 come from?

 

Here's a solution to Output 1,

PhilipMannering_0-1657302005513.png

 

BrandonB
Alteryx
Alteryx

What about something like this:

 

BrandonB_0-1657302112940.png

 

You could use the regular expression .*([[:alpha:]]{3}\s.*) to pull the month and date from the string. Not quite sure how you are getting the values from column 2 and 3, but if you are just looking to pull the dates from the string based on the pattern I think that this should suffice. 

 

PhilipMannering
16 - Nebula
16 - Nebula

Here's a one tool solution,

PhilipMannering_1-1657302335528.png

 

IraWatt
17 - Castor
17 - Castor

I was looking at creating a one tool regex solution. Can you explain \L\u @PhilipMannering ? It doesnt seem to be a thing in regex101: build, test, and debug regex

IraWatt_0-1657302746397.png

 

srk0609
8 - Asteroid

Hi,

 

I'm adding 1 month and Subtracting 1 month to input field. Could you please help me get output 2 and output 3?

PhilipMannering
16 - Nebula
16 - Nebula

@srk0609 Ah, of couse you are!

 

See attached.

PhilipMannering_0-1657303647755.png

 

PhilipMannering
16 - Nebula
16 - Nebula

@IraWatt I don't think I've ever used this before, but it appears that you can modify the case when doing a replace. So...

\L$1    will lower case group 1

\l$1    will lower case the first letter of group 1

\U$1    will uppercase group 1

\u$1    will uppercase the first letter of group 1

 

Therefore,

\L\u$1    will lower case everything and then uppercase the first letter = titlecase.

 

Pretty neat, right?

IraWatt
17 - Castor
17 - Castor

@PhilipMannering thanks for the explanation, it is very neat 😄    

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels