Skip to main content

Show metrics on records and Lightning pages

flair Reports also appear outside the report viewer, as compact widgets on Salesforce pages. The employee record includes a Metrics tab out of the box, and Salesforce Admins can add report widgets to any record, app, or home page.

Who can use this?

HR Admins, Attendance Managers, and Absence Managers in Salesforce view the Metrics tab. Salesforce Admins embed reports with the Lightning App Builder.

View an employee's Metrics tab​

The Metrics tab on an employee record shows packaged flair reports as compact widgets, filtered to that employee.

  1. In flair HR, open Employees, and select an employee.

  2. Open the Metrics tab. The tab shows these widgets:

    WidgetWhat it shows
    Employee Time BalanceThe employee's time balance as a single number.
    Worked vs Target HoursWorked hours compared with target hours, as a chart.
    Absences by CategoryThe employee's absences per absence category, as a chart.
    Absence Days Over TimeThe employee's absence days over time, as a chart.
  3. Optional: To open the full report, click Open report on a widget.

The time balance and worked-hours widgets require the HR Manager or Attendance Manager custom permission. The absence widgets require the HR Manager, Attendance Manager, or Absences Manager custom permission. Users with none of these permissions see a missing-permission message on the tab.

note

If your organization customized the Employee record page, the Metrics tab isn't added automatically. A Salesforce Admin can add it, or individual report widgets, in the Lightning App Builder.

The Metrics tab of an employee record with the time balance tile and three chart widgets

Embed a flair Report on a Lightning page​

Salesforce Admins can add a packaged flair report to a record, app, or home page as a chart, table, or single-number tile.

  1. Open the page to change, click the setup gear, and click Edit Page. The Lightning App Builder opens.
  2. From the component list, drag flair - Embedded Report onto the page.
  3. In Report, select the packaged report to show.
  4. In Display as, select CHART, TABLE, or KPI. A chart shows as a table when the report has no chart configured.
  5. Optional: In Title, enter a title. Leave it blank to use the report's own title.
  6. In Period, select CURRENT_YEAR, LAST_12_MONTHS, or CURRENT_MONTH. The period applies only to reports with a period dimension.
  7. Click Save, and activate the page if Salesforce prompts you to.

On a record page, the widget shows only the report rows that belong to that record, such as one employee's data on an employee record. A report that can't be tied to the record shows This report can't be scoped to this record instead of data.

warning

Scoping a widget to the page record only filters the report for relevance. It doesn't grant or restrict access: the widget runs the report as the viewer, so each viewer sees only the data their own Salesforce access allows.

Lightning App Builder with a flair - Embedded Report component selected and its Report, Display as, Title, and Period properties