Start Free Trial

Alteryx Designer Desktop Discussions

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

Max and Min Date with a multi row tool

wonka1234
10 - Fireball

Hi,

 

This seems like a job for a multi row tool.

 

How to find the max and min dates of this dataset? I feel like I need to go into both rows for each n_value.

 

I was trying to this but i dont think it applies to both rows for each n_value.

 

MAX_DATE = if [c_Action_Date] <= [File_date_with_days] then [Value] else "" endif

 

 

sample data:

 

N_VALUEc_Action_DateFile_date_with_daysNameValue
jon6/27/202210/13/2022202210Y
jon6/27/202210/13/2022202211 
joey6/27/202210/13/2022202210Y
joey6/27/202210/13/2022202211 
kim6/27/202210/13/2022202210Y
kim6/27/202210/13/2022202211 
lou6/27/202210/13/2022202210Y
lou6/27/202210/13/2022202211 
ren6/27/202210/13/2022202210Y
ren6/27/202210/13/2022202211 
bob6/27/202210/13/2022202210Y
bob6/27/202210/13/2022202211 
andrew6/27/202210/13/2022202210Y
andrew6/27/202210/13/2022202211 
joe6/27/202210/13/2022202210Y
joe6/27/202210/13/2022202211 
don6/27/202210/13/2022202210Y
don6/27/202210/13/2022202211 
rudy6/27/202210/13/2022202210Y
rudy6/27/202210/13/2022202211 
bobby6/27/202211/13/2022202210 
bobby6/27/202211/13/2022202211Y
drew6/27/202211/13/2022202210 
drew6/27/202211/13/2022202211Y
carlos6/27/202211/13/2022202210 
carlos6/27/202211/13/2022202211Y
pete6/27/202211/13/2022202210 
pete6/27/202211/13/2022202211Y
jamie6/27/202211/13/2022202210 
jamie6/27/202211/13/2022202211Y
justin6/27/202211/13/2022202210 
justin6/27/202211/13/2022202211Y
rich6/27/202211/13/2022202210 
rich6/27/202211/13/2022202211Y
rob6/27/202211/13/2022202210 
rob6/27/202211/13/2022202211Y
trevor6/27/202211/13/2022202210 
trevor6/27/202211/13/2022202211Y
adam6/27/202211/13/2022202210 
adam6/27/202211/13/2022202211Y
3 REPLIES 3
SPetrie
13 - Pulsar

Is there any particular reason you want to use a multi-row or is that just how you were thinking of going about it? If you ware just looking for the max/min dates for each person a transpose and then summarize may be easier.

Transpose the data so the dates are in one column vs. two, then convert to a date value. You can then use a summarize to get your max and min dates and group it by person.

SPetrie_0-1674509674036.png

SPetrie_1-1674509706618.png

 

 

wonka1234
10 - Fireball

@SPetrie  would you be able to attach the workbook?

SPetrie
13 - Pulsar

Sure. Here you go.

Labels
Top Solution Authors