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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.