Skip to main content

Grow your business with Salesforce Starter

Deepen customer relationships with sales, service, and marketing in one app.

Start your free 30-day trial
Time Estimate

Filter Your Reports

Follow Along with Trail Together

Want to follow along with an expert as you work through this step? Take a look at this video, part of the Trail Together series.

(This clip starts at the 22:36 minute mark, in case you want to rewind and watch the beginning of the step again.)

Note

Accessibility

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

Open Trailhead screen reader instructions.

Use Report Filters

You can add up to 20 additional filters to a report directly in the Filters pane using the Add button or by dragging in fields from the Preview pane. In addition, you can also use filter logic using “and,” “or,” and “not” operators. Let’s meet the needs of your next stakeholder, the VP of Marketing, to see how filters and filter logic work.

He would like to see a list of all customer accounts based in Texas, North Carolina, Illinois, and New York that have either a rating of Hot or Warm or an annual revenue of $2 million and up.

Create a new account report.

  1. Click Reports.
  2. Click New Report.
  3. Under Recently Used on the left, click All.
  4. In Search Report Types, enter Accounts and select Accounts.
  5. Click Start Report.
  6. Ensure Update Preview Automatically is enabled in the upper-right of the Report Builder.
  7. Click the Filters pane.
  8. Click Show Me and select All accounts, then click Apply.
  9. Click Created Date, select All Time from the Range picklist, then click Apply.
  10. Click the Outline pane and select the next to the following fields to remove these columns from the report:
    - Last Activity
    - Last Modified Date
  11. Click the Fields pane to expand the list of fields.
    Filters Pane highlighted
  12. Double-click Annual Revenue to add it to the report.
  13. Click the X to close the Fields pane.
  14. Click and drag the Annual Revenue column so it is placed between the Account Name and Billing State/Province columns.

Add the necessary filters and filter logic.

  1. Click the Filters pane.
  2. Search for Type in Add filter... search box and select it.
  3. In the Operator field, select contains from the drop-down menu.
  4. Type customer in the value field.
  5. Click Apply.
    Report filter logic setup
  6. Repeat steps 2-5 above to create the following three additional filters:
    1. Field: Billing State/Province - Operator: equals - Value: TX,NC,IL,NY
    2. Field: Rating - Operator: equals - Value: Hot, Warm
    3. Field: Annual Revenue - Operator: greater or equal - Value: 2000000
      Note: Annual revenue is two million (six zeros).
  7. In the Filters pane, click the arrow Down arrow icon next to Filters and click Add Filter Logic.
    Filter options
  8. In the Edit Filter Logic field, change the logic to 1 AND 2 AND (3 OR 4) and click Apply.

Save the report as Central and Eastern Target Accounts in the Marketing Reports folder:

  1. Click Save & Run, and then complete the Save Report details:
    1. For Report Name: Central and Eastern Target Accounts
    2. Click in the Report Unique Name text box to auto-populate the unique name. Don't worry, the unique name of this report isn't checked.
    3. For Report Description: Who are our important customers in the Central and Eastern states?
  2. Click Select Folder, select Marketing Reports from the Global Sales Reports folder and click Select Folder.
  3. Click Save.
    Central Eastern Target Accounts report

Use Relative Dates

Instead of filtering data by calendar dates, such as Close Date > Jan 1, 2020, filter your report by a relative date: Close Date = THIS YEAR. Yes, Salesforce will understand this value!

Our CEO is very focused on user adoption of Salesforce and wants to ensure the company is getting the most out of its user licenses. He wants a weekly report of all users who have not logged into Salesforce in the last seven days as well as when their login access is set to expire. How would you accomplish this?

Customize the Users Report Type to display users who have not logged in during the last seven days:

  1. Click Reports.
  2. Click New Report.
  3. Under Recently Used on the left, click All.
  4. In Search Report Types, enter Users and select Users.
  5. Click Start Report.
  6. Ensure Update Preview Automatically is enabled in the upper-right of the Report Builder.
  7. Click the Outline panel.
  8. In the Add column... search box, enter login access, and then select Login Access Exp. Date.
  9. Click the Filters pane.
  10. Click the Last Login Filter.
  11. Under Date, click Last Login and select Login Access Exp. Date from the dropdown list.
  12. Leave Range as All Time and click Apply.
  13. In the Add filter... search box, enter Last Login, then select Last Login.
  14. Create the filter with these details:
    • For operator, select not equal to
    • Click Use relative date and enter LAST 7 DAYS
    • Click Apply
      Relative Date Filter
  15. Click Save & Run.
  16. For Report Name, enter Users Not Logged in Last 7 Days.
  17. Click in the Report Unique Name text box to auto-populate the unique name. Don't worry, the unique name of this report isn't checked.
  18. For Report Description, enter Who hasn’t logged in the last 7 days?
  19. Click Select Folder, choose Adoption Reports from the Global Sales Reports folder, and click Select Folder.
  20. Click Save.
Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities