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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

How to hide null columns in matrix table

Hi all,

I search this topic in web but i couldn't get enough information about that.

I have a matrix table with 6 measures. it changes by category.

My matrix table looks like that

Category       M1    M2    M3    M4    M5    M6
3001              12      5        3       9
3002              19      7        2       6
3007              5        9        1       5


The M5 and M6 columns change by value, Sometimes they don't have value, sometimes have value. I want to hide theese columns when they don't have value. I want to hide them completely. Their headers shouldn't be view.

Is it possible or not ?

Thanks

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

@Anonymous,

 

Add a seperate table that contains column names in one column, then drag the column to Columns, measure below to Values.

Measure =
SWITCH ( SELECTEDVALUE ( Table2[Column1] ), "M1", [M1], "M2", [M2] )
Community Support Team _ Sam Zha
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

7 REPLIES 7
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Add a seperate table that contains column names in one column, then drag the column to Columns, measure below to Values.

Measure =
SWITCH ( SELECTEDVALUE ( Table2[Column1] ), "M1", [M1], "M2", [M2] )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

@Anonymous Please make sure that you have unchecked the "Show Items with no data" option (under columns)

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

 

@PattemManohar there aren't a selection like "Show Items with no data" on my case.  By the way in rows option there is a seleciton like that but in values, not.

 

 

Screenshot_17.png

 

 

 

 

 

@Anonymous You need to do that option setting for "Column" fields not for Values fields. Refer below:

 

image.png

 

image.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Values which i use in values entry section, are calculation. I can't use them on columns. Is there another solution for this ?

@Anonymous What you are using as "Column" headers ? Could you please post the screenshot of the Matrix properties pane completely. I can see only the values section in your screenshot. Also, screenshot of your data as well.




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

 

 

 

 I can't send the data screenshot, what do you want to know about data, i can tell you

Screenshot_19.png

 

Values are measure.

Category and Category2 are Column.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.