Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Newbie needs help!

ad23
5 - Atom

Hi All,

 

I have the below table and for each employee I want to add a row for every month he has worked (from the hire date). For attired employee this should stop the month before the employee is attired.  I have done the first piece of workflow (attached) but struggling to add the if condition in the loop for attired employees - not sure where and how. Any help will be highly appreciated. Thanks!

 

Emp IDEmp NameHire DateAttr Date
1AB12/10/2018 
2CD1/1/20191/1/2020
3EF5/10/2021 
4GH3/17/20192/2/2022
5IJ9/12/2020 
5 REPLIES 5
AngelosPachis
16 - Nebula

Hi @ad23 ,

 

You were close, you should first convert your date fields to a date format and then come up with an if statement subject to whether the attr date field is populated or not

AngelosPachis_0-1644521056283.png

Hope that helps,

Angelos

 

ad23
5 - Atom

Thanks a lot!

atcodedog05
22 - Nova
22 - Nova

Hi @ad23 

 

My take on this. Generate an endate column like this and generate rows till the end in the same way

 

atcodedog05_0-1644521498215.png

 

Hope this helps : )

 

 

 

ad23
5 - Atom

Absolutely. Thanks much!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @ad23 

Cheers and have a nice day!

Labels
Top Solution Authors