Alteryx Designer Desktop Discussions

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

Generate date columns

hcao
6 - Meteoroid

how can i transform this:

PersonRole start dateRole end dateEffective dateEffective end datePay
12014-12-012021-01-292017-07-01

2020-06-30

30

12014-12-012021-01-292020-07-012021-01-0131
12014-12-012021-01-292021-01-022021-01-0732

 

into this:

PersonStartEndPay
12014-12-012020-06-30

30

12020-07-012021-01-0131
12021-01-022021-01-2932

 

the [Start] will always be [Role start date], and the [End] will always be [Role end date] but I want to incorporate the effective dates in as well.

3 REPLIES 3
Yoshiro_Fujimori
15 - Aurora

Hi @hcao ,

 

Is this what you mean?

If you have multiple [Person], you may want to use Multi-Row Formula tool instead of Record ID tool.

 

Workflow

1284892_Workflow.png

Formula Tool

Start = IF [RecordID] = 1 THEN [Role start date] ELSE [Effective date] ENDIF

End = IF [RecordID] = [Count] THEN [Role end date] ELSE [Effective end date] ENDIF

hcao
6 - Meteoroid

Thank you, yes that works perfectly. Just want to ask how would you use the multi-row formula? I do have multiple [Person]

Yoshiro_Fujimori
15 - Aurora

Hi @hcao ,

 

In case you have multiple [Person], you need to give the record ID for each [Person], and count the rows for each [Person].

So the workflow needs to be updated as below;

(Please check the configuration of Multi-Row Formula, Summarize, Join tools)

 

Workflow

1284892_Workflow2.png

Labels