Sub topic 4
Chart, gauge, metric and table components
This chapter assumes you can build a summary or matrix report with at least one grouping, and that you know how to open the dashboard editor. Each dashboard component reads from one source report. The component type decides how that report's data is shown.
How a component uses its source report
A component does not hold data of its own. It reads the source report and picks out the values it needs. The report's groupings and summary fields set what each component type can display.
| Component | Needs from the report | Best for |
|---|---|---|
| Chart | At least one grouping and a summary value | Comparing or trending groups |
| Gauge | One summary value | Progress toward a target |
| Metric | One summary value | A single headline number |
| Table | Rows, or a grouping with a few values | Short ranked lists |
Chart components
A chart plots the groupings of a report. Use a summary report grouped by Stage, Owner or Month. The report below is a typical source for a chart. It sums open opportunity amounts by stage, which is what an open-pipeline summary report grouped by Stage gives the chart.
SELECT StageName, SUM(Amount) total
FROM Opportunity
WHERE IsClosed = false
GROUP BY StageNameIn the dashboard editor, drag a Chart from the component list onto the canvas. Choose the source report, then pick the chart type, the X-axis grouping and the Y-axis value. A matrix report can feed a stacked or grouped chart because it has two groupings. Chapter 5 covers which chart type fits which question.
Gauge components
A gauge shows one number against a range with colored segments. You set a minimum, a breakpoint between segments, and a maximum. For example, a quota gauge could run from 0 to 1,000,000 with breakpoints at 400,000 and 800,000. The three segments are usually red, yellow and green.
Use a gauge only when the number has a meaningful target. A gauge for "total accounts" tells the viewer nothing, because there is no good or bad range.
Metric components
A metric shows one number and a label. It is the simplest component. Choose the summary field to display, such as the record count or the sum of Amount. You can also add up to two breakpoints that change the number's color, as on a gauge.
A metric works well in a row at the top of a dashboard. It gives the viewer the headline figures before they read the charts.
Table components
A table lists the top rows of a grouping. It shows up to 10 rows of report data. Choose the columns, and set how the rows are sorted. The table needs a report that is grouped, or a tabular report with a row limit. Use it for lists such as "Top 10 open deals" where the exact name matters more than the shape of the data.
Because a table is limited in size, it is not a replacement for the report itself. Add a link to the full report so viewers can drill in.
Common errors
- The chart is empty or shows one bar. The source report has no grouping, or the grouping field has no data. Add a grouping to the report and run it again.
- A gauge or metric shows the wrong number. The component is using a different summary field than you meant. Open the component and check the field in the value setting.
- The component list does not offer the report you want. You need access to the report's folder. Chapter 9 covers folder access.
- A table is cut off. Tables show only the first rows. Lower the number of columns or use a chart for larger sets.
Exercises
Exercise
A manager wants one large number showing the count of open cases, with the color turning red above 50. Which component type fits, and what report setup does it need?
Show answer
A metric component fits. The source report needs a single summary value, such as the record count of open cases. Set a breakpoint at 50 so the color changes above it.
Exercise
A chart built on a tabular report with no groupings shows nothing useful. What do you change?
Show answer
Convert the report to a summary report and group it by the field you want on the chart axis, such as Stage. Then run the report and point the chart at it.