To add borders to a table in Power BI, you need to use the Format pane: select the table visual, open the Format visual pane (the paintbrush icon), expand the Grid section, and set the Grid borders options. Power BI does not have a single 'table borders' toggle; instead, borders are controlled through the Grid settings, which apply to the entire table, and through conditional formatting for cell-level borders. This guide walks through the exact steps for both approaches, plus what to do when borders do not appear as expected.
What You'll Need
- Power BI Desktop (or the Power BI service) with a report open that contains a table or matrix visual.
- Edit permissions on the report so you can change visual formatting.
- A basic table visual already placed on the canvas with at least one field in the Values well.
Step-by-Step
- Select the table visual. Click anywhere on the table on the report canvas. A selection border with handles appears around it, and the Visualizations pane on the right becomes active.
- Open the Format visual pane. In the Visualizations pane, click the paintbrush icon (Format visual). This switches from the Build pane (fields) to the formatting options.
- Expand the Grid section. Scroll through the formatting cards until you find Grid. Click the arrow to expand it. Note that menu labels can differ slightly between Power BI versions and regions, but Grid is the standard section for table borders.
- Turn on vertical grid borders. Inside Grid, locate Vertical grid borders and toggle it to On. This draws lines between columns. Use the color picker to choose a border color and the width control to set thickness (typically 1 px is enough for readability).
- Turn on horizontal grid borders. Still in Grid, toggle Horizontal grid borders to On. This draws lines between rows. Set the color and width to match the vertical borders for a consistent look.
- Add an outline border (optional). In the same Grid section, find Outline. Toggle it On to draw a border around the entire table. Set its color and width. This is the closest equivalent to a traditional 'table border' in Power BI.
- Adjust row padding if borders look cramped. If the grid lines feel tight against the text, expand the Row padding section (sometimes under Grid or under a separate Cell elements area depending on version) and increase the padding value. This adds space inside each cell so borders do not touch the text.
- Apply cell-level borders with conditional formatting (advanced). For borders on specific cells only, you cannot use the Grid section. Instead, go to the Build pane, click the down arrow on the field you want to format, and choose Conditional formatting. In the dialog, look for a border-related option; if your version does not offer border formatting there, use a background color or font color rule as a visual substitute. Power BI's conditional formatting does not natively support per-cell borders in all versions, so test this in your version before relying on it.
- Check the result in both Desktop and the service. Borders set in Desktop carry over when you publish to the Power BI service. If you are editing directly in the service, the same Format visual > Grid path applies, though the pane layout may be slightly narrower on smaller screens.
- Save and publish. Press Ctrl+S (Desktop) or use File > Save, then publish to your workspace. View the report in a browser to confirm borders render correctly at different zoom levels.
Common Mistakes
- Looking for a single 'Borders' toggle. Power BI splits borders into Vertical grid borders, Horizontal grid borders, and Outline. Turning on only one leaves the table looking partially bordered.
- Confusing table borders with cell borders. The Grid section applies to the whole table. Per-cell borders require conditional formatting, which has limited border support and varies by version.
- Setting border width too high. A width of 3 px or more on every row and column makes the table look heavy and can obscure data. Stick to 1 px for grid lines and 1–2 px for the outline.
- Forgetting row padding. Borders that touch text look like a rendering bug. Add padding before assuming the border setting failed.
- Expecting borders in the table style presets. The Style presets under the table's formatting change colors and fonts but do not guarantee visible borders; you still need to enable Grid borders manually.
Tips
- Use a light gray (such as #E0E0E0) for grid lines and a darker color for the outline to create visual hierarchy without clutter.
- Match border color to your report theme so the table does not look pasted in from another design.
- If you need borders only between header and body, turn on Horizontal grid borders and set the header row's bottom border via the Column headers section if your version exposes it; otherwise use a thin outline and rely on header background color for separation.
- Test at the zoom levels your audience uses. Borders that look fine at 100% can disappear at 75% if the width is too thin.
- For matrix visuals, the same Grid section applies, but subtotal and total rows may need separate attention under the Subtotals section.
Troubleshooting
- Borders do not appear after toggling. Confirm you are editing the correct visual (click it first), and that you are in the Format visual pane, not the Build pane. Also check that the border color is not set to white or fully transparent.
- Borders show in Desktop but not in the service. Clear your browser cache and reload the report. If the issue persists, check whether the report uses a custom theme that overrides grid settings; themes can force borders off.
- Only some borders appear. Vertical and horizontal grid borders are separate toggles. Enable both, plus Outline if you want a full frame.
- Borders look uneven or doubled. This often happens when both grid borders and a table style with its own borders are active. Set the style to None or a minimal preset, then apply grid borders manually.
- Cannot find the Grid section. Scroll the Format visual pane; sections are collapsible and Grid may be below the visible area. In some versions, Grid appears only after you expand Table formatting options. If it is still missing, update Power BI Desktop to the latest version from the official Microsoft download page.
- Conditional formatting border option is grayed out. Per-cell border formatting is not supported for all visual types or field types. Use background color or font color rules as an alternative, or apply borders at the table level instead.
Frequently Asked Questions
Can I add borders to just one column in a Power BI table?
Not directly through the Grid section, which applies to the whole table. You can use conditional formatting on that field for background or font color, but per-column borders are not a standard built-in option in most versions. A workaround is to split the table into separate visuals, but that breaks sorting and scrolling across columns.
Do table borders carry over when I publish to the Power BI service?
Yes. Formatting set in Power BI Desktop, including grid borders and outline, is saved with the report and renders in the service. If borders disappear after publishing, check for a report theme that overrides visual formatting.
Why is my Outline toggle not showing?
The Outline option sits inside the Grid section of the Format visual pane. If you do not see it, expand Grid fully or update Power BI Desktop. In some older versions, Outline was labeled differently or absent; the current versions include it.
Can I set different border colors for rows and columns?
Yes. Vertical grid borders and Horizontal grid borders each have their own color picker, so you can use one color for column separators and another for row separators. The Outline color is set separately as well.
Do borders affect performance?
No. Borders are a rendering setting and do not change how data is queried or loaded. Very large tables may render more slowly in the browser regardless of borders, but the border settings themselves are not a performance factor.
Can I remove all borders from a table?
Yes. Toggle Vertical grid borders, Horizontal grid borders, and Outline all to Off. If borders still appear, check the table style preset and set it to None, and confirm no report theme is forcing borders on.