Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Visualize Your Data with the Lightning Dashboard Builder

Learning Objectives

After completing this unit, you'll be able to:

  • Explain the difference between report charts and dashboards.
  • Create a dashboard and underlying report.
Note

Accessibility

This unit requires some additional instructions for screen reader users. To access a detailed screen reader version of this unit, click the link below:

Open Trailhead screen reader instructions.

Create Dashboards

Employees at Ursa Major Solar rely on great reports to help them make decisions and take action, like who to call today. But sometimes they need to see the significant picture. Enter the dashboard, unmatched in its ability to summarize and display Salesforce data in a graphical layout.

Salesforce dashboards present multiple reports side-by-side using dashboard widgets on a single dashboard page layout. Dashboard widgets come in various chart types, tables, metrics, and gauges, and you can customize how data is grouped, summarized, and displayed for each widget. The dashboard builder is an intuitive interface for building dashboards from source reports you’ve created in Salesforce.

In addition to dashboards, you also have options to add charts to reports and record page layouts. Read on to learn how to visualize data with report charts and dashboard widgets.

Dashboard Builder

Dashboard builder is your way to visualize your data for easy consumption at-a-glance. Launch the dashboard builder from the Dashboards tab by clicking New Dashboard. Enter a name for your dashboard, and click Create.

Insert a widget onto your dashboard by clicking + Widget, or add a filter by clicking + Filter[1]. When prompted, select the type of content for your new widget, or a field and criteria for a filter. Each widget shows rich text, an image, or data from one report. After you’ve added a widget, click it to resize it, delete it, or change its data-supplying source report ( Edit pencil) [2]. Position your widgets by dragging them [3]. A responsive grid layout supports widgets of different sizes in diverse arrangements [4].

Dashboard editor

When selecting the widget type, consider the following.

Widget Type

When to Use It

horizontal bar chartvertical bar chartstacked horiztonal bar chartstacked horizontal bar chartline chartdonut chartfunnel chartscatter chart

Use a chart when you want to show data graphically. You can choose from various chart types.

gauge

Use a gauge when you have a single value that you want to show within a range of custom values.

metric

Use a metric when you have one key value to display.

Lightning tablelegacy table

Use a table to show a set of report data in column form.

Finally, when selecting a source report for use in a dashboard widget, keep in mind that you can’t choose joined reports or historical trend reports.

Create a Dashboard

Roberto mentioned Maria on Chatter to ask for a comprehensive overview of Ursa Major Solar’s sales pipeline. Let’s help Maria create a dashboard for Roberto. First, you’ll create the source report you use in the dashboard. Let’s make a simple Leads report.

  1. Click the Reports tab, click New Report and select Leads as the report type. Click Start Report.
  2. Click Filters and edit these standard filters:
    • For the Show Me standard filter, select All Leads. Click Apply.
    • For the Date Field standard filter, select Create Date. For Range, select All Time. Click Apply.
  1. Click Outline and group rows by Lead Source. From the Add group lookup, select Lead Source.
  2. Ensure that these columns are included in your report: Lead Owner, First Name, Last Name, Title, Company/Account, Rating, Street, Email.
  3. Click Save, name your report Leads by Lead Source, and accept the auto-generated unique name. Click Save.
  4. Click Run. The report should look something like this: 

Leads by source report

Note

Depending on which org you’re using to practice these steps, you may or may not see data in your report at runtime.

Now that your report is created, let’s visualize it using a dashboard widget.

  1. From the Dashboards tab, click New Dashboard.
  2. Name your dashboard Leads Dashboard and, optionally, enter a description.
  3. Click Create.
  4. To insert a widget, click + Widget.
  5. Choose Chart or Table.
  6. From Select Report, choose the Leads report you created earlier, Leads by Lead Source, and click Select. From Add Component, select the donut chart. 

Adding a dashboard component

  1. Confirm that your widget is titled Leads by Lead Source.
  2. Optionally give your widget a subtitle and footer.
  3. Click Add. Your new widget appears on the dashboard.
  4. Optionally, resize your dashboard widget by clicking it, then dragging the corners and sides.
  5. Click Save and then click Done. Your dashboard should look something like this. 

Leads dashboard example

Great job! You just built a simple report and dashboard for visualizing leads by source.

Use Dynamic Dashboards

With dynamic dashboards, each user sees the data they have access to without needing to create separate dashboards for each user.

This means a single powerful dashboard can be used for multiple users in your company, because the logged-in user viewing the dashboard sees the data they should see, based on their security and sharing settings.

Let's look at an example over at Ursa Major Solar. Say that the sales team consists of one vice president, four sales managers, and 40 sales reps—ten reps per manager. Maria needs to create dashboards that display the following metrics, restricted by role and hierarchy:

Role

Total Bookings

Close Rates by Competitor

Number of Activities by Meeting Type

Sales Rep

Check icon indicating true

Check icon indicating true

Sales Manager

Check icon indicating true

Check icon indicating true

VP of Sales

Check icon indicating true

Check icon indicating true

Sales reps should only see their own data; managers should only see data for the reps they manage; and the VP should see data across the entire team. In this scenario, Maria typically would have to create 45 different dashboards—one for every single person. She’d also have to create multiple folders to manage access rights.

With dynamic dashboards, Maria can create just two dashboards and store them in a single folder. All she needs is a:

  • Dynamic dashboard for sales reps with the following widgets:
    • A gauge of total bookings
    • A table of activities by meeting type
  • Dynamic dashboard for managers and the VP with the following widgets:
    • A gauge of total bookings
    • A column chart of close rates by competitor

All users see only data that they can access. Sales reps see their own bookings and activities. Managers see bookings and close rates for the reps they manage. The VP sees bookings and close rates for the whole team. Because the metrics are the same for managers and the VP, you can use the same dynamic dashboard for both roles. The dynamic dashboards feature reduces the number of required dashboards from 45 to two!

Managers with the “View My Team's Dashboards” or “View All Data” permission can set an option to preview the dashboard from the point of view of users under them in the role hierarchy.

Note

You can’t save a dynamic dashboard in a private folder.

Set up a Dynamic Dashboard

  1. To store the dynamic dashboard and corresponding source reports, create a dashboard folder and a report folder from the Dashboards, Reports, or Analytics tabs. Share these folders with the intended audience.
  2. On the Analytics or Dashboards tab, create a dashboard or edit an existing one.
  3. Open the properties menu by clicking Edit Dashboard Properties.
  4. Under View Dashboard As, select The dashboard viewer.
  5. To let users change the dashboard’s running user, select Let dashboard viewers choose whom they view the dashboard as.
  6. From the Properties window, click Save. Then, from the Dashboard Builder, click Save again.

When people open your dashboard, they see data as the person that you specified.

Report Charts

If you don’t want to create a dashboard, but just want to add a chart to your report, then report charts may be right for you. Report charts allow you to place a single chart right at the top of your report, so that when you view the report, you can see the chart and the report results in one view.

Here’s how you add a report chart:

  1. From the Reports tab, open the report you made earlier, Leads by Lead Source.
  2. A chart may already appear at the top of your report. If not, click the add chart button Add Chart button. You can show or hide the chart at any time by clicking the icon Chart button.

Presto! Your report now has a chart.

Conclusion

Now that you know the basics of reports and dashboards, you can start exploring and visualizing the data that’s most helpful to your business. To get more practice applying what you’ve learned, complete the Create Reports and Dashboards for Sales and Marketing Managers module. Or to learn about advanced visualization and business analytics in Salesforce, complete the Discover CRM Analytics trail and the CRM Analytics Basics module. The sky’s the limit!

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback