Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Finding Start and End date

angel0v89
7 - Meteor

Hi all,

 

I have got a use case that I really need help! 

 

I have got the following dataset which is on a monthly basis, for example 1 row per company per month.

 

DateIdCompany NameValue
01-03-201912345Dan Ltd2000
01-04-201912345Dan Ltd5000
01-05-201912345Dan Ltd10000
01-01-201967886Alex Ltd5000
01-02-201967886Alex Ltd0

 

...and so on.

 

So the idea is to create a Start date and End Date for each client based on the value. When the first value>0 exist to capture the Date as a start date and when it goes to zero to be end date.

 

From the above case: 

 

Dan Ltd - Start Date - 01-03-2019

Dan Ltd - End Date - (empty, since it is still current client) 

 

Alex Ltd - Start Date - 01-01-2019

Alex Ltd - End Date - 01-02-2019 

 

Many thanks in advance

 

10 REPLIES 10
atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @angel0v89 

Cheers and have a nice day!

Labels
Top Solution Authors