Sub topic 2
Overview of the four report formats
This chapter assumes you can navigate Lightning Experience, know how objects, records, and fields relate (for example Account to Opportunity), and have permission to create and run reports. It also assumes you have seen that a report type decides which objects and fields a report can use.
One data source, four layouts
A report format controls how Salesforce arranges the rows that your report type and filters return. The same Opportunity data can appear in any of the four formats. Each format adds one capability to the one before it.
| Format | Groups rows | Groups columns | Multiple blocks | Typical question |
|---|---|---|---|---|
| Tabular | No | No | No | Which opportunities close this month? |
| Summary | Yes, up to 3 levels | No | No | What is the total Amount per Stage? |
| Matrix | Yes, up to 2 levels | Yes, up to 2 levels | No | How does Amount compare by Stage and Close Year? |
| Joined | Per block | Per block | Up to 5 blocks | How do Opportunities and Cases look side by side per Account? |
The four formats in brief
Tabular
A tabular report is a flat list of records, like a spreadsheet. It has columns and a grand total, and nothing else. Use it for lists and exports, such as all open Opportunities owned by your team. It is the easiest format to build, and it is the starting point for the others.
Summary
A summary report groups rows by one or more fields and shows subtotals for each group. If you group Opportunities by Stage, you can show the sum of Amount and the record count for each Stage. This is the most common format for questions that ask for a total, average, minimum, maximum, or count per category.
Matrix
A matrix report groups by both rows and columns. Stage down the side and Close Year across the top gives you one cell for each Stage and year pair. Use it when you need to compare two dimensions at once. Each cell holds a summary value, and the margins hold totals.
Joined
A joined report holds up to five blocks. Each block is its own report with its own report type, columns, and filters. This lets you view data from unrelated report types together, such as Opportunities and Cases. You link the blocks by grouping on a field they share. Joined reports are the most flexible format and also have the most restrictions, which later chapters cover.
How the formats change the work you do
Choosing a format changes which features you can use. Groupings, summary fields, and custom summary formulas appear in summary and matrix reports. Bucket fields work in all formats except joined reports. Charts and dashboard components can be built on summary, matrix, and joined reports, but the available chart types depend on the format.
You can convert between formats in the report builder. Moving from tabular to summary is simple, because adding a grouping does it. Moving from matrix back to summary keeps the row groupings and drops the column groupings. Converting to or from a joined report can lose settings, so check the result after the change.
Format choice and SOQL
A summary or matrix report returns the same numbers as a SOQL aggregate query. A summary report maps to GROUP BY on one field, and a matrix maps to GROUP BY on two fields. Joined reports have no single SOQL equivalent, because each block is a separate query. The last chapter of this tutorial covers this in detail.
Exercise
A manager wants total Opportunity Amount for each Stage, split by Close Year, in one view. Which format fits best, and why would a summary report fall short?
Show answer
A matrix report fits best. It groups Stage on rows and Close Year on columns, so each cell shows the summed Amount for one Stage and year. A summary report can only group rows, so it would need Close Year as a second or third row grouping. That gives a long nested list, not a grid you can compare at a glance.