Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Removing columns based on condition in cells

Lauritsjust
7 - Meteor

Hi all

 

I am trying to remove multiple columns based on a number of conditions.
E.g. below.

 

I have the following cells:

Lauritsjust_4-1643631993757.png

 

I would like to remove all columns containing values such as ":20*" and "ABC" so that the final result will look like this:

Lauritsjust_5-1643632013148.png

 

 

As I do have 1000+ columns, I can not just use the select tool.

 

Do you have any suggestions to a solution so that i can delete multiple columns if they contains some specific string or even a specific number at the same time? 

8 REPLIES 8
atcodedog05
22 - Nova
22 - Nova

Hi @Lauritsjust 

 

You can use dynamic rename and dynamic select in combination like below to remove columns.

 

Workflow:

atcodedog05_0-1643632748781.png

 

Hope this helps : )

 

Lauritsjust
7 - Meteor

This is perfect, thanks alot for the quick response!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Lauritsjust 

Cheers and have a nice day!

Lauritsjust
7 - Meteor

@atcodedog2

 

While using the provided solution I found that some cells that contains either other words or empty/null cells are not removed.

 

Input:

Lauritsjust_0-1643636073995.png

 

I edited the filter tool to contain "and !Contains([Value], "-}")" but using and !Contains([Value], IsEmpty()) and and !Contains([Value], IsNull()) simply removes all data points. 

 

Current output:

Lauritsjust_2-1643636112016.png

 

Desired output: 

Lauritsjust_3-1643636179767.png

 

I edited the filter tool to contain "and !Contains([Value], "-}")" but using and !Contains([Value], IsEmpty()) and and !Contains([Value], IsNull()) simply removes all data points. 

 

Do you have a solution for this problem?


Lauritsjust
7 - Meteor

Sorry, multiple replies.

atcodedog05
22 - Nova
22 - Nova

Hi @Lauritsjust 

 

Please find the updated workflow.

 

Hope this helps : )

Lauritsjust
7 - Meteor

You are saving me hours of work, thank you again! 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Lauritsjust 

Cheers and have a nice day!

Labels
Top Solution Authors