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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.