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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
th340385
Helper I
Helper I

Weighted Average Interest Rate (by Seller) DAX Formula

Hello,

 

I am trying to figure out the DAX formula (or best approach) to calculate the weighted average interest rate by loan seller with the ability to add a slicer / filter on vintage. Please let me know if you need any additional details. 

 

weighted avg example.PNG

 

Thank you!

 

 

1 ACCEPTED SOLUTION
smpa01
Community Champion
Community Champion

@th340385used a matrix viz and all my calculations are measures and not calculated column.


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
========================

View solution in original post

6 REPLIES 6
smpa01
Community Champion
Community Champion

@th340385I did it in this way. Hopefully this is what you are looking for.

 

Total Balance = SUMX('Table (2)','Table (2)'[Balance])
BalancexRate = SUMX('Table (2)','Table (2)'[Balance]*'Table (2)'[Rate])
WEGH_Avg_INT% = [BalancexRate]/[Total Balance]

xt.PNG

xt.PNG

 


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
========================

@smpa01 Thank you for the reply. The formulas provide for each column make sense; however, how did you initially summarize the data by the Loan Seller Column?

@smpa01 Actually, I believe you used a matrix visualization, correct?

smpa01
Community Champion
Community Champion

@th340385used a matrix viz and all my calculations are measures and not calculated column.


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
========================
amitchandak
Super User
Super User

If it is dependent on Loan Bal. Approach could be

Col = Loan Bal * Int. rate 

Weighted Avg = Sum(Col)/Sum(Loan bal)

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for this! This was the first simplistic option I had come across and it worked perfectly

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.