Power BI Table vs Matrix: Which Visual to Use
In this article
A table in Power BI shows data in a flat, two-dimensional grid with one row per record and one column per field. A matrix adds row groups, column groups, and subtotals, so it can pivot and aggregate data like a spreadsheet PivotTable. Use a table when you need a simple list of detailed records; use a matrix when you need to compare values across categories and time periods with totals. Both visuals live in the same Visualizations pane, and switching between them is a right-click away, but choosing the right one up front saves rework.
What You'll Need
- Power BI Desktop (or the Power BI service) with a report open and at least one table loaded.
- A dataset with numeric fields for aggregation (for example Sales Amount) and categorical fields for grouping (for example Region, Product Category, or Date).
- Basic familiarity with the Visualizations pane, the Fields well, and the Filters pane.
Step-by-Step
- Decide what question the visual must answer. If the answer is a list of individual rows (orders, tickets, customers) with no grouping, choose a table. If the answer is a comparison across categories or periods with totals, choose a matrix. Write the question down before you drag any fields; it prevents building the wrong visual twice.
- Add the visual. In Power BI Desktop, go to the Visualizations pane and click the Table icon (a simple grid) or the Matrix icon (a grid with a stepped row header). On the Power BI service, the same icons appear in the Visualizations pane in edit mode. Menu labels can differ slightly by version and region, but the icons are consistent.
- Populate a table. Drag fields into the Columns well. Each field becomes a column; each row is a record. For a table, do not drag fields into Rows or Values unless you want implicit aggregation; dragging a numeric field into Values aggregates it to a single total row, which is rarely what a detail table needs.
- Populate a matrix. Drag categorical fields into the Rows well (for example Region, then City). Drag a numeric field into Values (for example Sales Amount). Optionally drag a field into Columns (for example Year or Quarter) to pivot the measure across columns. The matrix automatically creates row and column subtotals.
- Control aggregation. In a matrix, the Values well defaults to Sum for numeric fields. Click the arrow next to the field in Values and choose Average, Count, Min, Max, or a custom measure. In a table, if you want a single aggregated row, use the same menu; otherwise leave the field unaggregated.
- Turn subtotals on or off. Select the matrix, open the Format pane (the paint roller icon), and expand Row subtotals and Column subtotals. Toggle them on or off and choose whether to show them at the bottom or top. Tables have no subtotal section because they do not group rows.
- Format for readability. In the Format pane, set column widths, text size, gridlines, and alternate row shading. For a matrix, also set the stepped layout (Format > Row headers > Stepped layout) to indent nested row groups. Tables benefit from frozen header rows when scrolling, which you enable in the Format pane under Grid.
- Add conditional formatting where it helps. Select the visual, go to the Format pane, expand Cell elements, and turn on Font color or Background color with a rules-based or gradient scale. This works in both visuals, but it is most useful in a matrix where a color scale across a pivot highlights high and low cells at a glance.
- Test with filters and slicers. Add a slicer for a field such as Year or Region and click through values. Confirm the table shows the expected detail rows and the matrix re-aggregates totals correctly. Check that subtotals recalculate and that no blank category rows appear unexpectedly.
- Switch if you chose wrong. Right-click the visual and choose Change visualization type, or click the other icon in the Visualizations pane. Power BI keeps field assignments where the wells match; fields in Columns may move to Rows or be dropped, so re-check the wells after switching.
Common Mistakes
- Using a table for aggregated comparisons. A table with a numeric field in Values collapses to one total row per group only if you add a grouping field to Rows, which turns it into a de facto matrix. If you need subtotals, start with a matrix.
- Putting too many fields in matrix Rows. Deep nesting creates a tall, slow visual that is hard to scan. Limit row groups to two or three levels and use drill-down for the rest.
- Forgetting that matrix Values aggregate. Dragging a numeric field into Values sums it by default. If you wanted a detail list, use a table or set the aggregation to Don't summarize where available.
- Leaving subtotals on by default in a large matrix. Subtotals at every level can multiply rows and slow rendering. Turn off the levels you do not need in Format > Row subtotals.
- Assuming a table can pivot. Tables have no Columns well behavior for grouping; only a matrix pivots values across column headers.
Tips
- Use a matrix with a date field in Columns (Year, then Quarter) to build a quick trend grid without writing a time-intelligence measure.
- In a matrix, enable Stepped layout and turn off the +/- icons if you want a clean printed report; keep them on for interactive exploration.
- For detail tables, sort by the key business field (for example Order Date descending) in the visual's top-right sort menu, not in the data model, so other visuals are unaffected.
- Use a table when exporting to CSV is the goal: a table exports row-for-row, while a matrix exports its current pivot layout with subtotal rows included.
- Name your measures clearly (Total Sales, Avg Order Value) so the Values well in a matrix reads cleanly in the column headers.
Troubleshooting
- The matrix shows one row per record instead of grouped rows. A unique identifier (such as Order ID) is in the Rows well. Remove it or move it to a tooltip, and keep only the categorical fields you want to group by.
- Totals are wrong or missing. Check the aggregation in Values; a field set to Count will not sum. Also confirm that Row subtotals and Column subtotals are enabled in the Format pane.
- The table shows a single row with a grand total. A numeric field is in Values and no detail fields are in Columns. Move the numeric field out of Values, or add the detail fields to Columns.
- Switching visualization type loses fields. This is expected when wells do not map. Re-add the dropped fields after switching and re-check the aggregation.
- The visual is slow with many rows. Reduce row group depth, turn off unneeded subtotals, and apply a Top N filter or a page-level filter to limit records. For very large detail tables, consider the Filters pane to restrict rows before rendering.
- Blank category rows appear. The grouping field contains blanks. Filter them out in the Filters pane or clean the source data; do not hide them with a visual-level filter if the totals must reconcile.
Frequently Asked Questions
Can a table show subtotals?
No. Tables list rows without grouping, so there is no subtotal section. Use a matrix if you need subtotals by category.
Can a matrix show individual records?
Yes, if you put a unique field such as Order ID in Rows and a numeric field in Values with aggregation set to Don't summarize where available. In practice a table is simpler for record-level detail.
Does switching between table and matrix change my data?
No. It changes only the visual layout. Field assignments may move between wells, so verify the Values aggregation after switching.
Which visual exports better to Excel?
A table exports as a flat row set. A matrix exports its current pivot shape, including subtotal rows, which is convenient for reports but harder to reuse as raw data.
Can I use both on one page?
Yes. A common pattern is a matrix for the summary and a table below it for the underlying detail, both filtered by the same slicer.
Why does my matrix show columns I did not add?
Fields in the Columns well create column headers. Remove any field there that you did not intend to pivot, and check that no date hierarchy expanded automatically.