Forum Discussion
russm
10 years agoHelper I
Calculating modes
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
- Anonymous10 years ago
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] )
Anonymous
10 years agoNot applicable
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]
)russm
10 years agoHelper I
Perfect!
Thank you!