Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power BI Table Visual Freeze Column: How to Lock Columns

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To freeze a column in a Power BI table visual, you must use the Matrix visual instead of the standard Table visual, as the standard Table visual does not currently support a native "freeze pane" or "lock column" feature. By placing the columns you wish to freeze into the "Rows" section of a Matrix visual and disabling "Stepped layout," you create a tabular view where the row headers remain visible while you scroll horizontally through the values.

What You'll Need

  • Power BI Desktop installed on your machine.
  • A dataset already loaded into your report.
  • A report page where you intend to display the data.
  • Basic familiarity with the Visualizations pane and the Fields pane.

Step-by-Step

  1. Select the Matrix Visual: Go to the Visualizations pane. Instead of selecting the Table icon, click on the Matrix icon. The Matrix is essential because it treats the first few columns as headers, which Power BI automatically keeps fixed (frozen) when the user scrolls to the right.
  2. Assign Your Frozen Columns: Locate the fields you want to remain visible (frozen) in the Fields pane. Drag and drop these fields into the "Rows" bucket of the Matrix visual. For example, if you want "Customer Name" and "Order ID" to stay put, place both of them in the Rows section in that specific order.
  3. Assign Your Scrollable Data: Take the numerical data or the columns you want to be able to scroll through and drag them into the "Values" bucket. If you have categorical data that should scroll, you may need to move it to the "Columns" bucket, depending on how you want the data aggregated.
  4. Disable Stepped Layout: By default, the Matrix visual nests row headers in a "stepped" format, which looks like an outline rather than a table. To make it look like a standard table with frozen columns, go to the Format pane (the paint roller icon). Navigate to Row headers > Options and toggle the Stepped layout switch to Off. This forces the row headers to appear in separate, side-by-side columns.
  5. Adjust Column Widths: Once the stepped layout is off, your frozen columns will appear. Hover your mouse over the edge of the column headers and drag them to your preferred width. This ensures that the frozen area doesn't take up too much of the screen real estate.
  6. Configure Subtotals: Because you are using a Matrix, Power BI will automatically add subtotals for your rows and columns. If these are not needed for your table view, go to the Format pane. Find the Row subtotals and Column subtotals toggles and switch them to Off. This removes the summary rows, leaving you with a clean, table-like appearance.
  7. Verify the Freeze Effect: Add enough columns to the Values section so that a horizontal scroll bar appears at the bottom of the visual. Scroll to the right. You will notice that the columns you placed in the Rows section remain locked on the left side of the screen while the Values columns slide underneath them.

Common Mistakes

One of the most frequent errors is attempting to find a "Freeze Pane" button within the standard Table visual. Because this feature does not exist for the Table visual, users often waste time searching through the Format pane. Always remember that for locking columns, the Matrix is the only native path.

Another common mistake is forgetting to turn off the Stepped Layout. Without this step, your frozen columns will be indented under one another, making the data difficult to read and breaking the "table" aesthetic. If your data looks like a hierarchy rather than a grid, the Stepped Layout is likely still enabled.

Users also frequently place too many fields in the Rows section. While you can freeze multiple columns, every column added to the Rows section consumes horizontal space that cannot be scrolled. If you freeze ten columns on a small screen, there may be no room left to see the actual data you are scrolling toward.

Finally, some users forget to disable subtotals. A Matrix visual with subtotals enabled often looks cluttered and confusing when intended to be a simple table. Always check both the row and column subtotal settings to ensure they align with your reporting goals.

Tips

To enhance the visual distinction between your frozen columns and your scrollable data, use the Format pane to apply a different background color to the Row headers. Navigating to Row headers > Background color allows you to give the frozen area a light grey or blue tint, which signals to the user that these columns are structural anchors.

If you have a very large number of columns, consider using a "Slicer" to filter the data before it hits the Matrix. This reduces the amount of horizontal scrolling required, making the frozen columns more effective as reference points.

For better performance, ensure that the columns you place in the Rows section have a relatively low cardinality (meaning they don't have millions of unique values). High-cardinality columns in the Row section of a Matrix can sometimes slow down the rendering speed of the visual.

Consider using "Conditional Formatting" on the Values columns. Since the frozen columns provide the context (e.g., the Product Name), you can use data bars or background color scales in the scrollable area to highlight trends without losing track of which product the data belongs to.

Troubleshooting

If the columns are not staying frozen, first check that you are definitely using the Matrix visual and not the Table visual. The icons look similar, but their functionality differs significantly regarding row headers.

If the scroll bar is not appearing, it means your visual is wide enough to fit all your data on the screen. To test the freeze effect, try shrinking the width of the visual container by dragging the corners inward until the horizontal scroll bar is forced to appear.

If your data is disappearing or aggregating unexpectedly, check the aggregation type in the Values bucket. By default, Power BI may "Sum" your data. If you want to see individual records, ensure that the fields in your Rows section are unique enough to prevent the Matrix from grouping multiple rows into one.

If the Stepped Layout toggle is missing, ensure your Power BI Desktop is updated to the latest version. While this is a core feature, interface labels can differ slightly by version, though the logic remains consistent across recent releases.

Frequently Asked Questions

Can I freeze columns in the middle of a Power BI table?

No, Power BI only supports freezing columns on the left side (the row headers). You cannot lock a column in the center of a visual while allowing both the left and right sides to scroll.

Is there a way to freeze the top row (header) as well?

Yes, Power BI visuals freeze the column headers by default. As you scroll down through the rows, the top header row remains visible automatically.

Does this method work in the Power BI Service (Web)?

Yes, once you configure the Matrix visual in Power BI Desktop and publish the report, the frozen column behavior will persist in the Power BI Service for all end-users.

Can I freeze columns in a Table visual using a custom visual from AppSource?

Yes, there are third-party table visuals available in the AppSource marketplace that offer advanced freezing and locking capabilities, though the Matrix method is the preferred native solution.

Why does my Matrix visual look different from my Table visual?

The Matrix visual is designed for aggregation and pivoting. To make it look like a Table, you must disable the Stepped Layout and turn off subtotals.