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
Raul09
Advocate I
Advocate I

Sorting Matrix Table Values

Hi,

 

Let's say i run a company with 3 sales teams,. i want to create a matrix table that shows the sales amounts by channel and product.

 

Something like this

 

 #  Product A  Product B  Product C  Others  Total 
 Sales Team 1  $             500 $             750 $             950 $         1.500 $         3.700
 Reps $             250 $             610 $             630 $         2.100 $         3.590
 Telephone  $             300 $             256 $             456 $         5.000 $         6.012
 Total  $         1.050 $         1.616 $         2.036 $         8.600

 $       13.302

 

I have 10 products, but i don't want 10 columns, i want to show the top 3 sellers (PRODUCT A,B AND C) and group the other 7 products in "Others" column.

 

how can i acomplish that?

 

Thanks in advance.

 

Best Regards.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Raul09

In your scenario, you can right click Product in the Fields panel and select “New Group”, then create Product group and drag the Product group to Columns in Matrix visual, this way, you will get expected result. For more details, please review the following screenshots.
1.PNG

2.PNG

 

Reference:
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-grouping-and-binning/


Thanks,
Lydia Zhang

View solution in original post

5 REPLIES 5
CahabaData
Memorable Member
Memorable Member

2 questions

 

Is the structure of the data set already in side by side, or is it a stacked normalized table?  perhaps a few rows in example could help

 

Are you intending that PBI determine the top 3 - or - do you know what they are and manually creating the visual?

 

 

www.CahabaData.com

I will manually select my top 3 products to show and the others 7 to group too.

 

Example Data:

Document NoOrder DateCustomerRep CodeQuantityAmountProductChannel
15/3/2017XA1500 $       15.000ASales Team 1
25/3/2017GS2400 $       32.000BDistributors
35/3/2017BD3100 $         5.600XTelephone
45/3/2017ND3200 $       58.000YSales Team 1
        
 #  Product A  Product B  Product C  Others  Total   
 Sales Team 1  $       15.000 $                  - $                  - $       58.000 $       73.000  
 Distributos  $                  - $       32.000 $                  - $                  - $       32.000  
 Telephone  $                  - $                  - $                  - $         5.600 $         5.600  
 Total  $       15.000 $       32.000 $                  - $       63.600 $    110.600  
Anonymous
Not applicable

Hi @Raul09

In your scenario, you can right click Product in the Fields panel and select “New Group”, then create Product group and drag the Product group to Columns in Matrix visual, this way, you will get expected result. For more details, please review the following screenshots.
1.PNG

2.PNG

 

Reference:
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-grouping-and-binning/


Thanks,
Lydia Zhang

Solved! Thanks 😄

 

Now, how can i sort the column order by amount?

it shows alphabetically..

 

Best Regards.

Anonymous
Not applicable


@Raul09 wrote:

Solved! Thanks 😄

 

Now, how can i sort the column order by amount?

it shows alphabetically..

 

Best Regards.





Hi @Raul09,


Since this thread is closed, please open a new thread about this new issue. Our engineers will give response to you in the new thread.

Thanks,
Lydia Zhang

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.