Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I cannot find a MODE function in DAX. I need to use it in conjunction with SUMMARISE
Solved! Go to Solution.
@Anonymous , refer if old solution can help
https://community.powerbi.com/t5/Desktop/Calculating-modes/m-p/46313
Hi @Anonymous ,
This is the data I created. I define the rules to calculate the most frequent string of name:
I learned that the mode expression is the most frequently displayed value, and you can use this method instead:
1. Create Calculated column.
Column =
VAR summary =
SUMMARIZE (
'Table',
'Table'[name],
"Count",COUNTX(FILTER('Table','Table'[name]=EARLIER('Table'[name])),'Table'[name])
)
VAR _max =
MAXX ( summary, [Count])
RETURN
MAXX ( FILTER ( summary, [Count] = _max ), [name] )2. Result:
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
This is the data I created. I define the rules to calculate the most frequent string of name:
I learned that the mode expression is the most frequently displayed value, and you can use this method instead:
1. Create Calculated column.
Column =
VAR summary =
SUMMARIZE (
'Table',
'Table'[name],
"Count",COUNTX(FILTER('Table','Table'[name]=EARLIER('Table'[name])),'Table'[name])
)
VAR _max =
MAXX ( summary, [Count])
RETURN
MAXX ( FILTER ( summary, [Count] = _max ), [name] )2. Result:
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. I can see this works.
I still think Power BI would be better if it had the following aggregate functions:
1) MODE (as in this problem)
2) Concatenate all unique strings, sorted. This is often useful to aggregate text strings
@Anonymous , refer if old solution can help
https://community.powerbi.com/t5/Desktop/Calculating-modes/m-p/46313
Thank you. I did get this working.
Though I still think that MODE should be offered as a standard aggregate function
Thank you. I saw that in my research but can't work out how to use the formula. Does it define a MODE function? Or somehow add a column?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |