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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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