Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Rcp_17
Contributor
Contributor

How to calculate Weighted Average

I tried to use formulas from other discussions, but it seems they are not working for my date set below.

Loan codeInterest MarginBalance Name
1232.5(3,559,850)AAA
12342.25(12,750,000)AAA
123452(22,875,000)AAA
1234562(15,050,000)AAA

 

Thanks for your help!

Labels (1)
3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

it's not clear what exactly you look for 

weighted average of what ?

Rcp_17
Contributor
Contributor
Author

Say for example, for the Loan number 123, its weighted average should be calculated like:

3,559,850/(3,559,850+12,750,000+22,875,000+15,050,000) * 2.5%

For AAA company, their weighted average is the sum of all the loan's weighted average.

 

Brett_Bleess
Former Employee
Former Employee

Check the following Design Blog post, hopefully that may be of some help:

https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.