# How do Cross Filters refine report output by evaluating the existence of related child records?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Cross Filters, Report Filtering

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-cross-filters-refine-report-output-by-evaluating-the-existence-of-related-child-records

## Answer

**Basics:** Standard filters test fields on the report's own records. Cross filters test other objects related to them, so you can ask "which accounts have open cases?" or "which contacts have no activity?" without building a custom report type.

**How it works:**
1. In Report Builder, open Filters > Add > Cross Filter.
2. Choose With or Without and the related object (shown from the report type's relationships, for example Opportunities).
3. Optionally add sub-filters on that related object (Stage = Closed Won).
4. Run; only the primary-object records meeting the existence test are returned.

**Advanced / deep dive:** A cross filter is evaluated as a semi-join (With) or anti-join (Without), so the child's fields don't appear in the report columns, which is its trade-off compared with a custom report type that includes the child. Use cross filters for existence questions; use a report type "with or without" to display child details. You can add up to three cross filters per report, each with up to five sub-filters. Cross filters combine with standard filters using AND; they are not part of custom filter logic expressions. They are useful for data cleanup (accounts without contacts), win/loss analysis (accounts with Closed Lost opportunities but no Closed Won), and compliance checks.

**Code / config example:**
```text
Report type: Accounts
Filters: Account Type = Customer
Cross filter: Accounts WITHOUT Opportunities
   Sub-filter: Close Date = LAST 12 MONTHS
Result: customers with no opportunity in the last year
```

**Hidden gotchas & must-remember points:**
- Maximum three cross filters per report and five sub-filters each.
- Available related objects depend on the report type and object relationships, so a missing object means pick a different primary object.
- You cannot show child columns; you only filter on existence.
- Cross filters combine only with AND logic.
- "Without" with sub-filters means "has none matching those criteria", not "has none at all"; wording errors give wrong counts.
- They respect the running user's sharing, so a user lacking access to some child records can see different results.
- Performance can drop on very large objects with broad filters; add selective standard filters first.

**Best practice:** Use a cross filter for existence checks and a custom report type when you need the child's fields displayed.

---
Source: ForceChallenges · last updated 2026-11-02
