Alteryx Designer Desktop Discussions

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

Alteryx loop

mark_paul
8 - Asteroid

Hi,

 

How to achieve MTH column based on the TERM in Alteryx?

 

from

IDTERM
10010
1011
1020
1039

 

to

IDTERMMTH
100100
100101
100102
100103
100104
100105
100106
100107
100108
100109
10110
10200
10390
10391
10392
10393
10394
10395
10396
10397
10398

 

 

Thanks,

Mark

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @mark_paul I mocked up a workflow that produces your output let me know what you think?

 

Loop_08012020.PNG

mark_paul
8 - Asteroid

Hi Joseph,

 

How to achieve below loop in Alreyx?

 

From:

IDTERMDTINT_RT
1001011/1/20193.5
101112/1/20194
102011/1/20192.25
103910/1/20191.75

 

DT_NEW=DT increment by 1 month

DAYS=Number of days in that month

FACTOR=1 for first month, then Previous month Factor - INT_PAY

INT_PAY=0  for First Month, then (INT_RT *DAYS)/360 * Previous_Factor

 

To:

IDTERMMTHDT_NEWDAYSINT_RTFACTORINT_PAY
10010011/1/2019303.510
10010112/1/2019313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001021/1/2020313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001032/1/2020293.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001043/1/2010313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001054/1/2020303.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001065/1/2020313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001076/1/2020303.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001087/1/2020313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1001098/1/2020313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1011012/1/201931410
1020011/1/2019302.2510
1039010/1/2019311.7510
1039111/1/2019301.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1039212/1/2019311.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
103931/1/2020311.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
103942/1/2020291.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
103953/1/2010311.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
103964/1/2020301.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
103975/1/2020311.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
103986/1/2020301.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor

 

 

 

Final Record:

IDTERMMTHDT_NEWDAYSINT_RTFACTORINT_PAY
1001098/1/2020313.5(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor
1011012/1/201931410
1020011/1/2019302.2510
103986/1/2020301.75(Previous_Factor-INT_PAY)(INT_RT *DAYS)/360 * Previous_Factor

 

Thanks for your help

 

Thanks,

Mark

Labels