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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
carpe79
Frequent Visitor

TOP 5 Customer Issue

Dear All ;

 

I need your support about below issue , let me explain pls.

 

I have a table visual as follows. You can see the customer names in the leftmost column of the visual, the amounts in the middle column, and the percentage of a customer's amount to the total amount in the rightmost column. The customer order in the table is listed from the highest amount to the lowest amount. My request from you is this, I want to show the first 5 customers in this table and show the data of the remaining customers in a single row. How can I achieve this? You can also see the table on the right as an example. Thank you in advance for your valuable support.

 

Capture.JPG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @carpe79 ,

The table data is shown below:

vzhouwenmsft_0-1709258569348.png

Please follow these steps:
1. Use the following DAX expression to create a column

Column = IF(RANKX('Table1',[Value],[Value],DESC) <=5,[Customer],"Others")

2. Use the following DAX expression to create a measure name ‘SumValue’

SumValue = SUMX('Table1',[Value])

3. Use the following DAX expression to create a measure name ‘SumPercentage’

SumPercentage = SUMX('Table1','Table1'[Percentage])

4. Final output

vzhouwenmsft_1-1709258660772.png

vzhouwenmsft_2-1709258668038.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @carpe79 ,

The table data is shown below:

vzhouwenmsft_0-1709258569348.png

Please follow these steps:
1. Use the following DAX expression to create a column

Column = IF(RANKX('Table1',[Value],[Value],DESC) <=5,[Customer],"Others")

2. Use the following DAX expression to create a measure name ‘SumValue’

SumValue = SUMX('Table1',[Value])

3. Use the following DAX expression to create a measure name ‘SumPercentage’

SumPercentage = SUMX('Table1','Table1'[Percentage])

4. Final output

vzhouwenmsft_1-1709258660772.png

vzhouwenmsft_2-1709258668038.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.