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

Sample Tool - return only the 2nd row and not 2nd +

DChaloult
5 - Atom

I am using this configuration for the Sample tool:

 

  • "Skip 1st N rows" option.
  • Set the value of N to 1.

In this scenario, I have a list of 3 files, I am expecting the 2nd row "...11-20-24.xlsx" to return

3 rows.jpg

 

However, I get back rows 2 and 3 after the first row is skipped. 

2 files.jpg

 

My workaround is to add another Sample tool after that to then select the first row.

4.jpg

 

QUESTIONS:

  • Why is the Skip 1st N rows returning two rows (or really all files after the first row)?
  • Can I do this all with one tool? Is there a better way to get the 2nd row without having to add another tool?

Thank you

4 REPLIES 4
alexnajm
18 - Pollux
18 - Pollux

Use a Select Records tool and just grab "2"!

alexnajm
18 - Pollux
18 - Pollux
DChaloult
5 - Atom

That's so much better than the sample tool! Thank you

alexnajm
18 - Pollux
18 - Pollux

Happy to help

Labels
Top Solution Authors