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

How to remove columns that are all zeros

acaryasin01
8 - Asteroid

Hi,

 

I have a large data set that has a number of columns that are just all zeros and I want to remove these field.

If there is anything other than zero in the column, it is useful and I would like to keep it. Sample input and output below.

 

Thanks in advance.

 

Input   
Order #ABC
1001050
1002000
3302002
4507011
    
    
Desired Output   
Order #BC 
100150 
100200 
330202 
450711 

 

 

 

3 REPLIES 3
DataNath
17 - Castor

Hey @acaryasin01, here's how I'd go about it. The Data Cleanse tool has the option to remove fully null columns, as well as replace numeric nulls with 0 and therefore I just temporarily made all 0s into nulls in the step before to then push the data through this tool and get the expected outcome.

 

DataNath_0-1658992266082.png

acaryasin01
8 - Asteroid

Perfect, thank you @DataNath much appreciate .

flying008
14 - Magnetar

Hi, @acaryasin01 

 

There is a easy way . 

 

录制_2022_07_28_15_24_51_991.gif

Labels