bigQuery Google Drive Sheets multiple worksheets in one sheet - google-sheets

I have created 3 Google Cloud bigQuery tables mapping to 3 worksheets in a single Google Sheets sheet. I have named the 3 tables according to the 3 worksheet names, and I can run SQL queries against the tables.
My problem is that the results from the query always show the records in the first worksheet within the spreadsheet, not the second or third worksheet.
Is it possible to associate BigQuery tables to different worksheets of the same Google Sheets document? If not, is the only solution to have 3 separate sheet documents each with the first worksheet being the one with the records that BigQuery will query?

This is currently not supported. BigQuery can only query the first sheet. You can follow https://issuetracker.google.com/issues/35905674 if you're interested in this feature.

Related

is it possible to create a view of data from a different google sheet?

I want to build a google sheet view , I thought since the data is already available in other google sheet for different purpose, would it be possible to pick up specific data from the sheet it exist to different google sheet.
You mean sheets in single spreadsheet or different spreadsheet?
If sheets, then you can take a range using curly brackets
={sheet1!A1:C100}
If spreadsheets then you can use importrange formula
=importrange("url of the spreadsheet","sheet1!A1:C100")
Is this what you are looking for?

Two-way communication between BigQuery and Google Sheets?

Is two-way communication between BigQuery and Google Sheets possible?
In other words, if add a row or modify an entry in Google Sheets it reflects in the corresponding table in BigQuery, and vice versa (no schema changes).
You can have one-way connections in either direction, but not two-way from both.
From Google Sheets to Google BigQuery:
You can define a Sheets file as an external data source in BigQuery. This way, any updates to the sheet will be reflected back in any queries from BigQuery.
Setting this up from the command-line:
Authenticate with Google Drive scopes:
gcloud auth login --enable-gdrive-access
Get the Drive URI of your sheet.
Create the external table definition file:
bq mkdef \
--noautodetect \
--source_format=source_format \
"drive_uri" \
path_to_schema_file > /tmp/mytable_def.json
Modify the file with a text editor with any addition options.
Create the external table to query.
bq mk --external_table_definition=/tmp/mytable_def.json mydataset.mytable
Modifying an external table from BigQuery is not supported.
From BigQuery to Sheets:
Use Connected Sheets to visualize BigQuery data with Google Sheets.
Updating BigQuery data via connected sheets is not supported.
You can add rows to a google sheet and see the results reflected in BQ when you query. Additionally you can add columns to the sheet, and make the appropriate schema changes in BQ and see the resulting values.
You cannot though run DML from BigQuery that would result in additional rows being added to a google sheet.

Filter all sheets in a work book based on a checkbox (in Google Sheets)

I'm trying to figure out if it's possible to filter an entire workbook of templates based off of a checkbox. Each additional sheet in the workbook is created with formulas already. Basically, I have 5 teams. 1 team encompasses all of the others, the other 4 are individual teams. I'm trying to create a process where by clicking the checkbox, all other sheets will filter to only show that team.

How to import data form one spreadsheet into another Google Sheets?

I am trying to connect 2 Google sheets (a Check-in and a Check-out Google sheet) to feed data off a management sheet. I don't know what formula or function to use to connect the 2 sheets to feed off the management sheet.
you can use IMPORTRANGE:
=IMPORTRANGE("URL of spreadsheet", "Sheet name!A1:D")
note: it will first prompt you to allow access

Import Data from Big Query to Google Sheets automatically?

I have a table in Big Query that is coming from Data Prep after some processing. Now I need to get this data to google sheets. I am currently importing the data from Big Query to Google Sheets using the "OWOX BI Big Query Reports" connector.It works fine till I have to refresh it again. All the new columns that I create in Google Sheets after importing the data get removed every time I refresh the data using the connector mentioned above.Is there a better way to fetch data from Big query without disrupting the created columns?
You are using Google Sheets wrong. Don't modify to sheet BQ creates, instead reuse the data in other sheet with IMPORTRANGE function, this way you create a copy of the data and columns created on this new sheet won't disappear.
https://support.google.com/docs/answer/3093340

Resources