What is the best way to calculate the mode (central tendency measure) from an unpivoted column of numerical data (e.g., Likert response values) in Power BI?
Thanks,
Russ
Solved! Go to Solution.
@russm perhaps the solution offered on this article.
Mode := MINX ( TOPN ( 1, ADDCOLUMNS ( VALUES ( Data[Value] ), "Frequency", CALCULATE ( COUNT ( Data[Value] ) ) ), [Frequency], 0 ), Data[Value] )
Proud to be a Super User!
@russm perhaps the solution offered on this article.
Mode := MINX ( TOPN ( 1, ADDCOLUMNS ( VALUES ( Data[Value] ), "Frequency", CALCULATE ( COUNT ( Data[Value] ) ) ), [Frequency], 0 ), Data[Value] )
Proud to be a Super User!
It worked
Thank you very much
Perfect!
Thank you!
User | Count |
---|---|
218 | |
75 | |
70 | |
69 | |
53 |
User | Count |
---|---|
188 | |
93 | |
77 | |
77 | |
67 |