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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Johan-MTM
Helper III
Helper III

Show top 10 results

Hi,

 

I would like to show only the top 10 results but I can't figure out how, any help would be much appriciated!

 

JohanMTM_0-1665043562851.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Johan-MTM , You can use TOPN in visual level filter, or can create TOPN measure

 

 

example

TOP2 Brand = CALCULATE([Net], TOPN(2,ALLSELECTED('Item'[Brand]), [Net],DESC), values('Item'[Brand]))


TOP2 Category = CALCULATE([Net], TOPN(2,ALLSELECTED('Item'[Category]), [Net],DESC), values('Item'[Category]))

 

on 2 columns


2 column top N = CALCULATE([Net], TOPN(10, SUMMARIZE(ALLSELECTED('Item'), 'Item'[Brand], 'Item'[Category]), [Net],DESC),VALUES('Item'[Brand]), VALUES('Item'[Category]) )

 

 

refer TOPN: https://youtu.be/QIVEFp-QiOk 

View solution in original post

2 REPLIES 2
Johan-MTM
Helper III
Helper III

Thank you @amitchandak! I wassn't able to find the Top N filter option untill i watched the video you linked to. 

amitchandak
Super User
Super User

@Johan-MTM , You can use TOPN in visual level filter, or can create TOPN measure

 

 

example

TOP2 Brand = CALCULATE([Net], TOPN(2,ALLSELECTED('Item'[Brand]), [Net],DESC), values('Item'[Brand]))


TOP2 Category = CALCULATE([Net], TOPN(2,ALLSELECTED('Item'[Category]), [Net],DESC), values('Item'[Category]))

 

on 2 columns


2 column top N = CALCULATE([Net], TOPN(10, SUMMARIZE(ALLSELECTED('Item'), 'Item'[Brand], 'Item'[Category]), [Net],DESC),VALUES('Item'[Brand]), VALUES('Item'[Category]) )

 

 

refer TOPN: https://youtu.be/QIVEFp-QiOk 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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