Power BI Table Tools: A Step-by-Step Guide
In this article
Power BI's table tools are the formatting and layout options that turn a plain grid of numbers into a readable, sortable, and presentable table visual. You can adjust column widths, rename headers, apply conditional formatting, add totals, and control sorting and filtering without writing any DAX. To use them, you need Power BI Desktop (the free authoring tool) and a dataset already loaded into your report. The steps below are for Power BI Desktop; the Power BI service offers a subset of these options, and labels can differ slightly by version or region.
What You'll Need
- Power BI Desktop installed on a Windows PC (the authoring tool; the service is browser-based and has fewer table formatting options).
- A report open with at least one table visual already created, or data loaded so you can create one.
- Basic familiarity with the Fields pane and the Visualizations pane.
Step-by-Step
- Select the table visual. Click anywhere on the table in the report canvas. The Visualizations pane on the right becomes active and shows the table's fields.
- Open the Format pane. In the Visualizations pane, click the paintbrush icon (Format your visual). This is where all table formatting lives. The icon may be labeled "Format your visual" or simply show a paintbrush depending on your version.
- Rename a column header. In the Fields well (the Values area of the Visualizations pane), double-click the field name and type a new name. This changes the display name in the table without altering the underlying data. Alternatively, right-click the field in the Fields pane and choose "Rename for this visual."
- Adjust column widths. Hover over the divider between two column headers in the table until the cursor becomes a double arrow, then drag. To auto-fit, double-click the divider. You can also set widths under Format > Column headers > Column width, but dragging is faster for one-off tweaks.
- Sort the table. Click a column header once to sort ascending, again for descending. To sort by a column not shown in the table, use the ellipsis (three dots) on the visual and choose Sort by > [field]. The sort order is saved with the visual.
- Add or remove totals. Under Format > Totals, toggle Totals on or off. You can choose to show totals at the bottom (default) or top, and select which columns are summed. Note that totals apply the same aggregation as the column; text columns show blank in the total row.
- Apply conditional formatting. Select a column in the Values well, then under Format > Cell elements > [column name] > Conditional formatting, choose Background color, Font color, or Icons. Set rules based on values, or use a gradient. This is useful for highlighting outliers without adding a separate chart.
- Control text wrapping and alignment. Under Format > Column headers, set Text wrap on to let long headers wrap to multiple lines. Under Values, set Text wrap for cell content. Alignment (left, center, right) is set per column under Values > [column] > Alignment.
- Style the grid. Under Format > Grid, adjust row padding, grid lines, and outline. Row padding controls vertical spacing; increasing it makes the table easier to scan. Grid lines can be turned off for a cleaner look.
- Set up drill-through or filters (optional). If you want users to filter the table, add a slicer visual and connect it to the same fields. For drill-through, create a separate page and configure the drill-through field in the Visualizations pane; then right-click a row in the table and choose Drill through. This is not a table formatting option but a common companion feature.
Common Mistakes
- Renaming a field in the Fields pane instead of the visual. Renaming in the Fields pane changes the name everywhere in the report. Use "Rename for this visual" to change only the table header.
- Expecting totals to sum text columns. Totals only aggregate numeric fields; text columns show blank. If you need a count, add a measure and place it in the table.
- Forgetting that column width changes are per visual. Resizing columns in one table does not affect other tables. Copy the visual to reuse formatting.
- Assuming the Power BI service has all formatting options. The service (browser) offers fewer table formatting controls than Desktop. Author in Desktop for full control.
- Sorting by a hidden column. If you sort by a column not in the table, the sort order may not be obvious to viewers. Add the column or note the sort in a title.
Tips
- Use the Format pane's search box to quickly find a setting; it filters the list as you type.
- Copy and paste a formatted table to duplicate its formatting, then swap the fields.
- For large tables, turn off text wrap and increase row padding to improve readability.
- Use conditional formatting with icons for a quick visual cue without adding a chart.
- Set a default sort order in the visual so viewers see the most relevant rows first.
Troubleshooting
- Format pane is grayed out: Make sure the table visual is selected, not the report page. Click directly on the table.
- Column width won't stick: If the table is set to auto-size, manual widths may be overridden. Turn off auto-size under Format > Table > Auto-size (if available) or resize after setting a fixed width.
- Totals show wrong values: Check the aggregation for each column in the Values well (sum, average, count). Right-click the field and choose the correct aggregation.
- Conditional formatting not applying: Ensure the column is selected in the Values well before opening the conditional formatting options. Some rules require a numeric field.
- Table looks different in the service: Some formatting options are Desktop-only. Publish and check; if a feature is missing, it may not be supported in the service version you are using.
Frequently Asked Questions
Can I change the font of a table?
Yes. Under Format > Values > Font, you can set font family, size, and color. The same options exist for column headers under Column headers.
How do I add a row number to a table?
Power BI does not have a built-in row number feature for tables. You can add an index column in Power Query before loading, but it will not renumber dynamically when filtered. For a static row number, use an index column; for dynamic numbering, a DAX measure using RANKX is possible but complex.
Why does my table show blank in the total row for some columns?
Totals only apply to numeric fields. Text columns and columns with certain aggregations (like "Don't summarize") show blank. Change the aggregation or remove the column from the total.
Can I export a table to Excel?
In the Power BI service, you can export the underlying data if the report owner has enabled export. In Desktop, you can copy values or use the "Export data" option on the visual (if available). Export options depend on permissions and settings.
How do I make the table responsive on mobile?
Power BI mobile apps render tables in a scrollable format. You can create a mobile layout in Desktop (View > Mobile layout) to arrange visuals for phone screens, but table formatting itself is limited on mobile.
Is there a way to freeze the header row?
Power BI does not have a freeze panes feature for tables. As a workaround, keep the table short or use a matrix with stepped layout, but headers will still scroll with the visual.