Filters and sorting help you focus on the data that matters. Build powerful queries to find records quickly and organize them logically.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/twentyhq/twenty/llms.txt
Use this file to discover all available pages before exploring further.
Understanding Filters
Filters limit which records appear in a view based on conditions you set:Creating Filters
Filter Operators
Different field types support different operators:Text Field Operators
- Equals
- Contains
- Starts with
- Ends with
- Is empty
- Is not empty
Exact match (case-sensitive).Shows records where Status is exactly “Active”.
Number Field Operators
| Operator | Example | Matches |
|---|---|---|
| Equals | Value = 1000 | Exactly 1000 |
| Not equals | Value ≠ 0 | Any non-zero value |
| Greater than | Value > 5000 | 5001, 10000, etc. |
| Greater than or equal | Value ≥ 5000 | 5000, 5001, etc. |
| Less than | Value < 1000 | 0, 999, etc. |
| Less than or equal | Value ≤ 1000 | 0, 999, 1000 |
| Between | Value between 100 and 500 | 100-500 inclusive |
| Is empty | Value is empty | No value set |
| Is not empty | Value is not empty | Has any number |
Date Field Operators
Exact Dates
Exact Dates
Match specific dates:
Date Ranges
Date Ranges
Compare dates:
Relative Dates
Relative Dates
Filter by dynamic time periods:Today/Yesterday/Tomorrow:This Week/Month/Year:Last/Next Periods:Past/Future:
Empty/Not Empty
Empty/Not Empty
Check if date is set:
Relative date filters update automatically. “Due Date is today” always shows today’s tasks.
Select Field Operators
Boolean Field Operators
Relation Field Operators
Combining Filters
Use multiple filters together to build complex queries.AND Logic
All conditions must be true:OR Logic
Any condition can be true:Mixed Logic
Combine AND and OR with groups:Creating Filter Groups
Filter Examples
Example 1: My Open High-Value Opportunities
Example 2: Overdue Tasks for My Team
Example 3: Tech Companies Added Recently
Example 4: Projects Without Deadlines
Sorting
Control the order records appear in views.Adding Sort
Sort Examples
Alphabetical:Multi-Level Sorting
Sort by multiple fields:Sort Direction
Ascending (↑):- Text: A → Z
- Numbers: 0 → 9
- Dates: Oldest → Newest
- Boolean: False → True
- Text: Z → A
- Numbers: 9 → 0
- Dates: Newest → Oldest
- Boolean: True → False
Null Values
Empty fields appear:- Ascending: At the end
- Descending: At the end
Saving Views with Filters and Sorting
Save your filter and sort configuration:
The view saves your filters, sorting, columns, and other settings.
Quick Filters
Temporary filters without changing the view:- Click the filter icon in a column header
- Choose operator and value
- Filter applies immediately
- Click X to remove
Filter Performance
Fast Filters
These filter types perform well even with many records:- Select field equality (Status = “Active”)
- Boolean checks (Is Active = true)
- Relation equality (Owner = Me)
- Simple date comparisons
Slower Filters
Use these sparingly on large datasets:- Text “contains” searches
- Relation field properties (Company.Industry = “Tech”)
- Complex multi-level OR groups
- JSON field queries
Best Practices
Create focused views
Create focused views
Instead of one view with changing filters:
- Create separate views for common filters
- Name them descriptively
- Share with relevant team members
Use relative dates
Use relative dates
Prefer dynamic date filters:✅ Good:❌ Avoid:Relative filters stay relevant without updates.
Combine filters efficiently
Combine filters efficiently
Structure filter groups logically:✅ Efficient:❌ Inefficient:Both work, but the first is cleaner and faster.
Sort meaningfully
Sort meaningfully
Choose sort orders that help your workflow:
- Tasks: Due date (soonest first), then priority
- Leads: Score (highest first), then created date
- Deals: Stage (pipeline order), then value
- Projects: Status, then deadline
Test complex filters
Test complex filters
When building multi-condition filters:
- Start with one condition
- Verify it works
- Add another
- Check results
- Continue building
Troubleshooting Filters
No Results Showing
Possible causes:- Filters are too restrictive
- No records match all conditions
- Date filter using wrong format
Unexpected Results
Possible causes:- AND/OR logic not structured correctly
- Filter groups need parentheses
- Field values are empty
Slow Performance
Possible causes:- Too many text “contains” filters
- Complex relation filters
- Large dataset
Next Steps
Table Views
Apply filters in table format
Kanban Views
Filter kanban boards by stage
Workflow Automation
Create workflows triggered by filter conditions
