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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ram142more
Regular Visitor

Top N filter on Sankey Chart

Dear Members,

I have top N slicer in visual and need to apply same top N filter on "Sankey Chart" but it is not working for Sankey chart correctly.
Can, anyone will suggest me how we can manage to show only top categories in Sankey chart!! @all

 

2 REPLIES 2
rubayatyasmin
Super User
Super User

Hi, @ram142more 

 

use RANKX. 

for example.

Rank Measure = RANKX(ALL('CategoryTable'), [AggregatedValue], , DESC)

 

Add the rank measure to the "Filters" section of the Sankey chart visual, and set the filter condition to show only the top N ranks. For example, if you want to show the top 10 categories, set the filter condition to "Rank Measure <= 10".

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Thanks @rubayatyasmin  for the quick solution.
However, i am looking for dynamic solution like user can enter the number in slicer and accordingly it will show in Sankey Chart.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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