Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Your file has been submitted successfully. We’re processing it now - please check back in a few minutes to view your report.
02-15-2018 12:36 PM - last edited 06-27-2018 13:38 PM
Imagine you have a table of data with multiple columns like this...
Column
| A |
| B |
| C |
| A |
| B |
| C |
| A |
| A |
| A |
| B |
| B |
| C |
...and you wish to figure out what value occurs most often in that column. You can use a measure like this:
Mode = VAR myTable = SUMMARIZE(Table,Table[Column],"Count",COUNT(Table[Column])) VAR myTable2 = FILTER(myTable,[Count]=MAXX(myTable,[Count])) VAR Mode1 = MAXX(LASTNONBLANK(myTable2,[Column]),[Column]) RETURN Mode1
This quick measure would take as input a column in which to calculate the mode.
eyJrIjoiOWM1ZDE0MzQtZTliNC00NGMyLTg5MmYtZWFjZTg4MTM2N2IzIiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9