Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

conditional read?

becki
8 - Asteroid

(this might be something to do in sql, not alteryx but i am trying to do in alteryx)

I'm reading in a row of data from sql.  If today's date is earlier than the 15th of the month (for example, it's June 13, 2018) and the field "TimePeriod" is 201806, ignore the entire line, move to the next.  If today's date is earlier than the 15th of the month (for example, it's June 13, 2018) and the field "TimePeriod" is 201805, read in the line.  If today's date is the 15th or later, read in the line no matter what.  I have the calculation for how to test if it's the 15th or not but I don't know how to do a conditional read on a line which has to be initially read, to be tested, and either thrown out or processed.

 

thank you

 

becki kain

 

2 REPLIES 2
Bob_Blackey
11 - Bolide

The simplest solution would just be to add a filter tool after your Input and have the formula be the calculation you've already created. Then the records you want would be coming out of the T output. Would that work or is there more to it?

 

Cheers,

Bob

 

becki
8 - Asteroid

no, I was making this harder than it needed to be.  thanks

 

Labels