Forum Discussion
Anonymous
7 years agoNot applicable
Weighted Distribution calculation
Hello, Could you please help me to calculate weighted distribution using DAX? I have the following table: Client Products Sales 100042 product1 24 100070 product2 20 100070...
affan
7 years agoSolution Sage
Hi Anonymous,
You can used the below dax measure.
WeightedAvg = var _total=CALCULATE(SUM(Table1[Sales]),ALL(Table1))
var _prodsum=CALCULATE(SUM(Table1[Sales]))
Return
_prodsum/_total
You can find the pbix file here.
If this helped you, please mark this post as an accepted solution and like to give KUDOS .
Regards,
Affan