Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have this data:
I am trying to get a weighted average, per LL.
That shall be the sum of: TotalPerCustomer * MDMCustomer / Total.
(The code for MDMCustomer is [TotalPerCustomer]/[MaxCustomer])
So for L1 it shall be: (50*1 + 35*1,4) /85 //(Whenever I try to do it, I get 35*1,4 twice)
And for L2 it shall be: (35*1,75) / 35
How can I achieve it?
@Anonymous
You can create the following measure to calculate the weighted average:
M =
var __t =
CALCULATETABLE( SUMMARIZE(Table3,Table3[LL],Table3[CUST], "Total", MAX(Table3[Total Per Customer]),"MDS", MAX(Table3[MDS Customer])), ALLEXCEPT(Table3,Table3[LL] ))
var __Total = SUMX( __t , [Total] )
var __line = SUMX( __t , [Total] * [MDS] )
return
DIVIDE( __line , __Total )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |