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

October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more

Reply
Anonymous
Not applicable

TOPN

Hi All,

 

I'm very new to PowerBI, so not sure if this is even the location I need to post to.  I'm having difficulty working with topN.  I have to use topN for one of my charts but need it to associate with all slicers and drilldowns chosen on the dashboard.  Can someone provide any ideas on how to get this to work. 

 

Example, I have 5 charts and 4 slicers on my dashboard.  One chart is supposed to be a treemap showing the top 5 ID's contributing to whatever is drilled down from one of the other 3 graphs AND whatever slicer value chosen.  Is there a way to do this?  OR if this was already answered, can someone point me to it?

 

Thanks!

TP

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You can use a visual level TOPN filter or create a TOPN measure

 

example

calculate([Net Sales PY], TOPN(2, allselected('Address'[Country ISO]), [Net Sales PY],desc), values('Address'[Country ISO]))

 

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

 

Others

 

Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f

Power BI- Power BI- TOPN with Others- https://youtu.be/I_TY4hVlzAE

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

October NL Carousel

Fabric Community Update - October 2024

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