Power BI table subtotals are off by default, but you can turn them on in seconds: select your table visual, open the Format pane, expand Row headers, and switch Subtotals on. Power BI then adds a total row at the bottom of the visual and, when you use a hierarchy or several fields in the Rows well, a subtotal for each level above the most detailed one. You need a table or matrix visual containing at least one numeric value and one field that groups the rows. The exact labels in the Format pane can differ slightly by Power BI version, desktop versus the service, and region, so look for the closest matching option if a name is not identical on your screen.
What You'll Need
- Power BI Desktop (free) or access to a workspace in the Power BI service with edit rights.
- A report with at least one table visual that has a numeric field in the Values well and a grouping field such as Category, Region or Date in the Rows well.
- A hierarchy if you want subtotals at several levels at once. Without one, subtotals only appear at the single grouping level you have.
- Familiarity with the Visualizations pane and the Format pane (the paintbrush icon), since almost every step happens there.
Step-by-Step
- Build or open the table. Click an empty spot on the canvas, choose the table visual from the Visualizations pane, then drag your grouping field into the Rows well and your measure or numeric column into the Values well. A matrix visual works the same way and adds column subtotals, so pick matrix if you need totals across the top as well.
- Select the visual. Subtotals only apply to the visual that is selected on the canvas. Click its border so the Visualizations pane shows the format and build options for that visual, not the page.
- Open the Format pane. Click the paintbrush icon at the top of the Visualizations pane. You will see collapsible sections such as Values, Row headers, Column headers, Grid, and Totals. The list of sections depends on the visual type, which is why a matrix shows more options than a plain table.
- Expand Row headers and switch Subtotals on. Look for the Subtotals toggle under Row headers in a table, or under Row subtotals in a matrix. Turning it on immediately adds a bold total row at the bottom of the visual. If the visual has no hierarchy, this is the only subtotal you get.
- Add a hierarchy to get per-level subtotals. In the Build pane, drag a second field and drop it directly under the first in the Rows well until you see a nesting indicator. Power BI then treats the fields as levels. Alternatively, add fields from a Date table and use the automatic date hierarchy. With two levels on, you get a subtotal for each top-level group plus a grand total at the bottom.
- Choose which levels get subtotals. In the Format pane for a matrix, expand Row subtotals and use the per-level toggles. Each level of the hierarchy has its own switch, so you can show subtotals for Category but hide them for Subcategory. This keeps wide tables readable.
- Style the totals row. In the same Row subtotals section, set the font color, background color, and size so totals stand out from detail rows. In a matrix you can also format the Total row separately. Keep the styling consistent with the rest of the report rather than relying on bold alone.
- Handle column subtotals in a matrix. If you placed a field in the Columns well, expand Column subtotals in the Format pane and switch them on or off for each column level. Column subtotals behave independently of row subtotals, so a matrix often needs both adjusted.
- Turn on the grand total if it disappeared. In a matrix, open Totals in the Format pane and toggle Row grand total and Column grand total. These are separate from subtotals and are sometimes switched off when a template or theme was applied.
- Check the measure, not just the toggle. Subtotals sum the row values by default. A plain numeric column adds up correctly, but a custom measure may not, because it is evaluated in the subtotal context rather than by adding the visible rows. Test by comparing the subtotal against the sum of the detail rows above it.
- Drill to verify each level. Use the drill icons in the visual header (or the expand arrows in a matrix) to collapse and expand levels and confirm each subtotal belongs where you expect. A subtotal that looks wrong usually belongs to a different level than you assumed.
- Publish and confirm in the service. Save the file and publish to your workspace. Format settings travel with the report, so the subtotals you set in Desktop appear in the Power BI service. Open the report in a browser to confirm the layout still fits.
Common Mistakes
- Expecting subtotals with only one field. A table with a single field in Rows shows one total row, not per-group subtotals. Add a hierarchy if you want grouped totals.
- Confusing the total row with subtotals. The bottom line is the grand total. Per-level figures only appear when more than one level is in play.
- Leaving the wrong visual selected. Formatting changes apply only to the selected visual. Editing the page background or theme instead of the visual is a frequent cause of "nothing happened".
- Assuming a custom measure will roll up correctly. Measures evaluated at subtotal level can produce unexpected results, especially with DISTINCTCOUNT or ratios. Use SUMX or rework the measure so it computes correctly at every level.
- Setting subtotals toggles in the model. Subtotals are a visual formatting setting, not a data model setting. Changing the model will not turn them on.
- Forgetting column subtotals in a matrix. Row subtotals and column subtotals are separate switches. Many reports look half finished because only one was enabled.
Tips
- Name the lowest level of a hierarchy clearly (for example, Product Name under Category) so readers understand what each subtotal covers.
- Use a matrix instead of a table when you want totals in both directions, or when you plan to let users drill.
- Keep the grand total visually distinct from subtotals, for example a darker background for the total row and a lighter tint for level subtotals.
- Test with filters applied. A slicer that removes a category should remove its subtotal too, and if it does not, the measure or the filter context is the culprit.
- Duplicate the visual before experimenting with per-level toggles so you can compare layouts side by side.
- If a row seems to appear twice in totals, check for duplicate rows in the source or a many-to-many relationship adding extra context.
Troubleshooting
The Subtotals toggle is greyed out or missing. Confirm you have the correct visual selected and that it is a table or matrix. Other visual types do not have this option. If the visual was created from a custom visual template, it may not expose built-in subtotals at all.
Subtotals appear but are blank or zero. This usually means the measure returns blank in the subtotal context. Check whether the measure uses relationships that do not cover the subtotal level, and test with a simple SUM of a numeric column to isolate whether the data or the measure is at fault.
Subtotals add up to more than the detail rows. The measure is being evaluated twice or applied to a relationship that fans out. Replace it with SUMX over the relevant table, or check for duplicated keys in a lookup table.
Subtotals vanish after publishing. Reopen the report in the service and check the Format pane. If a theme or template was applied after you set the subtotals in Desktop, it may have overridden the visual formatting. Reapply the settings and republish.
Rows look misaligned when subtotals are on. This is often the result of wrapped text in row headers. Widen the column or turn off text wrapping in the Row headers section, and check that the visual is wide enough for the extra indent that hierarchy levels add.
Nothing changes no matter what you toggle. Save the file, close and reopen it, and confirm you are not editing a visual inside a group or a paginated report, which handles totals differently. If the issue persists, create a fresh table visual from the same fields to see whether the original was corrupted.
Frequently Asked Questions
Why are subtotals not showing in my Power BI table?
The toggle under Row headers is probably off, or the table has only one field in the Rows well. Select the visual, open the Format pane, and switch Subtotals on. Add a second nested field if you need subtotals per group.
What is the difference between subtotals and the total row?
Subtotals are per-group figures for each level of a hierarchy. The total row is a single grand total at the bottom of the visual. Both are controlled from the Format pane.
Can I show subtotals only at the top level?
Yes. In a matrix, expand Row subtotals in the Format pane and switch off the toggle for the lower levels. In a table with a single grouping level, the subtotal is the total.
Do subtotals work with custom measures?
They display, but the value depends on how the measure is written. Measures that aggregate with SUM or SUMX usually roll up correctly; ratios and distinct counts often need reworking to give meaningful subtotal results.
Can I style subtotals differently from detail rows?
Yes. The Row subtotals section in a matrix and the Row headers section in a table both include font color, background color, and text size options that apply only to the subtotal rows.
Do subtotals carry over when I publish the report?
They do, because they are saved with the visual. If they look different after publishing, a theme or report-level formatting change is usually the reason, and reapplying the settings fixes it.