March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.).
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
29 | |
12 | |
11 |