Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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
17 - Castor
17 - Castor

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

alexnajm
17 - Castor
17 - Castor
DChaloult
5 - Atom

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

alexnajm
17 - Castor
17 - Castor

Happy to help

Labels