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

Weight Avg FICO by Product

I'm trying to create a straight table chart that shows the weight average FICO for each Product by Outstanding Balance. This calculation

sum(TOTAL <PRODUCT> [FICO] * aggr(sum(OUTSTANDING_BALANCE),[FICO],PRODUCT))/sum(TOTAL aggr(sum(OUTSTANDING_BALANCE),[FICO]))

seems to give an overall total correctly, however, the FICO's I'm getting are 3, 432, and 299 which add up to 734. I'm looking to have the WA FICO on each row (e.g. (I'm making these up...) Product A, WA FICO 732; Product B, WA FICO, 735; Product C, WA FICO 734)

 

ProductOutstanding BalanceWA FICO (what I'm getting)WA FICO (what I want)
A$7,0003732
B$1,000,000432735
C$670,000299734
Total$1,677,000734734
Labels (2)
1 Solution

Accepted Solutions
lbunnell
Creator
Creator
Author

This seems to do the trick. Let me know if I'm wrong.

=sum(TOTAL <PRODUCT> [FICO]*aggr(sum( [OUTSTANDING_BALANCE]),[FICO]))/sum(total <PRODUCT> aggr(sum( [OUTSTANDING_BALANCE]),[FICO]))

 

View solution in original post

1 Reply
lbunnell
Creator
Creator
Author

This seems to do the trick. Let me know if I'm wrong.

=sum(TOTAL <PRODUCT> [FICO]*aggr(sum( [OUTSTANDING_BALANCE]),[FICO]))/sum(total <PRODUCT> aggr(sum( [OUTSTANDING_BALANCE]),[FICO]))