Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Start reading from a specific line if condition is met

soncoku
9 - Comet

Hello eveyone.

I'm working with some reports.

I thought we had only one format for these reports but apparently we have two formats.

One starts at line 9 and the other one starts at line 22.

 

i was thinking to solve it this way:

 

Read the first row 

If the first row = "Account Statement"

Start reading from line 9

else

If first row = "FC Transactions"

Start from row 22.

 

 

But I don't know how to convert that logic to Alteryx Code.

Can anyone help? 
Or if my way of thinking isn't right I'm open to alternative suggestions.

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @soncoku 

 

Here's a way of doing this (attached) - you might need to adapt to your condition.

 

I tested in both cases (Account Statement and FC Transactions) with different line starts and it seems to work.


Cheers,

Zas3NfkB
7 - Meteor

You could try using a filter and sample tool. It would be easier to test with a full data set but this appears to work. 

 

Zas3NfkB_0-1592830825328.png

 

Labels