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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
maialr
New Member

Sort headers in a Top 3 Matrix visual linked to two different slicers

Good morning all,

I have the following data model based in 3 different tables:

maialr_0-1613551451233.png

My goal is to build a Top 3 products by store Matrix visual keeping my headers (the products) sorted from largest to smallest total sold units:

maialr_4-1613551608226.png


In order to do this I choose to create a SUMMARIZECOLUMNS() table in order to figure it out the grand totals regarding each Product (_TotalUnitsSold) and after that create a new calculated column called [OrderByProductTotal] in the 'DimProducts' table related to this in order to have the chance to sort DimProducts[Product] on depends DimProducts[OrderByProductTotal]: in my matrix I used a Top N filter for the DimProducts[Product] field based on my DimProducts[OrderByProductTotal]

maialr_5-1613552054494.png


By this way, all works fine and also I can even use a slicer to filter the results based on the [Category] in order to change the Top 3 dynamically:

maialr_6-1613552222232.png

But my question is what happen if I would to use also anothe slicer to filter data regarding my DimStores table like the [Country]? Of course, in this case my dynamic Top 3 doesn't works because the filter propagation:

 
 

01.png

I guess I should move my [OrderByProductTotal] to the 'FactSales' table due to the filter propagation but I couldn't find a way to sort the DimFactSales[Product] field on depends this field properly or may I change the way I try to sort my matrix Top 3 products (figure it out a different measure for each of my Top 3 products?) or even my data model.

Any suggestions are welcome: I attach the .pbix file with the example.
Sample - Top 3 Matrix Sort based on Two Slicers.pbix 

Thank you in advance.

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @maialr ,

 

I can't download your .pbix file, please use Onedrive for business or Sharepoint online to share your .pbix files.

 

Best regards,
Lionel Chen

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

Hello,

Please could you check again the link to download the sample file? Now I hope it works.

Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors