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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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