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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tutuk28
Helper IV
Helper IV

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

@tutuk28 

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

@tutuk28 , 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.

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

@tutuk28 

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

 

Not sure what excately looking for.

 

Hi @amitchandak  !!

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

@tutuk28 

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.