Alteryx Designer Desktop Discussions

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

Date Time

Ayaanarjun-5885
7 - Meteor

Hi,

 

I have Data of 2 days, Previous Day and current day. I wanted to compare Previous day's Data with Today's data. If Previous date Data is Repeated in Today's date the output should be "Yes" , If it is not repeated in today's date then it is "No".  Reference table attached below.  For example employee ID 'a' of 9/29/2022 is not repeated on 9/30/2022 so output is "No", 'b' is repeated on Current day so it is 'Yes'.. Could you please help with this...

 

Input

DateEmployee ID
9/29/2022a
9/29/2022b
9/29/2022c
9/29/2022d
9/29/2022e
9/30/2022b
9/30/2022c
9/30/2022d

 

 

Output

DateEmployee IDOutput result
9/29/2022aNo
9/29/2022bYes
9/29/2022cYes
9/29/2022dYes
9/29/2022eNo
9/30/2022b 
9/30/2022c 
9/30/2022d 
4 REPLIES 4
Rakesh_Jasuja
8 - Asteroid

@Ayaanarjun-5885  have you tried multi-row formula?

Matthew
11 - Bolide

i think you want a full join, and look for the rows on the inner join

 

Matthew_0-1664548234199.png

 

 

JamesCharnley
13 - Pulsar

I can match your desired output by splitting the dates and joining on ID. Those IDs in both days will come out of the J Anchor and can be marked 'Yes', while those coming out of the L Anchor can be marked 'No', and then everything can be unioned back together.

 

JamesCharnley_0-1664548034543.png

 

Rakesh_Jasuja
8 - Asteroid

@Ayaanarjun-5885  I have attached a sample workflow

Labels