Alteryx Designer Desktop Discussions

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

How to pick latest date in the file when the standard date is not met

mhtomines
7 - Meteor

Hi Team,

 

Need your help, on my filter tool my current logic is:

 

For a normal run - Get Previous day or if it's Monday get last Friday data

 

if the normal date run is not me, alteryx should get the latest date on the file.

 

For example: I'm running the report current date August 1 and the date range of my file is date July 26 to 28, since it's not previous day or and run on a Tuesday, I want to get the latest date which is July 28 instead.

 

6 REPLIES 6
caltang
17 - Castor
17 - Castor

Can you give us some sample datasets and also your expected output? You are using two scenarios -> Normal run and the alternative is....? 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
binuacs
20 - Arcturus

@mhtomines In your use case use the summarise tool to take the max date and append using the Append Tool. Write the formula if dates are not meeting your normal criteria then use the MAX Date from the summarise tool

mhtomines
7 - Meteor

Hi @caltang 

 

Here is my sample data, I want to get the latest date with client details if normal run criteria is not met

 

account_noclient_namefirst_billing_date
111111A7/27/2023 0:00
222222B7/27/2023 0:00
333333C7/27/2023 0:00
444444D7/27/2023 0:00
555555e7/28/2023 0:00
666666f7/28/2023 0:00
777777g7/28/2023 0:00
888888h7/28/2023 0:00
999999i7/28/2023 0:00
1111110j7/28/2023 0:00
1222221k7/26/2023 0:00
1333332l7/31/2023 0:00
1444443m7/31/2023 0:00
binuacs
20 - Arcturus

@mhtomines What is the expected result based on your input file? 

mhtomines
7 - Meteor

@binuacs the expected for normal run - should output 7/31

 

but if ever it's not met and 7/28 is the latest data then it should output 7/28

binuacs
20 - Arcturus

@mhtomines Let me know if the attached workflow works for you

image.png

Labels