Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

String Format to remove last two records

sagar91
6 - Meteoroid

Hi , 

 

record id      Collumn1

1                  True,True,False,True,True,Some,No

 

2                  True,True,True,True,True,Most of it,No

 

i have these two records and trying to remove last two words Some,No & Most of it,No from collumn1. What would be the solution for it ?

i know regex is there but not sure what RE should I use

 

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @sagar91,

 

Please check my really simple solution.

 

(\<\w+\>,\<\w+\>,\<\w+\>,\<\w+\>)

 

Basically It will show first 4 words

Luke_C
17 - Castor

Here's a no-formula solution that would work for any number of words. It essentially splits each word into a row, and removes the last 2 rows for each record.

 

Luke_C_0-1615824179699.png

 

sagar91
6 - Meteoroid

thank you for the solution 🙂 

Labels