cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pandra801 Frequent Visitor
Frequent Visitor

Newbie question about the Top N filter

Hi all,

 

Very new to this but catching on quickly. What a great product.

So, if I ask a simple question:

 

I have a table visual in a report that lists 200+ rows of basic sales data: Company, Product, Revenue. I want to only show the top 10 rows that have the highest Revenue values. Problem is, the Top N filter is not available in the Revenue filter dialog. I see it in other fields though.

 

Why is that, and how would I accomplish this simple task?

 

thanks in advance!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Newbie question about the Top N filter

@Pandra801 What you want is to use either Company or Product and set the TOP N on one of those filters. Then the Revenue goes in the "By Value" field.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: Newbie question about the Top N filter

@Pandra801 What you want is to use either Company or Product and set the TOP N on one of those filters. Then the Revenue goes in the "By Value" field.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

Community Support
Community Support

Re: Newbie question about the Top N filter

Hi @Pandra801,

 

As Eno1978 said, you should ensure the "Revenue" column is a value field, if it doesn't a value field you should change its type or use math function(such as count) to convert it.

Capture2.PNG

 

In addition, you can also try to use dax top n function.

 

Table = TOPN(10,Sheet1,[Revenue],DESC)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI
Pandra801 Frequent Visitor
Frequent Visitor

Re: Newbie question about the Top N filter

Eno1978 - thank you for the reply. Makes perfect sense.

Pandra801 Frequent Visitor
Frequent Visitor

Re: Newbie question about the Top N filter

v-shex-msft: Thanks for the tip, now that I think about it this likely has to be done as well. In any case, thanks for the reply - much appreciated!

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors