Alteryx Designer Desktop Discussions

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

calculate running total and Cross column calculation

Susovan
5 - Atom

Revised Gross Book Balance = When we are calculating Revised Gross Book Balance for the period 1 we are taking Gross Book Balance But When we are calculating Periods 2 onwards we are taking Revised Gross Book Balance + Principal Payment (initial)+PSA$

 

 Formula for : Principal Payment (initial)= PPMT - rev GBB * Effective Interest Rate

 

 Formula for (PPMT) used in Alteryx : PPMT = (([Revised Gross Book Balance]*[Effective Interest Rate])/(1-(POW(1+[Effective Interest Rate],(-1*[Remaining Periods])))) is depending upon Effective Interest Rate, Revised Gross Book Balance and Remaining Periods

 

Formula for : rev GBB * Effective Interest Rate =  Revised Gross Book Balance * Effective Interest Rate+PSA$

 

Formula for: PSA$= if (Revised Gross Book Balance= Principal Payment (initial),0, Revised Gross Book Balance*PSA%)

 

Things need to calculate in Alteryx 1. Revised Gross Book Balance 2. Principal Payment (initial) 3. PPMT 4. rev GBB * Effective Interest Rate. 5.PSA$ These five items are interdependent on each other.

 

 
Effective Interest RateGross Book BalanceRevised Gross Book BalancePeriodrev GBB * Effective Interest RateRemaining PeriodsPPMTPrincipal Payment (initial)PSA%PSA ($)
7.763260%                  1,458,45214584521113223.392713182130.32(68907)00
7.763260%                  1,458,45213895452107873.968812182130.32(74256)00
7.763260%                  1,458,45213152883102109.255311182130.32(80021)00
7.763260%                  1,458,4521235267495897.0121110182130.32(86233)00
7.763260%                  1,458,4521149034589202.496329182130.32(92928)00
7.763260%                  1,458,4521056106681988.267878182130.32(100142)00
7.763260%                  1,458,452955964774213.980127182130.32(107916)00
7.763260%                  1,458,452848048865836.154216182130.32(116294)00
7.763260%                  1,458,452731754956807.935895182130.32(125322)00
7.763260%                  1,458,4526064311047078.833534182130.32(135051)00
7.763260%                  1,458,4524713801136594.435673182130.32(145536)00
7.763260%                  1,458,4523258441225296.106752182130.32(156834)00
7.763260%                  1,458,4521690101313120.659191182130.32(169010)00

 

Please refer to the attached excel sheet that will help for better understanding.

 

Any help would be highly appreciated.

 

 

 

4 REPLIES 4
ChrisTX
15 - Aurora

It would be helpful if you provide a starting workflow, and identify any challenges you have,

 

With all of the details you provided, it seemed like there may be a circular reference in one or two formulas.  Do any of the formulas, besides one that you did mention, use a value from a previous row?

 

Suggest you start out with a simple Formula tool, if all of the values you need are on the same row.

 

For formulas that depend on values from other rows, try the Multi Row Formula tool.

 

Write out a step-by-step plan you would follow if you had to make the calculations manually.  Then use the right tools to replicate the manual process.

 

Chris

 

bmcclelland46
10 - Fireball

I think for this dataset, it would be better to avoid the multi-row formulas. This is a loan schedule and at any point in time, you have all the information you need in each row to solve the problem without any need to reference another row (an amortization schedule is not the only way to figure this out). I would only introduce multi-row formulas if you foresee your payments being inconsistent across the loan period.

DavidP
17 - Castor
17 - Castor

Hi @Susovan 

 

I've amended the solution I built for your earlier post to include PSA%. I've added documentation to describe my process.

 

It replicates the logic in the Excel example you provided, where the Row-1 values are used for Principal Payment Initial and PSA$ for rows other than the 1st row.

 

I don't know how to do this without using multi-row logic as @bmcclelland46 suggested, because everything then becomes circular. I'd love to understand how to do this but I guess that would need completely different logic for the loan schedule that I'm not clever enough to figure out.

 

Updated workflow attached.

 

DavidP_0-1597053138741.png

 

bmcclelland46
10 - Fireball

@DavidP  I'll admit it is still a little hazy for me at the moment - I have screenshot of common formulas for the financial mathematics Actuary exam that shows how to calculate the principal, interest, etc. balances in a given period for an annuity. Been maybe 7 years since I took this exam haha.

 

bmcclelland46_0-1597067819788.png

Taken from site: https://faculty.atu.edu/mfinan/actuarieshall/Formulas.pdf

Labels