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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
petergarry111
Frequent Visitor

Matrix Filtering Issue

Hi, 

 

I am looking to be able to make columns in my matrix disappear when they are not selected in the slicer but it seems the data just disappears and the column remains but is blank. I have had to create the column calculations within the "values" section as if I use the "Columns" section then I am unable to use individual formatting as is required per metric. Are there any workarounds I can use in order to make the columns disappear if they are not selected within the slicer? 

 

I've attached the image below, the top is how it looks unfiltered and the bottom image is how it looks when filtered to a single metric, I would like to make it so that instead of the blank metrics showing as such, instead they disappear and I am just left with the one selected metric column.

 

petergarry111_0-1735899935195.png

 

Many Thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @petergarry111 ,

If you are using Matrix visual, only need to put the "parameter" into the Values :

vjunyantmsft_0-1736472494877.png

Best Regards,
Dino Tao
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

6 REPLIES 6
petergarry111
Frequent Visitor

Thanks for going to this effort, it's amazing and it does seem on your images (As long as I can conditionally format each column individually) that it's worked but could you show me the full pane on the matrix? as it seems you have 'Date' and 'Parameter' within the columns section rather than having date in the rows section. I've tried it and it doesn't seem to work as I just get the following (Image below) I feel I need to keep the values as is in order to keep the conditional formatting for each individual metric.

Apologies if I misunderstood.. I am new to all this and appreciate the help so much!

Matrix1.png

Matrix2.png

  

Anonymous
Not applicable

Hi @petergarry111 ,

If you are using Matrix visual, only need to put the "parameter" into the Values :

vjunyantmsft_0-1736472494877.png

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

Anonymous
Not applicable

Hi @petergarry111 ,

Agree with johnt75 , and here are the detailed steps:
Under Modeling > New parameter > Fields:

vjunyantmsft_0-1736141157974.png

Select the fields or measures you want to put in:

vjunyantmsft_1-1736141216444.png

Put the parameter into the table or matrix visual:

vjunyantmsft_2-1736141250363.png


And the final output is as below:

vjunyantmsft_3-1736141267274.png

vjunyantmsft_4-1736141274093.png

vjunyantmsft_5-1736141280313.png

vjunyantmsft_6-1736141297332.png

 

Best Regards,
Dino Tao
If this post helps, then please consider Accept both of the replies as the solution to help the other members find it more quickly.

Thanks for the response! Will give it a try and get back to you 🙂

johnt75
Super User
Super User

You could try using a field parameter instead of individual measures. Add all your measures into the field parameter and add that to the matrix. When a user makes a selection in the slicer the matrix should show only those columns.

Thanks for the response! Will give it a try and get back to you 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.