Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Removal of blank columns from output file.

deepakshaw1991
7 - Meteor

I have created a workflow and the result of which is attached below.

 

deepakshaw1991_0-1625831083851.png

 

There are few problems for which I want the solution.

 

1) Some of the columns were blank which I don't want to keep. However, I can't use select tool since the blank column names can be different each times and number of such blank columns can also be different

2) There is one blank column which I want to keep each time and the name of which is always same. Let's assume the column name to be "Column3"

 

Output I want to derive: - 

 

deepakshaw1991_1-1625831123426.png

 

Please help me to achieve the solution.

 

Happy weekends!!

 

Thanks & Regards,

Deepak

 

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @deepakshaw1991 

 

You can use data cleanse tool remove null columns options to remove these columns.

atcodedog05_0-1625831520388.png

Hope this helps 🙂

 

deepakshaw1991
7 - Meteor

Thanks for such a quick response.

 

1) My data cleansing tool not showing this option.

2) What about point number 2 mentioned above.

atcodedog05
22 - Nova
22 - Nova

Hi @deepakshaw1991 

 

1. Data cleanse tool is a macro i can share it with you. It was introduced in 2020.2

 

If you already know the column names of required columns you can use select tool. Unused blank columns can have any names.it wont affect.

shreyanshrathod
11 - Bolide

Hi @deepakshaw1991 ,

 

A data cleansing update can help you here!!!

 

Separate your columns into two streams via SELECT tool

          1. Select the NULL column that you want in the output (uncheck *Unknown at the bottom of the Select tool config)

          2. Let all columns go into the second stream (keep the *unknown checked in the SELECT tool)

 

In the second stream, Use data cleansing and Remove all NULL columns. Finally, rejoin your both streams using JOIN tool.

Make sure you number the records via a RECORDID tool at the beginning itself. Use RecordID back for joining your data.

 

Attaching a Sample workflow. Hope it helps.

 

 

NOTE:- If you can't upgrade DATA cleansing, you will have to achieve this using Transpose - Crosstab combination.

 

Regards,

Shreyansh

shreyanshrathod
11 - Bolide

@deepakshaw1991 ,

 

Attaching an updated workflow with this post.

Consists of two solutions in two containers.

 

With Data cleansing tool and without data cleansing tool.

Personal opinion, without data cleansing one is completely dynamic. (even if the mentioned NULL column is not present)

 

Regards,

Shreyansh

Labels