You are here:
Example: Use WITH in Cross Filters
Use cross filters to filter a report by an object's child objects using WITH conditions. For example, filter a report to show just accounts with cases.
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: |
|
Let's say a recent campaign in California won you many new customers. You want to ensure that their customer cases get resolved quickly. You can create a report to see which of those accounts currently have cases.
- Find Accounts with Cases in the Lightning Experience Report Builder
-
- Edit or create a report based on the Accounts report type.
- Create a filter where Billing State/Province equals CA and click
OK.
Now your report shows all accounts in California. To see Californian accounts with cases, let’s add a cross filter: Accounts with Cases.
- 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.
- Click Save.
- Find Accounts with Cases in the Salesforce Classic Report Builder
-
- Edit or create a report based on the Accounts report type.
- Create a field filter where Billing State/Province equals CA and
click OK.
Now your report shows all accounts in California. To see Californian accounts with cases, let’s add a cross filter: Accounts with Cases.
- 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 OK.
- Click Save.

