Loading
Salesforce now sends email only from verified domains. Read More
Analyze Your Data
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Filter Reports Using Field Comparisons with Field-To-Field Filters

          Filter Reports Using Field Comparisons with Field-To-Field Filters

          Field-to-field filters let you filter a report by comparing the values of two different report fields. For example, see cases modified after closing date by filtering on cases with a last modified date after the closed date.

          Required Editions

          Available in: Lightning Experience
          Available in: Essentials, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
          Available in: Enhanced Folder Sharing
          User Permissions Needed
          To add or edit a filter:
          Enhanced Folder Sharing
          Create and Customize Reports

          AND

          Report Builder

          To lock or unlock filters so that users can’t edit them while viewing a report in Lightning Experience:
          Enhanced Folder Sharing
          Create and Customize Reports

          AND

          Report Builder

          To edit a filter while viewing a report in Lightning Experience: Run Reports

          Add a field-to-field filter while editing a report.

          1. From the Lightning Experience report builder, click the filters icon Filters. Then, choose a field from the Add filter... picklist.
          2. If the field you chose to filter on supports field-to-field filters, then set the Type dropdown to Field. If the field doesn’t support field-to-field filtering, then the Type dropdown doesn’t appear.
          3. Enter filter criteria.

            For help with entering filter criteria, see Filter Operators and Filter Logic.

          4. Optionally, to prevent people from editing a field filter while reading your report in Lightning Experience, check Locked.
          5. Click Save.
          6. To read your filtered report, click Run Report.

          Report data filters based on the criteria you set.

          Example
          Example Say that you want opportunities worth less than projected. You have an opportunity report with fields like Amount and Projected Amount, and State. Apply a field-to-field filter to your report that compares values between Amount and Projected Amount.
          1. Click Add filter....
          2. Select Amount.
          3. Set Operator to less than, Type to Field, and Value to Projected Amount. If necessary, clear the default Value by clicking X.
          4. Click Apply.
          5. Click Save.

          Now your report has a field-to-field filter (1) that returns opportunities worth less than projected (2).

          Report with two numbered sections showing a field-to-field filter returning opportunities worth less than projected

          Get the Most out of Field-To-Field Filters Tips, Limits, and Limitations

          As you get ready to add field-to-field filters, review these tips, limits, and limitations.

          • Each report supports up to 4 field-to-field filters.
          • Field-to-field filters only support these field types:
            • Date
            • Datetime
            • Numeric
              Note
              Note Currency fields are numeric, but if your org has enabled multiple currencies, then you can’t use currency fields (such as Amount) in field-to-field filters.
          • Field-to-field filters are unavailable in report types that:
            • Reference an external object
            • Have a "with or without" (outer join) relationship between objects
          • Field-to-field filters only compare fields of the same data type. For example, a datetime field can only be compared with another datetime.
          • Don’t use the Equals or Not Equals to filter standard date fields such as Closed Date. The field values are stored with precise date and timestamps, and comparisons of the values often yield unexpected results.
          • Joined reports don’t support field-to-field filters. To convert a report with field-to-field filters into a joined report, first remove the field-to-field filter.
          • Historical tracking reports support field-to-field filters, but the filter must be based on a history field.
          • Field-to-field filters must compare two different fields.
          • When a field-to-field filter compares a null value with a non-null value, it returns false or 0. If two null values are compared, then the filter returns true or 1.
          • Field-to-field filters aren't available in Salesforce Classic. You can't run or edit reports with field-to-field filters in Salesforce Classic.
           
          Loading
          Salesforce Help | Article