Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Date Validation needed based on multiple columns and rows

AMathis
メテオロイド

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件の返信1
griffinwelsh
クエーサー

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.

投票
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
ラベル