Alteryx Designer Desktop Discussions

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

want to extract the value from the last full stop

Sshasnk
8 - Asteroid

Hi I have list of value where I fetch the value which is coming after the last full stop, below is the example.

 

Input

Values
item.0.Name
item.attribute.3.Lastname
item.8.File
item.0.exception.8.Phonenumber
item.6.excptiondetails.6.address

 

Output:

Input

Values
Name
Lastname
File
Phonenumber
address
7 REPLIES 7
atcodedog05
22 - Nova
22 - Nova

Hi @Sshasnk 

 

Here is one way of doing it

Here is a workflow for the task.

Output:

atcodedog05_0-1605001634961.png

Workflow:

atcodedog05_0-1605001600419.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Hi @Sshasnk 

 

Here is another way of doing it more optimized

Here is a workflow for the task.

Workflow:

atcodedog05_0-1605001743149.png

Regex tool config

atcodedog05_0-1605001789836.png

Output:

atcodedog05_1-1605001819654.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Sshasnk 

 

Cheers and Happy Analyzing 😀

PhilipMannering
16 - Nebula
16 - Nebula

@atcodedog05 

 

If you're looking to optimize, you really only need,

 

(\w+)$
atcodedog05
22 - Nova
22 - Nova

@PhilipMannering 

 

Tokenize config i assume.

PhilipMannering
16 - Nebula
16 - Nebula

Should work using parse.

 

I think it's just a regex match that has to match the string in its entirety.

atcodedog05
22 - Nova
22 - Nova

Hi @PhilipMannering 

 

You were right it worked on parse too.

Labels