Forum Discussion
Measure that filters by 10 highest values
- 9 years ago
You might need to post an example of the data so that we can understand exactly what you are looking for. But I think you're looking to rank members of a table by a measure. For example, you're looking to get the top 10 sales reps by total sales? Is that correct?
If so, the easiest way to do this would be to make your table visual in Power BI then look at the "filters" area on the right. Under "Visual Level Filters" there should be the attribute you have in the rows of your table. Hover over this attribute and hit the minus sign. This will display the filter options. From the drop down list, select "Top N" and then under that select the number of items you want to show and the value you want to filter on, usually the same value you are showing in your table.
Thanks a lot! I have never noticed the Top N before, but it does what I need. Sorry for the inconvenience.
No worries. It's actually a fairly new feature. You can accomplish the same thing with dax, but it takes two measures and is definitely not as straightforward.