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
vr_2020
Frequent Visitor

Matrix Chart

Hi - I am working on the following scenario:

Imagine the chart type in screenshot is Matrix Chart

 

1) When any , multiple or all values is selected in Slicer1, Matrix chart should display values in Col1, Col2 and Col3 as shown in the following screenshot

 

vr_2020_4-1687186754788.png

 

 

2) When I deselect any, multiple values or all values in Slicer1 dropdown, Matrix Chart should display the corresponding rows as Blank and with grey color background.

For example: When I deselect "Subcategory1.3" from Slicer1 dropdown, the corresponding row in Matrix chart should display as blank with grey color background and both Totals should get calculated as shown in this screenshot.

 

vr_2020_5-1687186808518.png

Any help is much appreciated.

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @vr_2020 ,

 

Please try:

First create a new table for slicer:

For Slicer = SUMMARIZE('Table','Table'[Categories],'Table'[Subcategories])

Output:

vjianbolimsft_0-1687313454730.png

Then apply the measure to the matrix visual:

Measure = 
SUMX('Table',IF([Subcategories] in SELECTCOLUMNS('For Slicer',"Sub",[Subcategories]),[Value],BLANK()))

Show items with on data:

vjianbolimsft_1-1687313763854.png

Final output:

vjianbolimsft_2-1687313778607.png

 

Best Regards,

Jianbo Li

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

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @vr_2020 ,

 

Please try:

First create a new table for slicer:

For Slicer = SUMMARIZE('Table','Table'[Categories],'Table'[Subcategories])

Output:

vjianbolimsft_0-1687313454730.png

Then apply the measure to the matrix visual:

Measure = 
SUMX('Table',IF([Subcategories] in SELECTCOLUMNS('For Slicer',"Sub",[Subcategories]),[Value],BLANK()))

Show items with on data:

vjianbolimsft_1-1687313763854.png

Final output:

vjianbolimsft_2-1687313778607.png

 

Best Regards,

Jianbo Li

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

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