Querying a Google Spreadsheets Data Source

Querying a Google Spreadsheets Data Source

To load your spreadsheet in Redash share your it with your ServiceAccount’s email (it can be found in the credentials json file, for example 43242343247-fjdfakljr3r2@developer.gserviceaccount.com).

Create a Service Account

  1. Open the Service accounts page. If prompted, select a project.
  2. Click Create service account.
  3. In the Create service account window, type a name for the service account, and select Furnish a new private key. When prompted, select JSON key file type. Then click Create.

The query format is “DOC_UUID|SHEET_NUM” (for example “kjsdfhkjh4rsEFSDFEWR232jkddsfh|0”) - this will be the equivalent of SELECT * FROM db type of query and will show you the entire table.

To apply some manipulation on top of that data, you can do one two options:

  1. Use the "Query Results" data source and your query id as a table (SELECT ..... FROM query_123), then you'll need to query it with SQLite syntax. Read more about query results as data sources here.
  2. Create a new Google BigQuery table using the Google Spreadsheet in question as a source, and then use Redash’s BigQuery connector to query the spreadsheet indirectly. This way, the SQL used to query the spreadsheet (via BigQuery table) is far more flexible than the direct query of the type (“kjsdfhkjh4rsEFSDFEWR232jkddsfh|0”) mentioned above. (BigQuery integrates with Google Drive). \

results for ""

    powered by

    No results matching ""