Answers from BigQuery without writing SQL with Gemini

The struggle: Your product data sits in BigQuery, and every simple question waits days in the data team's queue.

What you end up with: Charts and pivot tables that stay connected to BigQuery, built from plain questions and checked with your data team.

Connected Sheets links a sheet to BigQuery, and Gemini in Sheets can answer plain questions with read-only queries. You check each answer with someone who knows the data.

Tools: Gemini. Level: Team. Time: 1 hour.

Use it if

  • You have BigQuery access and a project with billing
  • You ask simple counting and grouping questions
  • A data person can check the first results

Skip it if

  • You need numbers that go into finance or board reporting without review
  • You do not have BigQuery access

What you need first

  • Gemini in Sheets on an eligible Google AI plan or Google Workspace plan
  • BigQuery access and a Google Cloud billing project, set up by your admin or data team

The method

  1. Connect the data (Gemini: Google Sheets)

    Ask your data team which dataset or table to use. In Sheets connect it as a BigQuery data source, then open Gemini in the side panel. Use a copy of the sheet.

    You get: A sheet connected to the table.

    Tip: Ask for a view with only the columns you need.

  2. Ask a plain question (Gemini: Gemini in Sheets)

    Type your question and name the fields and the dates. Gemini runs read-only queries on your connected BigQuery data.

    Prompt to copy:

    Using the connected BigQuery data, show [metric] by [grouping] for [date range]. Define [term] as [definition]. If a field you need is missing or ambiguous, tell me which instead of guessing.

    You get: A first answer or chart.

    Tip: Say what counts as an active user or order, in words.

  3. Make a pivot table or chart (Gemini: Gemini in Sheets)

    Ask for a pivot table or chart from the answer. Charts from BigQuery data refresh, but check that the filters are still right.

    Prompt to copy:

    Create a pivot table of [metric] by [grouping] from the connected data and a chart of it. List every filter and definition you used.

    You get: A table or chart tied to the source.

    Tip: Ask Gemini to list the filters it used.

  4. Check the answer with the data team (Gemini: Chat)

    Send your question, the filters and the result to a person who knows the data and ask them to compare it with a query they trust.

    Prompt to copy:

    Write a short message to the data team: my question is [question]; Gemini in Sheets gave [result] using [filters]. Ask them to confirm it against their own query and to tell me if my definition is wrong.

    You get: A confirmed answer.

    Tip: Start with one number you already know.

  5. Share the result (Gemini: Google Sheets)

    Share the sheet only with people who have access to the data. Viewers without BigQuery permission see saved results but cannot refresh.

    You get: A checked sheet others can read.

    Tip: Write the question and definition at the top.

Where this goes wrong

  • Check every result with the data team before it goes into a decision.
  • Viewers without BigQuery access cannot run new queries or refresh.
  • Use only data you have the right to use, and keep personal data out of the sheet.
  • Gemini runs read-only queries, but your Google Cloud billing project is charged for them, so ask your admin about costs first.

Sources

More like this

Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.