We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic "Sample"

bakaidora
8 - Asteroid

Dear All,

 

I have a use case out of a .csv file.

The first step is that I need to "cut" those lines from the beginning which are not necessary.

But the issue is that sometimes I should remove the row 1-34; sometimes 1-50, other example is 1-123, so it is always different.

The only field which is always the same, that the latest cell which I do not need, contains the following information "[HISTORY DATA]" and this is always the same. So I need everything which is under this line (but this line/cell is moving up or down).

 

Thanks for your kind help.

Dóra

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

@bakaidora if I'm understanding your request correctly, is this what you need? The workflow assigns a RecordID to each row, before isolating the cell containing [HISTORY DATA] and appending the RecordID of that entry to every row. We then just use a filter to check that the RecordID is larger than that of the [HISTORY DATA] entry:

 

DataNath_0-1665741647389.pngDataNath_1-1665741659024.pngDataNath_2-1665741671579.png

 

The select at the end just removes these IDs that we only needed temporarily for the removal:

 

DataNath_3-1665741693896.png

 

This will be fully dynamic as the [HISTORY DATA] entry moves up and down throughout the data.

Emmanuel_G
13 - Pulsar

@bakaidora  You can do the filter before sample or select records tool to remove these lines and be sure that you will not have it again.

bakaidora
8 - Asteroid

@DataNaththanks, it worked.

Labels
Top Solution Authors