You can sort and filter billions of rows of BigQuery data in Google Sheets so it's easier to work with.
Important: To access BigQuery data in Google Sheets, you need access to BigQuery. Learn how to get started with BigQuery.
Sort & filter the preview tab
Sort your data
- On your computer, open a spreadsheet in Google Sheets that is connected to BigQuery data. Learn how to connect to BigQuery data.
- At the top of a column, click Filter
.
- Choose whether you would like that column sorted in ascending or descending order. This sorts both text and numbers.
- Click Ok.
- At the bottom left of the sheet, click Apply.
Add a filter by condition
- On your computer, open a spreadsheet in Google Sheets that's connected to BigQuery data.
- At the top of a column, click Filter
.
- Under “Filter by condition,” click the Drop-down
and choose your condition.
- Click Ok.
- At the bottom left of the sheet, click Apply.
Add a filter by value
- On your computer, open a spreadsheet in Google Sheets that’s connected to BigQuery data.
- At the top of a column, click Filter
.
- Under “Filter by value,” click Add filter.
- Tip: BigQuery grabs the top 500 values, which may take a few seconds.
- When the values and their frequencies load in the sidebar, check the values that you want to use.
- Click OK.
- At the bottom left of the sheet, click Apply.
You can also filter by selected cell value:
- On your computer, open a spreadsheet in Google Sheets that’s connected to BigQuery data.
- Right-click on a cell value that you want to filter.
- Click Filter by cell value.
- At the bottom left of the sheet, click Apply.
Tip: You can also filter by selected cell value on an extract.