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
Solved! Go to Solution.
Alrright, I see what went wrong.
We need to divide the value by the number of survey IDs:
Weighted Rank =
DIVIDE(
SUM( 'Survey'[Rank Value] ),
CALCULATE(
COUNTROWS(
VALUES( Survey[_id] )
),
ALL( Survey[Value] )
)
)
Where "value" is actually the category (food, health, etc.).
Yes, it did!
Thanks a lot for the help 🙂
Assuming you have a column Survey[Rank Value] with the results 1,2,3,4,
Weighted Rank=
DIVIDE(SUM('Survey'[Rank Value]), COUNTROWS('Survey'))
See the sample table layout that I've assumed you have.
If it's a pivoted table (a column for each rank), unpivot it usinp the query editor.
Thank you for the suggestions. I already tried reshaping my original data.
Tried your formula as well, which is not working as well.
Original Data -
Reshaped Data-
Alrright, I see what went wrong.
We need to divide the value by the number of survey IDs:
Weighted Rank =
DIVIDE(
SUM( 'Survey'[Rank Value] ),
CALCULATE(
COUNTROWS(
VALUES( Survey[_id] )
),
ALL( Survey[Value] )
)
)
Where "value" is actually the category (food, health, etc.).
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 | |
| 13 | |
| 10 | |
| 8 |