Alteryx Designer Desktop Discussions

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

Calculating next date

xman1968
6 - Meteoroid

Hello,

 

I have a requirement based on the following data;

for each unit, I need to set the Next_date field as the next consecutive start_date less one day. For example, the next date for line 1 should be 19-Jan-2020, line 2 should be 14-Feb-2020. And since there are no further lines for unit 1 on line 3, the next date should be today. Is there a way to do this in Alteryx?

 

thanks,

 

 

LineUnitCustomerStart_dateEnd_dateNext_dateWhat next date should be       
11A01-Jan-2015-Jan   20 19-Jan-20
21B20-Jan-2031-Jan-20 14-Feb-20
31C15-Feb-2031-Mar-20 27-Apr-20
42D01-Jan-2028-Feb-20 14-Mar-20
52E15-Mar-2020-Mar-20 20-Mar-20
62F21-Mar-2031-Mar-20 27-Apr-20

 

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @xman1968 I mocked up a workflow let me know what you think?

 

Dates_270420.JPG

xman1968
6 - Meteoroid

Thank you Joseph,

this worked perfectly for my requirements.

 

Regards

 

Labels