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
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
Employee
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
Employee
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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors