Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Thank you!
Solved! Go to Solution.
@th340385used a matrix viz and all my calculations are measures and not calculated column.
@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]
@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?
@th340385used a matrix viz and all my calculations are measures and not calculated column.
If it is dependent on Loan Bal. Approach could be
Col = Loan Bal * Int. rate Weighted Avg = Sum(Col)/Sum(Loan bal)
Thanks for this! This was the first simplistic option I had come across and it worked perfectly
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |