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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mfgAnalytics
New Member

Filter on a Matrix, but keeping related value not matching the filter

Hello everyone,

 

i am tackeling a challenge in visualization that is not easy for me as a beginner to solve. I need the following visualization as a matrix:

 

(As it is a matrix the empty cells below each item in SalesItem and Price are not in the actual visualization)

 

SalesItemPriceSalesStoreOnStock
USB-Charger19,99 EURDowntown5
  ShoppingCenter3
  Rural Area1
Laptop 5GHz999,99 EURDowntown2
  Rural Area2
Gaming PC1299,49 EURShopping Center1
GPU 4090 Super2299,00 EURDowntown6
  Rural Area1

 

Now the challenge:

I want to filter by >Location< but keep all lines of other locations that have listed the same item.

 

Example #1:

Slicer for SalesStore: Downtown

Result:

SalesItemPriceSalesStoreOnStock
USB-Charger19,99 EURDowntown5
  ShoppingCenter3
  Rural Area1
Laptop 5GHz999,99 EURDowntown2
  Rural Area2
GPU 4090 Super2299,00 EURDowntown6
  Rural Area1

 

Example #2:

Slicer for SalesStore: ShoppingCenter

Result:

SalesItemPriceSalesStoreOnStock
USB-Charger19,99 EURDowntown5
  ShoppingCenter3
  Rural Area1
Gaming PC1299,49 EURShopping Center1

 

The data model:

Table A: SalesItem, Price

Table B: SalesItem, SalesStore, Quantity

Key: SalesItem

 

Is it possible to solve this challenge in PowerBI?

3 REPLIES 3
danextian
Super User
Super User

Hi @mfgAnalytics ,

 

Please provide a sample data (or better yet a sample pbix) and not just the expected result

Question:
but keep all lines of other locations that have listed the same item. You mean that if a location (is that the store name?) is selected and a store has that item, all lines from all other locations that has that item is to be shown as well? Can you please explain your sample result?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Question:
"but keep all lines of other locations that have listed the same item."
You mean that if a location (is that the store name?) is selected and a store has that item, all lines from all other locations that has that item is to be shown as well? Can you please explain your sample result?

 

Yes, this is correct. If I for example select Downtown as a location, only the Gaming PC Line would disappear from the visualization, and all SalesItems with all their locations would remain in the visualization, because they are also sold at Downtown location.

 

I have a pbix ready, but dont know where to upload. It's not working here as pbix or zip.

Only superusers can attach files but you can always save sample file in a cloud storage (onedrive, gdrive, dropbox) and paste the  publicly accessible link to it.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors