We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Analyse dates within a group in a dataset

h12
8 - Asteroid

Hi all

 

Below is the table for the analysis:

  • There can be various numbers of 'people' (rows) within in each group (can range up to 200 rows per group)
  • I want to be able to analyse per row within each group

Ask:

Within each group, I want to say

  1. Oldest date column - identify the oldest date in each group and create a new column Oldest date
  2. Analyse within each group if the search date is older than the oldest date column (e.g. 3 Nov is older than 17 Nov so an older date was found from within the group)
  3. Where there is no individual search date,result should be cannot find search

 

GroupIDRank in each groupInvidual SearchOldest date in the groupResult
AABC117/11/202003/11/2020Older date was found
ACDE217/11/202003/11/2020Older date was found
AEFG303/11/202003/11/2020No older date was found
BHIJ1  Cannot Find Search
BERT227/10/202027/10/2020 
CFYU102/07/202002/07/2020No older date was found
CSDV221/01/202102/07/2020Older date was found
CBJY321/10/202002/07/2020Older date was found
CGJY4 02/07/2020Cannot Find Search
8 REPLIES 8
messi007
15 - Aurora
15 - Aurora

@h12,

 

Please see below 

 

messi007_0-1633679729829.png

 

Attached the workflow,

Regards

Prime.PNG

h12
8 - Asteroid

Thank you! You know where the search date is null , I would like the last column to say no search date, I think currently it brings through a date (row 4 in your screenshot)

atcodedog05
22 - Nova
22 - Nova

Hi @h12 

 

Here is my take on the usecase

 

Workflow:

atcodedog05_0-1633682624927.png

 

Hope this helps : )

h12
8 - Asteroid

Thank you! This is helpful. Is there anything that can be done with that blank cell?

atcodedog05
22 - Nova
22 - Nova

Hi @h12 

 

If you tell us the logic behind it we can help out.

messi007
15 - Aurora
15 - Aurora

@h12,

 

Here you go 

 

messi007_0-1633687405256.png

 

Attached the new version of the workflow

h12
8 - Asteroid

Thank you both!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @h12 
.

PS: you are allowed to mark multiple posts as solutions.

Cheers and have a nice day!

Labels
Top Solution Authors