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.
Is there any easier way to calculate weighted average compared to what I am doing right now? The current measure I am using returns the correct answer, but is probably the worst way to calculate it. Thanks for the help!
Count | UserCount |
78531859 | 0 |
815580 | 1 |
94599 | 2 |
16121 | 3 |
3859 | 4 |
1730 | 5 |
450 | 6 |
206 | 7 |
151 | 8 |
83 | 9 |
47 | 10 |
32 | 11 |
28 | 12 |
18 | 13 |
12 | 14 |
10 | 15 |
8 | 16 |
14 | 17 |
14 | 18 |
31 | 19 |
Solved! Go to Solution.
Thanks!
Try this:
Avg User per Family = DIVIDE(SUMX('Table','Table'[Count]*'Table'[UserCount]),sum('Table'[Count]))
Hope that helps,
Alex
Hi @Ski900,
Yeah, I'm pretty sure there's an easier way of doing it..
Would you be able to post a small sample of your data expected result? That'd make it easier to help
Thanks
Alex
Data added!
Thanks!
Try this:
Avg User per Family = DIVIDE(SUMX('Table','Table'[Count]*'Table'[UserCount]),sum('Table'[Count]))
Hope that helps,
Alex
Works perfectly. Thanks for the help 🙂
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 |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |