Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

MIN & MAX

Ariz
7 - Meteor

Hi all

 

I am just trying to put min or max formula to identify prior and current date as I have two different COB dates

Have put something like this

IF[Close of Business date]= MAX THEN "CURRENT" ELSE "PRIOR" ENDIF

but doesn't seem to be working

 

Please share your thoughts

 

thanks
Ariz

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Edit: that syntax would not work as you described

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Ariz,

 

So you'll want to bring a summarise tool in using a MAX action and append that back to your original data (using an append fields tool). This will create you a new column (of the max date in the data set) which can then be used in a formula tool expression.

 

I'll mock up a quick example.

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Regards,

Jonathan

Jonathan-Sherman
15 - Aurora
15 - Aurora

Attached is an example workflow,

 

image.png

 

if this solves your issue please mark the answer as correct, if not let me know!

Regards,

Jonathan

Ariz
7 - Meteor

Thanks Jonathan it worked 

Labels
Top Solution Authors