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
Anonymous
Not applicable

Dynamically add or remove columns in matrix visual

Hi,

     I have unpivoted a table to get the columns and values and used it in matrix visual. I have used the columns field in the slicer so users can dynamically select and remove particular columns based on their needs from the matrix visual. Now the problem i am facing is that one coumn called counter needs to be always present in the matrix visual and that column should not be selected or deselected from the slicer. I am not sure how to do this so can someone help me to fix this issue 

@amitchandak @SpartaBI @Vijay_A_Verma @tamerj1 @lbendlin @Ashish_Mathur @AlexisOlson 

#powerbi #matrix #slicer

 

Thank you

Vivek

9 REPLIES 9
lbendlin
Super User
Super User

For ultimate flexibility enable "Personalize visuals" and teach your user how to use it.

 

Field Parameters do not support lists (yet)

lbendlin_0-1653834289834.png

 

Anonymous
Not applicable

Hi @lbendlin does that means Field parameters wont satisfy my requirement? And how personalize visual will help in my case as i need counter column should be always selected in the matrix irrespective of the other columns gets sliced by. Please let me know

Teach your users to always include that column when they personalize the visual.

 

You can only impact/freeze interactions between visuals, not inside a visual. If this is important to you please consider raising it at https://ideas.powerbi.com

Anonymous
Not applicable

@Greg_Deckler If i set Counter column not to be included in the slicer using visual level filter then it will not appear in my slicer but in my matrix visual i needs that counter column to be always present irrespective of what colmuns i select in the slicer visual 

SpartaBI
Community Champion
Community Champion

@Anonymous now with the new field parameters feature it's really easy. 
Just put all the columns you want to toggle on off in the field paramater table and the other column beside it on the table visual:

SpartaBI_0-1653653570463.png

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Anonymous
Not applicable

@SpartaBI I am not sure how this will work for my solution. I have pasted the visual below and here i want the counter column should be always selected. Example if i select application id then the matrix visual should show application id along with that counter column. How field paramter will help here? please let me know

 

VIVEK28_0-1653654412833.png

 

VIVEK28_1-1653654471402.png

 

Thanks

Vivek N

@Anonymous 
You will basically put all the measures and columns you want to toggle on one parameter table and the counter column / measure will be a stand alone.
You don't built this on top of your current solution rather create it from scratch and then put in a table visual (not matrix) like the pic from my previous message. It's really easy to do that, takes a few minutes.
Not sure how to explain forther than what I showed you.
Did you watched some video about it?
https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
https://www.youtube.com/watch?v=-nqEv2YXLsU
https://www.youtube.com/watch?v=5vLBnrPyPgc




Anonymous
Not applicable

Thank you for the quick response. I will try this solution and let you know if it solves my issue

Greg_Deckler
Community Champion
Community Champion

@Anonymous Can you just set a visual level filter on the slicer to not include that column?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.