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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
KevinGraham
Helper I
Helper I

Top N filter for a table - problems with summarizing filter

I have a list of transactions related to 5 different entities.  I have all of these in a table but want to limit the table to just the top 3 transactions.  When I use the Top N visual filter it sums the transactions by entity and then shows the top 3 entities' individual transactions.  I have tried filtering by entity and by amount (both with amount as the 'By  Value'), but to no avail.  Does anyone have any suggestions, either in using the visual filter or with DAX?  The data is below:

 

Sales by Entity Visual Filter w/ Top N
EntityAmount FundAmount
D         93,227 D           93,227
B         90,273 B           90,273
D         79,681 D           79,681
C         78,648 C           78,648
D         75,941 D           75,941
B         74,074 B           74,074
E         68,959 B           49,247
E         61,133 C             3,462
B         49,247 C             2,477
A         31,428   
A         17,149   
A         16,989   
E           8,541   
C           3,462   
C           2,477   
1 ACCEPTED SOLUTION

I just stumbled on the solution as I worked through your suggestion.  In hindsight it's pretty obvious!  After selecting the Top N filter and the number of items to filter I just selected Maximum.  And lo and behold it gave me the information I needed.  Thanks for your help anyway, I appreciate the inspiration.

View solution in original post

3 REPLIES 3
AndreasHermle
Regular Visitor

Hi Kevin, I came across your solution to this problem and it worked just fine after selecting the MAX summarization. I got no idea why this works, but it did. Thank you for bringing this to my attention.

Greg_Deckler
Community Champion
Community Champion

I have found this to be a bit wonky to get configured. First, make sure your Amount is a numeric data type and not text. Next, put it in a table visualization along with Entity column. Make sure to select "Do not summarize". Now, configure your Top N filter and make sure it is configured for SUM of Amount. Now, go back to your Values area and switch from Do not summarize to SUM. 

 

See if that works for you.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I just stumbled on the solution as I worked through your suggestion.  In hindsight it's pretty obvious!  After selecting the Top N filter and the number of items to filter I just selected Maximum.  And lo and behold it gave me the information I needed.  Thanks for your help anyway, I appreciate the inspiration.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.