How to Hide a Column in Power BI Matrix

Cody Schneider••7 min read

Building a report in Power BI often involves a bit of magic behind the scenes. You might need a specific column to sort your data properly, drive a conditional formatting rule, or act as an intermediate calculation. But while that column is essential for your logic, it doesn’t add any value to the final visual - in fact, it just adds clutter. So, how do you keep the column for its function but make it disappear from the report your boss sees? This guide will walk you through three effective methods for hiding a column in a Power BI matrix, from a super quick trick to more robust, professional techniques.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why Hide a Column in the First Place?

Before jumping into the "how," let's quickly cover the "why." Hiding a column isn't about concealing data maliciously, it's a common technique for creating cleaner, more intuitive reports. Here are a few popular reasons you might need this trick:

  • For Custom Sorting: This is the most common use case. By default, Power BI sorts text fields alphabetically. If you have a list of months displayed in a matrix (April, August, December…), sorting them alphabetically is useless. You would create a companion "Month Number" column (1, 2, 3...) in your data model, use the "Sort by column" feature, and then hide the numerical column so users only see the correctly ordered month names.
  • For Intermediate Calculations: Sometimes, a calculation is just a stepping stone. You might have a DAX measure that calculates a value used in another, more complex measure. While the first measure is critical for the analysis, displaying it in the matrix might confuse your audience. Hiding it keeps the focus on the final, meaningful result.
  • To Drive Conditional Formatting: Imagine you want to display up/down arrows or traffic light icons based on performance. You could create a column with simple values like -1, 0, and 1. This column can then be used to set the conditional formatting rule for the icons, but the numbers themselves don't need to be seen.

Whatever your reason, leaving these workhorse columns visible is like a magician showing the audience all the trapdoors. Let's make them disappear cleanly.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Method 1: The Quick and Simple "Shrink to Zero" Trick

This is by far the fastest and most straightforward method. It’s not technically hiding the column - it's just resizing it to be so narrow that it's practically invisible. It’s perfect for when you need a quick fix in a report that won’t be heavily scrutinized or exported.

Step-by-Step Instructions:

  1. Select Your Matrix Visual: Click on the matrix in your Power BI report canvas to activate it.
  2. Manually Resize the Column: Hover your mouse over the right border of the column header you want to hide. Your cursor will change to a resize icon (a line with two arrows).
  3. Click and Drag to the Left: Click and hold the border, then drag it all the way to the left until it snaps into the smallest possible width. You can often make it so thin that only a faint line remains.
  4. Optional: Turn Off Word Wrap: To be extra sure nothing shows up, select the matrix, go to the Format your visual pane (the paintbrush icon), expand the Column headers section, and turn off the Word wrap toggle. This prevents any multi-line text from being partially visible.

Example: Let's say you created a 'Day of Week Number' (1 for Monday, 2 for Tuesday) to correctly sort your 'Day Name' column. After you've set the sorting behavior in the Data view, you could simply drag the 'Day of Week Number' column in the matrix to zero width so only the correctly sorted 'Day Name' column shows up.

Pros and Cons of This Method

  • Pros: Insanely fast, requires no formulas or deep dives into formatting menus. It’s the definition of a "quick and dirty" solution.
  • Cons: The column isn’t truly hidden and might still show a very thin border, annoying perfectionists. If users can edit the report, they could accidentally resize and reveal the column. Furthermore, if the report is exported to Excel, this hidden column will likely reappear with all its data visible.

Method 2: Using Conditional Formatting for a Cleaner Hide

This technique is a significant step up in professionalism. Rather than shrinking the column, we leave it as is but make its contents as well as its background completely transparent to the same color as our table's background. The column is still there functioning perfectly, but it’s completely invisible to the end user.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Step-by-Step Instructions:

  1. Select the matrix on your report canvas.
  2. Open the Format your visual pane.
  3. Navigate to Conditional Formatting.
  4. Under Advanced Controls, choose the column you want to affect (e.g., 'Month Order').

Step 2: Configure the Font and Background Color

  1. Turn on the toggle for Background color and click the fx button.
  2. The Conditional Formatting pane will appear. For Format style, choose Rules.
  3. Under Rules, create a rule that will always be true for any cell with a value. For example, if Month Order is not blank.
  4. In the Color dropdown, select the color to match your matrix's background color, usually white (#FFFFFF). Press 'OK'.

Repeat the exact same step for the Font color. Turn on the toggle like for the background, and set the font color to the same exact white. It's essential that both font and background are set to the same color for the column to be entirely invisible.

Pros and Cons of This Method

  • Pros: This creates a perfectly invisible column you can resize to exploit without the hidden values appearing. It’s also ideal for delivering professional reports.
  • Cons: It takes a few more clicks than shrinking. You have to remember to update both the font and background color if you have a report with a different background color than white, or if you add the conditional formatting rule on each column.

Method 3: Power of DAX Masking

This approach uses a dependent relationship in the Power BI model—utilizing DAX (Data Analysis Expressions) to dynamically control which columns and values are visible based on conditions. This is powerful when you want to hide data under specific conditions, such as only displaying a column if a user is in a particular region or if a condition is met.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Application of This Method

One of the best applications of this method is hiding a column of values not meant to be shown. For instance, you could control visibility based on a data role or mimic a toggle switch to allow users to reveal hidden data. For example, by using a simple DAX formula that returns blank when a condition is not met, you can achieve this result:

= IF(NOT(ISBLANK('Month Order'[Sales Amount])), 'Month Order'[Sales Amount], BLANK())

Explanation for the formula:

  • IF(NOT(ISBLANK('Month Order'[Sales Amount]))): This checks whether there is a value in a specific region or condition and returns that result if true.
  • When the result is true (there is a specific goal), the formula returns the value.
  • If the result is false, it returns BLANK(), which effectively hides the data row.

Pros and Cons of This Method

  • Pros: This is an excellent method for calculations where columns need to appear based on specific user roles or application states.
  • Cons: More complex than simple column hiding and requires a good understanding of DAX expressions.

Final Thoughts

Hiding a column in a Power BI matrix can be an essential part of creating a clean and engaging report. Whether you’re drawing on a quick trick to hide a column or using DAX to dynamically control what appears, the methods covered here can help you deliver polished, professional reports that keep the magic hidden. To work efficiently and maximize your reporting effort, consider taking advantage of the right tools, like a dynamic content calendar, to keep your data and analytics well-organized. Explore Graphed for creating and managing your projects seamlessly.

Related Articles