In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors