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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RingoSun
Helper II
Helper II

Changing what columns will appear in a matrix table based on a slicer

RingoSun_0-1652867378680.png

So I have this matrix table above but I want to filter it in such a way that if I use a Subcategory slicer and choose Convection microwave, it will only show specific competitor columns and the rest of the competitors will be grouped as Others. Something like below. 

RingoSun_3-1652867677933.png

And then if I select Portable in the Subcategory slicer then it would show me different columns again like below.

RingoSun_4-1652867757828.png

 

That's basically the whole idea.

 

The way I approached this problem was I created additional columns in my Brand dimension table in order to specify which columns would appear.

RingoSun_5-1652867858681.png

 

I tried creating a measure with a Switch function in it to return a column based on the selected value on the slicer but of course it won't work since I will not be able to put the measure in the Columns field of the visual.

 

There's probably a better way to do it but I just cannot figure out what. Any help would be greatly appreciated!

 

SAMPLE PBIX

 

2 REPLIES 2
amitchandak
Super User
Super User

@RingoSun , check if field parameter feature of May 2022 update can help you

https://powerbi.microsoft.com/en-us/blog/power-bi-may-2022-feature-summary/#post-19361-_Toc103022212

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Great for additional knowledge but unfortunately not quite enough for my requirement

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.