Alteryx Designer Desktop Discussions

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

Alteryx filters the rows with an space in the beginning

GOL
6 - Meteoroid

Hello, 

I have an excel file with rows that are the sum of the rows that are below. For the example below the cell B2 is the sum of B3, the cell B4 is the sum(B5:B6), the cell B7 is the sum(B8:B9)

I have to delete the rows that contain the sum. This is, rows 2, 4 and 7.

I have tried to filter by the rows that start with a blank space, but Alteryx  deletes the blank spaces when it  loads the excel file.

There would be another option? 

For example, can Alteryx detect if there is a formula in a cell?

Thank you so much.

regards, 

 

GOL_0-1682613729984.png

 

8 REPLIES 8
binuacs
20 - Arcturus

@GOL if your sum fields are ending with 1 then add a filter tool and write the condition

 

!EndsWith([Field],’1’)

ShankerV
17 - Castor

Hi @GOL 

 

Based on your data, I see A1, B1 and C1 where 1 is common which you want to eliminate.

 

Filter the column with condition if does not contains "1"

 

ShankerV_0-1682615098915.png

!Contains([Field1],"1")

 

ShankerV_1-1682615109900.png

 

Many thanks

Shanker V

GOL
6 - Meteoroid

Oh, thank you so much but I think the example I've provided isn't appropriate.

There is no relation between the sum field and other rows, just the format in which they are written and Alteryx delete it when loads the excel.

Some other ideas? 

binuacs
20 - Arcturus

@GOL The fields other than the sum fields start with a space?

ShankerV
17 - Castor

Hi @GOL 

 

Can you please share the sample excel sheet.

 

 

Many thanks

Shanker V

GOL
6 - Meteoroid

Hello Binuacs, in excel the sum filelds don't star with space and these are the ones that I want to delete.

The other rows, in excel, start with an space and these are the ones that I want to keep.

Regars, 

binuacs
20 - Arcturus

@GOL Then in the filter condition you can add StartsWith([Field],' ')

binuacs_0-1682616747977.png

 

GOL
6 - Meteoroid

Hello, the solution does not work. It seems that Alteryx delete the space in the beginning when it reads the input file. 

Please find attached the mentioned file.

When you read it in excel the beginning space appears but when you open it with Alteryx the space disappears.

Please, any ideas?

GOL_0-1682630143521.png

 

 

GOL_2-1682630432370.png

 

Labels