Alteryx Designer Desktop Discussions

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

Removing data from column 1 in column 2

C-LOTTE
5 - Atom

Hi,

 

I need to remove data from column 1 in column 2, and i can´t find a smart way to do it.

 

Example:

C-LOTTE_0-1597739202366.png

 

I need to remove data from the column "Fabrikant" in the column "Produkt_navn".

 

How do I do this in a smart way?

 

 

7 REPLIES 7
bhrmitra
10 - Fireball

Hi  ,

 

A formula tool will help you get the desired result

 

If this solves your issue please mark the answer as correct and also hit the like button, if not let me know! I've attached my workflow for you to download if needed.

 

Thanks,

Abhra Mitra

grazitti_sapna
17 - Castor

Hi @C-LOTTE,

 

Can you please share the input and output data samples?

 

 

Sapna Gupta
C-LOTTE
5 - Atom

Hi grazitti_sapna

 

I have uploadet a sample in an excel sheet with the data. I hope you can work with that.

C-LOTTE
5 - Atom

Hi 

 

I have tried using a formula tool but i can´t find the right formula to use. Do you have an idea?

DavidP
17 - Castor
17 - Castor

Hi @C-LOTTE 

 

A replace function can do this, as shown in the example below. The normal replace function is case sensitive though, so where you have Koss and KOSS, this won't work.

 

The Regex_Replace function can be case insensitive though, and in this case you use it without actually using regex!

 

I've attached an example showing the difference between the 2.

 

DavidP_1-1597740812087.png

 

grazitti_sapna
17 - Castor

Hi @C-LOTTE,

 

You can use the formula tool with below expression:

 

regex_replace([Produkt_navn],[Fabrikant],"").

 

PFB the Screenshot:

 

regex_replace.png

Sapna Gupta
C-LOTTE
5 - Atom

Thank you for you help 

 
Labels