Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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