Alteryx Designer Desktop Discussions

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

Date Validation needed based on multiple columns and rows

AMathis
6 - Meteoroid

I believe I need a multi-row formula for this but not sure how to begin.  I need to verify if the range of dates between 2 columns and multiple rows show no gaps.

 

For example, if the "chk_out_dt" is one day after the "chk_in_dt" from the previous row (if blank/null, the last "chk_in_dt" that is not blank), then valid:

 

unit_nochk_out_dtchk_in_dtValid Date Range
180000016/10/20209/22/2020Yes
180000019/23/20206/28/2023Yes
180000016/29/20234/16/2024Yes
180000014/17/2024 Yes
180029643/30/20213/14/2023Yes
180029643/15/20235/5/2023Yes
180029645/6/20234/18/2024Yes
180029644/19/2024 Yes
180029644/20/2024 No

 

That last row is Not Valid since the "chk_out_dt" (4/20/2024) is 2 days after the last "chk_in_dt" (4/18/2024)

1 REPLY 1
griffinwelsh
12 - Quasar

Here is a sample solution that should work. Just make sure your rows are sorted properly heading into the workflow and you should get the desired output.

Labels