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.
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.).
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 |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |