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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
nsadams87xx
Helper III
Helper III

Hiding Columns in Matrix

I'm sorry for cluttering the forum a bit.  Is there a way I can hide those blank and infinity columns in a Matrix visual?  Not handle the blank or infinity but actually completely hide them?measure.JPGHide percentage.JPG

1 ACCEPTED SOLUTION

Hi @nsadams87xx ,

 

Believe that the best option is the one you already have, and hiding the columns, having seperated tables for the calculation of each year will increase the difficulty and complexity of your database.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

8 REPLIES 8
JamesHammett
New Member

On a related topic how would I hide the three columns highlighted yellow for FY23 whilst keeping the same columns for FY22 

JamesHammett_0-1680775947404.png

 

 

Hi  @JamesHammett ,

 

You need to reduce the size of the columns until they are hidden, be aware that you need to turn off word wrap for titles on columns and values.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





MFelix
Super User
Super User

Hi  @nsadams87xx ,

 

On Matrix visualizations when you add a measure /column with and hierarchy in the Column headers all the Measures/columns added get repeated on all the hierarchy, the only way to remove this columns is to turn off wrap text on column headers and values and then resize those columns (drag from the edge of the column as in excel) until you don't see them.

 

Visual filters or some other work arounds don't work, you can only turn on / off columns on total or subtotals, on values you need to reduce the size.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





So best practice then:

 

I'm getting this data based off of a SQL query.  Should I just make two queries to get the data and have two separate tables, one for 2019 and one for 2020 and just use a grid?  Or can I use a grid with my current data model and maybe do a pivot somehow?

 

This is the format my user is looking for.

 

format for volume.JPG

Hi @nsadams87xx ,

 

Believe that the best option is the one you already have, and hiding the columns, having seperated tables for the calculation of each year will increase the difficulty and complexity of your database.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





I worked with the user and got them to accept using a Matrix by having the Months as the 2nd level in the hierarchy rather than wanting an "Excel" look.  Thanks for your help!

@nsadams87xx 

 

You may check if the post below helps.

https://community.powerbi.com/t5/Desktop/Matrix-Add-some-blanks-Column-to-separate-2-measures/m-p/88...

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.
amitchandak
Super User
Super User

You have to create a measure for denominator and use that a visual filter

[Denom] <> 0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.