Filtering and Exporting
Once you have data in the grid -- whether from a preview or a query -- you can refine, sort, export, and share it without writing additional queries. This page covers every post-query action available in the Data View toolbar and data grid.
Table Filters
Table filters let you narrow the rows displayed in the data grid based on column values. They operate on the result set that is already loaded, giving you instant, client-side filtering.
Opening the Filter Panel
Click the filter icon in the Data View toolbar to open the filter panel. Click it again to close the panel and remove all active filters.
Applying a Filter
- Open the filter panel.
- Select the column you want to filter on from the dropdown.
- Choose an operator (e.g., equals, contains, greater than, less than).
- Enter the value to filter by.
- The data grid updates immediately to show only matching rows.
Supported Filter Operators
| Operator | Description | Example |
|---|---|---|
| Equals | Exact match on the value. | region equals "US" |
| Not equals | Excludes rows that match the value. | status not equals "cancelled" |
| Contains | Substring match (text columns). | email contains "datafi" |
| Greater than | Numeric or date comparison. | total_amount > 500 |
| Less than | Numeric or date comparison. | order_date < 2025-06-01 |
| Is empty | Matches rows where the column is null or blank. | phone is empty |
| Is not empty | Matches rows where the column has a value. | email is not empty |
Combining Filters
You can apply multiple filters simultaneously. Each additional filter narrows the result set further (logical AND). For example, filtering region equals "US" and total_amount > 1000 shows only US-based rows with amounts exceeding 1,000.
Table filters operate on the result set already in the browser. If you need server-side filtering to reduce the volume of data returned, use WHERE (DQL) or filter (PRQL) in your query instead. See Querying Data.
Column Sorting
You can sort the data grid by any column, directly from the column headers.
How to Sort
- Click a column header to sort the grid by that column in ascending order.
- Click the same header again to switch to descending order.
- Click a third time to remove the sort and return to the original order.
A small arrow icon appears in the column header to indicate the active sort direction.
Sorting Tips
- You can sort on any data type -- text, numeric, date, or boolean.
- Sorting is applied to the currently displayed result set, including any active filters.
- If you need multi-column sorting or a specific collation, use
ORDER BY(DQL) orsort(PRQL) in your query.
Exporting to CSV
When your result set is ready, you can export it to a CSV file for use in spreadsheets, BI tools, or other downstream applications.
How to Export
- Run your query or preview, and apply any desired filters and sorting.
- Click the download icon in the Data View toolbar.
- The browser downloads a
.csvfile containing the currently displayed rows, including any active filters and sort order.
Export Details
| Detail | Value |
|---|---|
| File format | CSV (comma-separated values) |
| Encoding | UTF-8 |
| Rows included | All rows in the current result set (after filters) |
| Column headers | Included as the first row |
If your query returns a large number of rows, apply filters before exporting to keep the file size manageable. For very large datasets, consider using the Datafi API for programmatic extraction.
Sharing Data Views
You can share a Data View with other users in your workspace so they can see the same datasource context, query, and results.
How to Share
- Click the share symbol in the Data View toolbar.
- In the sharing dialog, enter the email address of the user you want to share with.
- Confirm the share. The recipient receives access to the Data View.
What Gets Shared
- The datasource and schema context.
- The current query (if one has been written).
- The layout configuration.
What Does Not Get Shared
- Filter and sort settings (these are local to each user's session).
- Export history.
Policy Enforcement
Shared Data Views respect all access policies. If the recipient does not have permission to view certain columns or rows, those are automatically hidden. You do not need to worry about accidentally exposing restricted data through sharing.
To stop sharing a Data View, open the share dialog and remove the user's email address. Their access is revoked immediately.
Toolbar Reference
Here is a summary of every action available in the Data View toolbar:
| Icon | Action | Description |
|---|---|---|
| Layout toggle | Show/hide panels | Toggle the datasource panel and query panel on or off. |
| Filter icon | Open/close filters | Opens the table filter panel for client-side row filtering. |
| Download icon | Export to CSV | Downloads the current result set as a CSV file. |
| Share symbol | Share the view | Opens the sharing dialog to grant access by email. |
Next Steps
- Data Views Overview -- Return to the overview for a summary of all Data View capabilities.
- Query Examples -- Browse practical, runnable query examples for common use cases.