Alteryx Designer Desktop Discussions

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

Mapping of column and date treatment

Jwwwson
8 - Asteroid

Hi, 

 

I have the following data set and I would like to process them to become the desired results. It includes two steps, first is to match the original staff with the transfer list and indicates a change of staff. Second is to determine the date of transfer and allocate the hours in the corresponding months in accordance to the new list. 

 

I have encountered an issue, since the date column will change every month when I have a new data source, I need to change the formula in the tools of workflow. I would like to design a workflow that I can use without changing it every month. I once thought of using dynamic rename to change the name of the date column to ' 1st month', '2nd month' etc. However, in that case I cannot match with the transfer date. 

 

Kindly advise if you have any idea how to deal with the date issue. Thanks!

 

Cheers,

Jason

 

 

Source data 1:

 NameJob referencePrevious staff31-Jul-2031-Aug-2030-Sep-2031-Oct-2030 November 202031-Dec-2031-Jan-2128-Feb-2131-Mar-21
1AlexA001 101010101010101010
2PhilipA002 202020202020202020
3AlbertA003 303030303030303030

 

Source data 2 (transfer list and date):

 Original staffReplacementJob reference Transfer date
1AlexPeterA00131-Jul-20
2PhilipMary A00231-Jan-21
3AlbertLilyA00330-Sep-20

 

 

Desired Output:

 

 NameJob referencePrevious staff31-Jul-2031-Aug-2030-Sep-2031-Oct-2030 November 202031-Dec-2031-Jan-2128-Feb-2131-Mar-21REMARKS
1PeterA001Alex01010101010101010 
2Mary A002Philip202020202020202020 
3LilyA003Albert303030303030303030 
4AlexA001 1000000000Transferred
5PhilipA002 2020202020202000Transferred
6AlbertA003 303030000000Transferred

 

 

Thanks & regards, 
Jason

 

 

3 REPLIES 3
Per
11 - Bolide

Hi,

 

If you use the Transpose tool on Source data 1, you can get all the existing and new dates in one single date field like below. I believe that will solve the issue? Important to keep the Dynamic or Unknown Columns checked for new dates coming in

 

Per_1-1598259735816.png

 

Hope that helps!

 

 

Jwwwson
8 - Asteroid

Hi @Per

 

Thanks for your reply!

 

I am afraid that I was making my issue clear. Attached please find my workflow. 

 

I did not achieve what I expected, i.e. included the previous staff name it the previous staff column, and allocation of hours according to the transfer date. 

 

Kindly advise what amendment shall I take. Thanks!

 

Cheers, 

Jason

Per
11 - Bolide

Hi @Jwwwson 

 

No, sorry for ME not being clear 🙂🙂

 

I understood your issue just fine, but I only answered part of the question, namely how you could re-structure the data to create a solution.

 

But now I believe I have the entire solution. Your dummy data did not match the original data completely and you might need to rename as appropriate, but please see if this works for you

Per_0-1598293825722.png

 

Labels