Smart Systems for Home

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

Power BI Table Density: How to Adjust Row Spacing

· 4 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

Power BI table density controls how tightly rows are packed in a table or matrix visual. You can switch between comfortable, compact, and default spacing to fit more data on screen or improve readability. The setting is found in the visual formatting pane under Grid > Row padding (labels may vary slightly by Power BI version). No special license or data preparation is needed—just a report with a table visual.

What You'll Need

  • Power BI Desktop or the Power BI service (editing permissions required).
  • A report with at least one table or matrix visual.
  • Basic familiarity with the Visualizations and Format panes.

Step-by-Step

  1. Open your report in Power BI Desktop or in the Power BI service edit view.
  2. Click the table or matrix visual to select it. The Visualizations pane appears on the right.
  3. In the Visualizations pane, click the Format your visual icon (the paintbrush).
  4. Expand the Grid section. If you don’t see it, look for Row headers or Values—density options are usually grouped under Grid.
  5. Locate Row padding. You’ll see a slider or a numeric input (measured in pixels). Lower values reduce spacing, higher values increase it.
  6. Adjust the value: for compact density, try 0–2 px; for comfortable, try 6–10 px. The default is typically around 4 px.
  7. To apply the same density to all similar visuals, use the Format > Copy option (or the paint roller) and paste formatting onto other tables.
  8. Save your report. In the Power BI service, changes are saved automatically if you’re in edit mode.

Note: Power BI does not have a single “density” dropdown like Excel’s Compact/Comfortable toggle. Row padding is the primary control. Some versions also offer Column padding and Text size under the same Grid section to further fine-tune.

Common Mistakes

  • Looking for a “Density” toggle. Power BI uses row padding (pixels) instead of named density presets. Adjusting the slider is the correct method.
  • Changing padding on the wrong visual. Formatting applies only to the selected visual. Use “Copy formatting” to replicate across multiple tables.
  • Setting padding too low. Values below 0 px are not allowed, and 0 px can make text touch cell borders, hurting readability.
  • Forgetting to check row height after changing font size. Larger fonts need more padding; otherwise text may clip.
  • Assuming density affects export or print. Padding changes the on-screen layout; exported PDFs or images may render differently depending on page size.

Tips

  • Use compact density (0–2 px) for dashboards with many rows, and comfortable density (6–10 px) for reports meant for reading.
  • Combine row padding with Text size (under Grid > Values) to keep text legible without wasting space.
  • If you need consistent density across a report, create a template visual with your preferred padding, then copy it.
  • Test on a typical screen size—what looks good on a large monitor may be too tight on a laptop.
  • For matrix visuals, row padding also affects subtotal rows; check those after adjusting.

Troubleshooting

If the Grid section is missing, ensure you have selected a table or matrix visual—not a card or chart. If row padding has no effect, check that the visual is not using a custom theme that overrides formatting; switch to the default theme temporarily. If text appears cut off after reducing padding, increase the row height or reduce font size. In the Power BI service, some formatting options may be disabled if the report is in reading view—switch to edit mode. If changes don’t save, verify you have edit permissions and a stable connection.

Frequently Asked Questions

Can I set table density globally for all visuals?

No single global setting exists. You can copy formatting from one visual to others, or use a Power BI theme JSON file to define default row padding for tables.

Does row padding affect performance?

No, it’s purely a visual formatting property and does not impact query performance or data refresh.

Why is my row padding slider greyed out?

This can happen if the visual is using a custom visual or if the report is in reading view. Switch to edit mode and ensure you’re using a standard table or matrix.

Can I set different padding for header vs. rows?

Power BI applies row padding uniformly to all rows, including headers. For separate control, consider using a matrix with custom formatting or a table with conditional formatting.

Does density setting carry over to Power BI Mobile?

Mobile views may render padding differently due to screen size. Test the report on mobile and adjust if necessary.

Is there a keyboard shortcut to change density?

No dedicated shortcut exists. Use the Format pane as described above.