Alteryx Designer Desktop Discussions

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

Categorizing Maturity Dates in Various Buckets (3 Types of Categories)

asalgadoponce
5 - Atom

Hi Alteryx experts,

 

I am struggling on a report that needs to categorize loans in various maturity buckets. I can't figure out a formula that that will categorize the loan in either Week 1 - Week 4, Month 2 - 12 and Over 1 Year. Below is an example of various hypothetical loans with different maturity dates. The desired result is in the 3rd column "Maturity Bucket". The reporting date in the example below is September 30, 2023. 

 

LoanMaturity DateMaturity Bucket
110/1/2023Week 1
210/8/2023Week 2
310/15/2023Week 3
410/22/2023Week 4
510/31/2023Week 4
611/6/2023Month 2
712/9/2023Month 3
81/16/2024Month 4
92/19/2024Month 5
103/21/2024Month 6
114/30/2024Month 7
125/1/2024Month 8
136/11/2024Month 9
147/19/2024Month 10
158/24/2024Month 11
169/30/2024Month 12
1710/01/2024Over 1 year

 

Thank you in advance!

3 REPLIES 3
gawa
15 - Aurora
15 - Aurora

hi @asalgadoponce 

 

Though I couldn't figure out of the rule you applied to calculate "Maturity Bucket", key is to calculate difference of date.

Please refer to attached workflow how to convert to date format, and to calculate difference. 

 

geraldo
13 - Pulsar

@asalgadoponce 

 

Below is an example workflow.
only the 10/31/2023 day does not correspond to the week

 

CATEG.JPG

asalgadoponce
5 - Atom

Thanks @geraldo ! Your workflow did the hard part. I think I can figure out a way to group the last of the month in Week 4. I really appreciate it.

Labels