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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.