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

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

Reply
wagau999
Frequent Visitor

How to slice Matrix Table with help of slicer(Measure)

I have two tables Product and Isavailable. "Product" table has 6 level of Product Hierarchies and other Table "IsAvailable" has Product availability flag. I have created Measure calculating availability for each Product. Power BI Report has below Matrix visual. 

wagau999_0-1673433319907.png

I need to slice the Matrix visual depending on selection of Product availability(Yes/No).  Kindly help.

 

2 REPLIES 2
MAwwad
Solution Sage
Solution Sage

Filtered Data:= CALCULATE(SUM(Product[Sales]),FILTER(IsAvailable,IsAvailable[Availability] = SELECTEDVALUE(IsAvailable[Availability])))
 

This measure uses the "FILTER" function to filter the "IsAvailable" table by the selected value of the "Availability" column, and the "CALCULATE" function to modify the data that is being displayed in the Matrix visual based on that filter. It will use the selected value from the column "Availability" from the table "IsAvailable", and filter the Product table to sum only the rows where the availability is the one selected.

You can then use this measure in your Matrix visual instead of the original measure. Also, you will have to have a relationship between the two tables.

Hi DataSlayer,

 

Thanks for looking and helping here!

 

I am sharing the sample Power BI file here for referance. So you can understand what is the issue here. In my Product Table I have 6 columns for Product column so relationship between many column to one column is required here which i am not aware of. So technically we can create one active relationship and other inactive and with Userelationship, but that seems difficult here.  Hope you will look into it and provide the solution.

One Drive link: https://onedrive.live.com/?id=88ad0d9fb4f11e3c%21106&cid=88AD0D9FB4F11E3C

Goggle Drive link: https://drive.google.com/file/d/1wgSn3rd98fIj2OXUfMeAdFzK6o1dsBsf/view?

 

Thanks,

Gaurav

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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