Alteryx Designer Desktop Discussions

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

How to get max date

rmartinez4
8 - Asteroid

Hi All, 

 

I have set of columns from each file I used for a device with a set of dates but I need a new column with the Max date only across the 4 columns.

 

Device Name           Sun's Date       Mars  Date       Earth Date       Venus Date         Max Date  

Test1                       2022-10-02       2022-10-03      2022-10-06      2022-10-01        2022-10-06 

Test2                       2022-10-02       2022-10-07      2022-10-06      2022-10-01        2022-10-07 

 

 

 

 

Thank you,

4 REPLIES 4
Felipe_Ribeir0
16 - Nebula

Hi @rmartinez4 

 

The simplest way is to use the max function in formula tool. Max( Sun's Date,       Mars  Date,       Earth Date,       Venus Date)  

 

Check the attached example

 

Felipe_Ribeir0_0-1665157385008.png

 

Felipe_Ribeir0_1-1665157397872.png

 

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @rmartinez4,

 

You would be best transposing the data to find the max value and joining it back on to the original data set.

 

JonathanSherman_0-1665157489014.png

 

 

I've attached an example for you to take a look into!

 

Kind regards,

Jonathan

Jonathan-Sherman
15 - Aurora
15 - Aurora

Transposing the data ensures all columns are tested, including if others are added in the future

binuacs
21 - Polaris

@rmartinez4 One way of doing this

 

binuacs_0-1665157597652.png

 

Polls
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!
Labels