Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
GhazanfarAli
Contributor

Loan Amortization Schedule

Hi all!

I have recently started working on Qlikview so have less knowledge about it. The task I am trying to achieve is calculate the Loan Amortization Schedule using the while loop but could able to do that.

I have following input table(qvd) 

GhazanfarAli_0-1642781485807.png

 

I want Loan Amortization Schedule to be calculate in qvs using the Qvd I have up pasted meaning I want separate table for the Payment plan based on this inputs.

 

the desired result show be like that, this picture is random loan calculation 

GhazanfarAli_4-1642782137528.png

 

will greatfull if somebody can help. 

 

 

 

 

 

 

 

 

 

7 Replies
chrismarlow
Specialist II

Hi,

Did you see this;

Loan Amortisation - Qlik Community - 1482957

Cheers,

Chris.

GhazanfarAli
Contributor
Author

Hi Chris!

 

Thanks Buddy for the quick replay!

 what I am after is to create the payment plan in qvs instead creating Set Expression formulas. By the way I have see the link already but it does not help much unless giving idea how calculations working.

 

 as I said I have been struggling with while loop to create line by line future payment plan. 

I would be grateful if you can help me with creating payment plan using scripts in Load statement. 

 

 

/Ghazanfar

chrismarlow
Specialist II

Hi,

This might be a start, for each loan you could use something similar to below, which is a script equivalent of your second screenshot, it would need some work to loop through your loans though & attach dates ... your input table looks like it has loans with mid-month end dates, so not sure if you need something more sophisticated though.

Cheers,

Chris.

let rate=0.049/12;
let nper=20;
let pv=5000;

payments:
Load
	[Payment Amount]-[Interest Portion] As [Principal Portion],
	*;
Load
	If(ID=1,
		$(pv),
		peek('Ending Balance')
		) as [Beginning Balance],
	If(ID=1,
		($(pv)*(1+$(rate)))-[Payment Amount],
		peek('Ending Balance')*(1+$(rate))-[Payment Amount]
		) as [Ending Balance],
	If(ID=1,
		$(pv)*$(rate),
		peek('Ending Balance')*$(rate)
		) as [Interest Portion],
	*;	
Load
	RecNo() as ID,
	fabs(num(Pmt($(rate), $(nper), $(pv)))) as [Payment Amount]
AutoGenerate ($(nper));

 

AlexJoe
Contributor

Yes, I'm familiar with that kind of graph. To make things easier, you can use programs that automatically calculate everything for you. All you have to do is enter the necessary numbers and watch the result. You will also be able to convert the graphs as needed. I think it's pretty handy, so you should try it. But it is worth consulting an expert for those who are still new to the subject. Personally, it was vital for me to address a few critical documentary issues, and Mortgage Broker Coventry helped me with that. Maybe you will find it helpful too. You can also ask any questions you may have.

RandallChristopher
Contributor

The best you can do is to find an automatized program that will do the math for you. It will make things much easier. But even though online tools are helpful, when it comes to loans I prefer to seek professional advice. So just to make sure you won't make it wrong, I suggest consulting an expert. Find a company with good reviews, such as Mortgage Advisor Derby, and address your critical documentary issues. I hope my advice will be helpful, and you'll manage to fulfill the task and convert your graph.

Radagask
Contributor

You can look on the Internet for ready-made codes that will automatically display the amount of payments. Many banks offer a calculation function, you enter the amount and term of repayment and the site automatically calculates the monthly payment. The code is in the public domain. But sometimes the data on the site can be inaccurate. When I took out a mortgage to buy a house, the site said my monthly payment would be $1,500. These Mortgage Advisor Leicester guys helped me get the same amount for the same term and my monthly payment was only $1,350.

ChadGregory
Contributor

Start with the principal amount, interest rate, and loan term. Then, use the loop to calculate each installment, reducing the principal each time. As for your input table (qvd), make sure it contains all the necessary data like principal, interest rate, and loan term. If you're still having trouble, don't hesitate to ask for help on Qlikview forums or communities. Folks there can often provide code snippets and guidance to get you on the right track. And if you ever need financial advice, I usually consult with Mortgage Broker Chelmsford. They're pros when it comes to money matters.