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

ROw removal

Avishek1
8 - Asteroid

Dear expert,

 

I want to remove all rows where specific column/column values are blank

 

Field1 Filed2Filed3Filed4
attr1   
attr1attr2 attr5
attr1   

 

for above eg I  want to remove row 1 and row 3.

can you please share some solution, please note that number of rows can vary

6 REPLIES 6
Kenda
16 - Nebula
16 - Nebula

Hello @Avishek1 

 

You could use the data cleansing tool here. First use a select tool to only keep the fields that you want to check for all null values in then use the data cleansing tool making sure to check the Remove null rows check box.

 

 

Kenda_0-1617301938315.png

 

marcusblackhill
12 - Quasar
12 - Quasar

Hey @Avishek1 !

 

Looks like you can use a simple filter.

marcusmontenegro_0-1617301987432.png

 

Select the field2 and "is not null"

marcusmontenegro_1-1617302012507.png

 

If need to do for more columns, use customized with formula like:

marcusmontenegro_2-1617302084515.png

isnull(f[field1]) or isnull([field2])

 

Hope that help!

 

 

estherb47
15 - Aurora
15 - Aurora

Hi @Avishek1 

 

One easy way is using a filter that looks at if all of the fields are empty

e.g., IsEmpty([Field2]) AND IsEmpty([Field3]) etc.

 

Cheers!

Esther

Avishek1
8 - Asteroid

@Kenda Thanks for your response actually I need the first coulmn to be in my output hence if I am performing the solution provided I am losing 1st column information

estherb47
15 - Aurora
15 - Aurora

Just be sure to use the boolean AND in the custom filter, otherwise you can wind up filtering out any row where a field is empty.


Cheers!

Esther

BogdanCalacean
7 - Meteor

Hi,

 

I suggest using Filter tool for that example you shown there.

 

You can find below a solution for this.

 

Bogdan

Labels