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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
RichFlorida
Helper V
Helper V

Hiding Row Column in a Matrix Visual

Hello All,

 

Is there a way to hide the 'Rows Column" (country) in the Matrix Visual below, while keeping all the values displayed?

 

Hide Column.JPG

 

I've tried resizing the column and make it narrow enough to disapear, however it caused the text to wrap and for each row to be very wide, so this was not a feasable solution (see below).

 

Any ideas greatly apreciated.

 

Hide Column2.JPG

 

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @RichFlorida 

 

  1. You could turn the text wrap off 
  2. Change the font colour to match the background of the visual.
  3. Put something over the top like a rectangle to hide it
  4. Create a calculated column with nothing but spaces (different number for each row) and use that
    Hidden column = REPT(" ",'Product'[ProductId])
    SamWiseOwl_1-1722432628070.png

     

All some what hacky but thats life!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

6 REPLIES 6
dk_dk
Super User
Super User

Hi @RichFlorida 

I have a solution but it is a bit cumbersome.

Assuming you have a solid colored (white for this example) background for your report:

dk_dk_1-1722432164536.png

 

On the left is the original matrix, on the right the result.

To achieve this:

 

  1. In the visual settings, under Row headers, set the text color to white, and turn off banded row color
  2. Under Grid > Border, set the color to white, OR select the Values section and then top, if you still want to keep a separator line under the headers
  3. now the cumbersome part, ro get rid of the "name" header in my screenshot: go to Column headers and set the text color to white. oh no all the headers are gone -> now you have to Specific column, and for each series turn on Apply to header, and then under Values set the text color back to black.

 

Additionally, you can also reduce the  row header font size so that it takes less whitespace on the report page. You wont be able to place this visual flush to the left edge of the report page, but otherwise it should work,

 

Hope this helps!

Best regards,
Daniel




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

Proud to be a Super User!





I like this, elegant.
Can I ask why for step 3 you can't just give the column and empty aliase?

SamWiseOwl_0-1722433103768.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Haha, you absolutely could. Typical example of me over-engineering a solution when there is a simpler way. well spotted! 😄




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

Proud to be a Super User!





Thank you @SamWiseOwl and @dk_dk for your replies...

 

 I will try your solutions and let you know...!

@SamWiseOwl : Turning off the Text Wrap allowed me to resize the column by dragging, I was able to hid it.

 

 @dk_dk Your detailed instructions worked in making the content of the column disapear, I still needed to turn off  the ROw header Text Wrap to make the white space disapear.

 

Thank you both

SamWiseOwl
Super User
Super User

Hi @RichFlorida 

 

  1. You could turn the text wrap off 
  2. Change the font colour to match the background of the visual.
  3. Put something over the top like a rectangle to hide it
  4. Create a calculated column with nothing but spaces (different number for each row) and use that
    Hidden column = REPT(" ",'Product'[ProductId])
    SamWiseOwl_1-1722432628070.png

     

All some what hacky but thats life!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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