You are here:
Example: Multiple Cross Filters and a Subfilter
Use cross filters to filter a report by an object's child objects using both WITH and WITHOUT conditions. For example, filter a report to show accounts that have cases but don’t have activities.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
| Available in: Enhanced Folder Sharing |
| User Permissions Needed | |
|---|---|
| To add edit, or delete a cross filter in private reports: |
|
| To add edit, or delete a cross filter in private and public reports: |
|
Say you’re a salesperson who wants to see which customer accounts have unresolved escalations because you want to ensure that your support team takes care of them.
- Find Accounts with Escalated Cases and without Activities in the Lightning Experience Report Builder
-
- Edit or create a report based on the Accounts report type.
- Click
| Add Cross Filter. - From the Show Me dropdown, select Accounts.
- From the Operator dropdown, select with.
- From the Secondary Object dropdown, select Cases.
- Click Apply.
The report now shows Accounts that have Cases.
- Refine the cross filter so that the report shows Accounts that have Escalated Cases:
- Click Add Cases Filter.
- Select Status.
- Select Escalated.
- Click Apply.
Now, add another cross filter so that the report shows only Accounts without Activities.
- Click
| Add Cross Filter. - From the Show Me dropdown, select Accounts.
- From the Operator dropdown, select without.
- From the Secondary Object dropdown, select Activities.
- Click Apply.
- Click Save.
- Find Accounts with Escalated Cases and without Activities in the Salesforce Classic Report Builder
-
- Edit or create a report based on the Accounts report type.
- From the Filters pane, click Add | Cross Filter.
- From the Primary Object dropdown (left of the operator), choose Accounts.
- From the operator dropdown, choose with.
- From the Secondary Object dropdown (right of the operator), choose Cases.
- Refine the cross filter so that the report shows Accounts that have Escalated Cases:
- Click Add Cases Filter.
- From the Case Field dropdown, select Status.
- From the Operator dropdown, select equals.
- From the picklist lookup, enter or select Escalated.
- Click OK.
Now, add another cross filter so that the report shows only Accounts without Activities.
- From the Filters pane, click Add | Cross Filter.
- From the Primary Object dropdown (left of the operator), choose Accounts.
- From the operator dropdown, choose with.
- From the Secondary Object dropdown (right of the operator), choose Cases.
- Click Save.
When you run the report, it includes only customer accounts with escalated cases and without activities.

