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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

only choose the top 15% clients in slicer

I have a slicer with the names from our clients, but I only want to show the top 15% of our clients in the slicer.

The top 15% clients are the clients with the maximum turnover summarized over the last 4 years (2014 - 2015 -2016 -2017)

 

I have a table "alle afleveringen" with columns:

- name client

- turnover by invoice

- invoicenumber

- year

- month

 

 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Currenly, we only have build-in "TOP N" filter, it doesn't have "TOP N percentage" filter. 

 

For your requirement, you need to create a RANK measure for all customers like: 

 

 

=RANKX(ALLSELECTED(Table[client]),SUM(Table[turnover by invoice]),,DESC)

Then use this measure to divide by all selected clients: 

 

TOP N Pct = RANKX(ALLSELECTED(Table[client]),SUM(Table[turnover by invoice]),,DESC)/COUNTA(Table[client])

Then use above measure as Visual Level Filter to make it less than 0.15.

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Currenly, we only have build-in "TOP N" filter, it doesn't have "TOP N percentage" filter. 

 

For your requirement, you need to create a RANK measure for all customers like: 

 

 

=RANKX(ALLSELECTED(Table[client]),SUM(Table[turnover by invoice]),,DESC)

Then use this measure to divide by all selected clients: 

 

TOP N Pct = RANKX(ALLSELECTED(Table[client]),SUM(Table[turnover by invoice]),,DESC)/COUNTA(Table[client])

Then use above measure as Visual Level Filter to make it less than 0.15.

 

Regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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