This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi I want to know how to use the topN function. Currently I am having a count row measure and I only want to display the top 10 results of my group how do I do it?
Solved! Go to Solution.
Hi Weilip,
According to your description, you need to get the top 10 count for your group, right?
I have tested it on my local environment, the steps below are for you reference.
Regards,
Charlie Liao
Hi Weilip,
According to your description, you need to get the top 10 count for your group, right?
I have tested it on my local environment, the steps below are for you reference.
Regards,
Charlie Liao
TOP10 = TOPN(10,SUMMARIZE(Original,Original[GroupName]),[Measure])
Can the value ' 10' be dynamically selected? ---topn[topnvalue]
If I try to replace it with [SelectedTopNNumber] where [SelectedTopNNumber]=value(topn[topnvalue]) , it throws me the below error,
MdxScript(Model) (17, 35) A table of multiple values was supplied where a single value was expected
Hi weilip,
Do you want to show Top N Group by Count of Row measures Right ?
If yes please follow the below steps it will help u ...
1. Create new measure
Measure Count = count("Count row of Measures")
2. Create Rank Function
Rank = RankX(Allselected("Group"),Measure Count,,Asc,Dense)
3. Drag the rank field in Visual filter and choose what ever Top value u want.
let me know the feedback
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 32 | |
| 25 | |
| 23 |