Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

TOP N filter or DAX measure?

Hello, everybody!

 

I have the following question, what is the best performance level for a TOP N?

Do you prefer to use filters at display level or create a measure in DAX that performs TOP n ?
What is the difference between these two ?

 

Thanks!

Regards!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

Usually you use the filter TopN in report visuals.The TOPN dax is a table expression used to create a table returns the top N rows of the specified table.

 

Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

5 REPLIES 5
pceglie
Resolver I
Resolver I

I @Anonymous , it depends 🙂

If you are looking for a simple topn filter you can set it on the visual, but if you're looking for something more advanced take a look here:

https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/

 

Hope it will help you.

P.

Anonymous
Not applicable

Hi @pceglie 

What is the difference between doing it the way of filters or with a dax measure?

That's what I'm trying to understand.

amitchandak
Super User
Super User

@Anonymous 

I think if you put a visual filter that would be better.

 

Not sure what excately looking for.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak  !!

I'm trying to understand the difference between the top N with the filter or using the dax measures.

Anonymous
Not applicable

@Anonymous 

Usually you use the filter TopN in report visuals.The TOPN dax is a table expression used to create a table returns the top N rows of the specified table.

 

Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.