Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Loan amortization calculation for several years

Aqureshi025
8 - Asteroid
Hi Experts,             
              
I am looking for the help to prepare a loan amortization. I have the data  in the following format        
NumberAmountNominal RateStart date of loanMaturity Date of loanDate Basis        
A        700,000,000220/04/201729/04/2020Actual/360        
B        500,000,000311/01/201811/01/2021Actual/365        
C          10,000,000631/05/201930/04/2020Actual/360        
D        450,000,000804/10/201930/09/2024Actual/360        
E            7,000,000227/04/202028/08/2023Actual/365        
              
I need to calculate the interest for each year. For e.g Loan A starting in 2017, so the column came in and shows me the result from 2017 then 2018 then 2019 and till 2020 until the maturity date. Means for the 2017 the interest will start from the date of loan start and for 2020 the interest will be until the maturity date. Same for all other loans. Looking something output like this    
    
    
NumberAmountNominal RateStart date of loanMaturity Date of loanDate BasisInterest for 2017Interest for 2018Interest for 2019Interest for 2020Interest for 2021Interest for 2022Interest for 2023Interest for 2024
A        700,000,000220/04/201729/04/2020Actual/360            9,916,667          14,194,444          14,194,444            4,666,6670000
B        500,000,000311/01/201811/01/2021Actual/3650          14,547,945          15,000,000          15,041,096                452,055000
C          10,000,000631/05/201930/04/2020Actual/36000      
D        450,000,000804/10/201930/09/2024Actual/360        
E            7,000,000227/04/202028/08/2023Actual/365        
              
Please suggest how to do it. I would prefer to do without any macros, just by using the standard tools        
              
Your support will be really appreciated           
              
Regards             
              
1 REPLY 1
Aguisande
15 - Aurora
15 - Aurora

Hi @Aqureshi025 

I think a Batch macro IS the way to go.

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Getting-Started-with-Batch-Macros/t...

 

Since you are trying to avoid macros, maybe filtering each year individually and then union all, may give you what you need.

Labels
Top Solution Authors