Sub topic 2
Overview of the four report formats
This chapter compares tabular, summary, matrix, and joined reports. It assumes you can navigate Lightning Experience, understand objects, records, fields, and relationships such as Account to Opportunity, and have permission to create and run reports. Later chapters build each format step by step. Here you learn what separates them so the rest of the plan has a frame.
Format is a separate choice from report type
Two decisions shape every report. The first is the report type, which determines the objects and fields you can use. The second is the format, which determines how the rows are arranged and what calculations are possible.
The two are mostly independent. You can show Opportunities in any of the four formats. A joined report is the exception, because it combines several report types, each in its own block.
The formats build on one another:
- A tabular report lists records in rows, with no grouping.
- A summary report adds row groupings and subtotals.
- A matrix report adds column groupings as well.
- A joined report places several blocks side by side, each with its own report type, filters, and columns.
Tabular reports
A tabular report is a flat list. Each row is one record, and each column is a field. It resembles a spreadsheet, with a grand total at the bottom if you ask for one.
Use it when you need a list rather than an analysis. Examples are every open Case owned by a queue, or all Contacts missing an email address.
Limits to know:
- You cannot group rows, so there are no subtotals.
- You can show a record count and a grand total of numeric fields, but nothing finer.
- A tabular report cannot feed a dashboard chart as it is. To use one in a dashboard you set a row limit and sort order, and then the data behaves like a "top N" list.
Summary reports
A summary report is a tabular report with row groupings. Records with the same value in a grouping field sit together, and Salesforce calculates subtotals for each group.
For example, an Opportunity report grouped by Stage shows each Stage as a heading. Under each heading are the opportunities in that Stage, and the group's total Amount and record count appear beneath. You can nest up to four row groupings, such as Stage, then Owner, then Close Date.
Each numeric column can be summarized with sum, average, minimum, or maximum. Summaries appear at every grouping level and in the grand total.
Summary reports are the workhorse format. They answer "how much, per what?" and they feed most dashboard charts, because a grouping gives a chart its categories and a summary gives it its values.
Matrix reports
A matrix report groups on both axes. Row groupings run down the left side. Column groupings run across the top. Each cell holds the summary for records that match both its row and column values.
An example is Stage in the rows and Close Year in the columns, with a sum of Amount in each cell. You can see at once whether late-stage revenue is shifting from one year to the next.
Matrix reports show only the groupings and summaries. Individual record rows are hidden by default, though you can turn on a details view in Lightning. A matrix allows up to two row groupings and two column groupings.
Use a matrix when you compare two dimensions at once. If a summary report would need a long list of nested subtotals to show the same thing, a matrix is often easier to read.
Joined reports
A joined report combines up to five blocks. Each block is its own mini report, with its own report type, columns, filters, and summaries. The blocks sit side by side.
For example, one block can show Opportunities and another can show Cases, both grouped by Account. This lets you see sales and support activity next to each other, even though no single report type contains both.
Blocks are connected through common groupings. A common grouping is a field that more than one block groups by, such as Account Name or a date. Salesforce lines up the groups across blocks on that field. You can also write cross-block formulas, which calculate values using summaries from several blocks.
Joined reports have some restrictions, and some are important:
- You cannot add every kind of field or filter that standard reports allow.
- Dashboard support is limited. Check the current Salesforce documentation before planning a dashboard around one.
- You cannot use bucket fields the same way across all blocks, so test before you commit to a design.
Side-by-side comparison
| Feature | Tabular | Summary | Matrix | Joined |
|---|---|---|---|---|
| Row groupings | None | Up to 4 | Up to 2 | Per block |
| Column groupings | None | None | Up to 2 | Not applicable |
| Subtotals | Grand total only | Per group | Per row, column, and cell | Per block |
| Number of report types | One | One | One | One per block, up to 5 blocks |
| Typical question | "Which records match?" | "How much per group?" | "How do two dimensions compare?" | "How do separate datasets line up?" |
| Dashboard use | Needs row limit | Common source | Common source | Limited |
The "up to" numbers describe the Lightning report builder at the time of writing. They can change.
One question, four formats
Suppose you manage sales and want to know about Opportunity revenue. Each format gives a different view of the same data:
- Tabular: a list of every open Opportunity with its Amount.
- Summary: Opportunities grouped by Stage, with the sum of Amount and a count for each Stage.
- Matrix: Stage in rows and Close Year in columns, with the sum of Amount in each cell.
- Joined: one block of Opportunities and one block of Cases, both grouped by Account.
The summary report is equivalent to this SOQL aggregate query:
SELECT StageName, SUM(Amount) total, COUNT(Id) cnt
FROM Opportunity
GROUP BY StageNameEach row in the result matches one group in the report. The sum and the count correspond to the report's summary columns. A later chapter develops this link between reports and SOQL.
Switching formats
You can change a report's format in the Lightning report builder. Moving between formats is mostly safe, but know what changes:
- Tabular to summary: adding a grouping converts the report. Your columns stay, and Salesforce adds subtotals.
- Summary to matrix: dragging a grouping to the column area converts it. Row details are hidden by default.
- Matrix back to summary: column groupings move back to rows or are removed.
- To joined: this is a bigger step. The original report becomes the first block, and you then add further blocks.
Formulas and charts attached to the report can break or need changes when you switch, because the grouping they depend on may move or disappear. Save a copy before you convert a report that others depend on.
Common mistakes
- Using a matrix when a summary report is enough. A matrix with one real dimension is harder to read than a plain grouped list.
- Using a tabular report to feed a chart without a row limit, then wondering why the dashboard cannot use it.
- Choosing a joined report to relate two objects that already have a relationship. If a report type already links the objects, such as Accounts with Opportunities, a single summary report is simpler and has fewer restrictions.
- Treating a joined report's blocks as one dataset. Each block has its own filters, so totals in separate blocks do not have to agree.
Exercise
Your sales director wants a table with Opportunity Stage down the left, fiscal quarters across the top, and the total Amount in each cell. Which format fits, and why would a summary report be a weaker choice?
Show answer
A matrix report fits, because the question compares two dimensions (Stage and quarter) in one grid. A summary report can group by both fields, but it nests one inside the other, so the quarters repeat under every Stage in a long list. That makes it harder to compare the same quarter across Stages.
Exercise
A manager wants Opportunity totals and open Case counts for each Account, shown together. The report types for Opportunities and Cases are separate. Which format fits, and what connects the two sets of data?
Show answer
A joined report fits, with one block for Opportunities and one for Cases. The blocks are connected by a common grouping on Account Name, which lines up each Account's data across the blocks.