Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
ok so I have a matrix that looks like this in powerBI (CATEGORY and CUSTOMER NUMBER are my rows)
When i try to filter my customer with top 5 by Total A + B, PowerBI give me 5 customer in one category, 2 in another, etc?
I want my top 5 customers grouped by category if it makes sense
Hi @PBI_quest ,
Here's a simple test to see if this is the result you expect.
1 = Rankx('Table','Table'[Value],,DESC,Skip)
If the problem is still not resolved, can you provide screenshots of the test data and the expected results for my further testing? Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, first of all, thanks for the help!!
I just want to have for each type of mineral the total spent and limit it to the top 5 consumers (order by desc)
For info the total is a measure and not a column.
When i try your method it returns 1 for every rank.
Rankx(Allselected(Table[Category], Table[Customer]), [Measure],,desc,dense)
For the above measure filter rank <=5
I don't understand what i'm supposed to write for measure filter rank <= 5?
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 37 | |
| 29 | |
| 24 |