A Greenwolf Tech Labs site · Run by its founder, Harsh Khubchandanigreenwolftechlabs.com ↗

BigQuery guide

BigQuery billing export in Data Studio: a Google Cloud cost dashboard finance can trust

A BigQuery billing export in Data Studio is the standard way to see Google Cloud spend by project, service, SKU and team: Cloud Billing writes your usage and cost data into BigQuery, and a Data Studio report reads it. This guide is for engineering leads, FinOps owners and finance teams who switched the export on, opened a template, and found that the totals do not match the invoice or that half the cost sits under no team. I cover which export tables to use, the setup traps, how to net credits, how to allocate cost with labels, and what the dashboard itself costs to run.

Analytics screens showing a Google Cloud cost dashboard built in Data Studio on the BigQuery billing export

Quick answer

How do I show Google Cloud billing data from BigQuery in Data Studio?

Enable the Cloud Billing export to BigQuery for standard and, ideally, detailed usage cost data in a multi-region dataset. Build a scheduled query that sums cost plus credits by invoice month, project, service and label into a small summary table, then connect Data Studio to that table with the native BigQuery connector.

  • Google bills you for the export only through normal BigQuery storage and query usage.
  • Multi-region datasets get the current and previous month backfilled; regional datasets start from the enable date.
  • Totals match the invoice only when you add credits to cost and group by invoice month.
  • Unlabelled spend is the first number a cost dashboard should show, not the last.
01

What is the BigQuery billing export, and which table should Data Studio read?

The BigQuery billing export is a Cloud Billing feature that copies your Google Cloud usage, cost, credit and pricing data into tables in a BigQuery dataset you choose. Data Studio then reads those tables like any other BigQuery source. Google's billing documentation now lists five export types, and picking the right one decides what the dashboard can answer.

For most cost dashboards, the standard usage cost table is the core and the detailed table is the upgrade. Standard gives you cost by project, service, SKU, location and label at hourly usage windows. Detailed adds resource-level rows, which is what lets you say which VM, bucket or cluster drove a spike. The pricing table is useful when you want to compare your contract prices with list prices, and the CUD metadata table helps explain committed use discounts.

The newer FOCUS table follows the FinOps Open Cost and Usage Specification, a vendor-neutral billing schema. Google lists it in Preview, in a separate immutable dataset, and says the data is subject to a 2-year Time To Live policy. That retention makes it a poor single source for multi-year trend reporting, but it is handy if you already report AWS or Azure cost in the same format.

Export tableName pattern (from Google's docs)What it addsUse it in Data Studio for
Standard usage costgcp_billing_export_v1_<BILLING_ACCOUNT_ID>Cost, credits, project, service, SKU, labels, invoice monthMonthly spend, trends, cost by project and team
Detailed usage costgcp_billing_export_resource_v1_<BILLING_ACCOUNT_ID>Everything in standard plus resource-level rowsFinding the specific resource behind a spike
Pricingcloud_pricing_exportSKU prices, including contract pricingList vs contract price comparisons
CUD metadata (Preview)cud_subscriptions_exportCommitted use discount subscriptionsCommitment coverage and utilisation views
FOCUS usage cost (Preview)gcp_billing_export_focus_<BILLING_ACCOUNT_ID>FinOps FOCUS schema, 2-year TTLMulti-cloud reports in one schema
02

How do you set up the Cloud Billing export to BigQuery?

Setup takes minutes, but three decisions made on the way are hard or impossible to undo, so treat it as a short design exercise rather than a toggle.

First, location. Google's setup guide recommends a multi-region dataset (US or EU) and notes that a dataset's location cannot be changed after creation. It also matters for history: for standard and detailed exports into a multi-region dataset, Google adds billing data retroactively for the current and previous month, which can take up to five days. A regional dataset gets no retroactive data at all, only data from the day you enable it.

Second, ownership. Put the dataset in a company-owned project with billing on a company account, and keep it separate from production workloads so a project clean-up never deletes your cost history. Third, leave the tables alone. Google's documentation is blunt: do not modify the export tables or insert data into them, because doing so can stop the export. Build everything you need as views or scheduled queries in a separate reporting dataset.

  • Roles for usage cost data: Billing Account Costs Manager or Billing Account Administrator on the billing account, plus BigQuery User on the project.
  • Roles for pricing and CUD metadata: Billing Account Administrator, BigQuery Admin, and the resourcemanager.projects.update permission.
  • Create a dedicated dataset in a multi-region location before enabling the export.
  • Enable standard and detailed usage cost exports on day one; history you skip now is not backfilled later.
  • Enable the pricing export if you have negotiated pricing; Google says it can take up to 48 hours to appear and is not added retroactively.
  • Wait a few hours for the first rows, then compare one full day against the Billing reports page in the console.
03

Should you use Google's billing template or build a custom GCP billing dashboard?

Start with Google's template if you want a general picture this week. Google's billing documentation describes a Billing usage and cost insights dashboard that you set up from Cloud Shell with Terraform or Python: the script creates BigQuery views over your export, copies the dashboard template and connects the copy to those views. Google's pages still describe it under the Looker Studio name, but it opens in Data Studio today.

Build a custom dashboard when the template's questions are not your questions. Templates report cost by Google's dimensions (project, service, SKU). Finance and engineering leaders usually ask by their own dimensions: product line, customer, environment, cost centre, or unit cost such as spend per thousand orders. Those answers need your labels, your mapping tables and sometimes your own business data joined in, which a template cannot know about.

A sensible path for many teams is both: run the template as a sanity check, and build the custom report for the monthly review.

QuestionGoogle's templateCustom Data Studio report
How much did we spend by project and service?YesYes
Does the total match this month's invoice?Depends on view logic; check itBuilt to reconcile, with a variance check
What did each team or product cost?Only if labels are already cleanYes, with a label mapping table and an unallocated bucket
What is our cost per customer or per order?NoYes, by joining business volumes in BigQuery
Who can see what?Whoever has the report and BigQuery accessDesigned around owner's credentials and finance-only pages
Effort to startA scripted setup from Cloud ShellDays, depending on label quality and scope
04

Why doesn't my Data Studio billing report match the Google Cloud invoice?

Almost always because the report sums the cost column and stops there. In the export, cost is the gross charge; discounts arrive separately as negative amounts in the repeated credits field. Google's schema lists nine credit types, including SUSTAINED_USAGE_DISCOUNT, COMMITTED_USAGE_DISCOUNT, FREE_TIER, PROMOTION and DISCOUNT. A report that ignores them overstates spend, sometimes by a lot for teams with commitments or startup credits.

The fix belongs in SQL, not in a Data Studio calculated field, because credits are a nested array. In the summary query, compute net cost as SUM(cost) plus the sum of credit amounts unnested from the credits field (wrapped in IFNULL so rows without credits count as zero). Keep gross cost and each major credit type as separate columns too, so the report can show where savings came from.

The second cause is the date. Usage is stamped with usage_start_time, but Google can report usage late, and its documentation says to use invoice.month when you want totals that line up with an invoice. I build two date views into every billing dashboard: usage date for operational trends, and invoice month for finance. The page title says which one the reader is looking at.

The third cause is cost_type. Rows can be regular, tax, adjustment or rounding error. An engineering view usually wants regular usage only, while a finance view must include tax and adjustments to reach the invoice figure. Currency is the last trap: cost is in the billing account's currency, and Google's schema notes that dividing cost by currency_conversion_rate gives US dollars.

  • Net cost = cost + credits; never report cost alone as spend.
  • Group by invoice.month for finance totals, by usage date for trends.
  • Filter cost_type deliberately and label the page accordingly.
  • Keep one currency per chart; convert with currency_conversion_rate if accounts differ.
  • Add a reconciliation table: invoice month, report total, invoice total, variance.
05

How do you show Google Cloud cost by team or product with labels?

Labels are how a cost dashboard turns Google's project and SKU view into your organisation's view. The export carries three kinds: labels on the resource, project.labels on the project, and system_labels that Google applies itself. Resource labels are the most precise and the least consistent; project labels are coarse but usually more reliable.

In practice, labels are messy. The same team appears as team:data, team:Data and owner:data-eng, and plenty of spend has no label at all. I handle that with a small mapping table in BigQuery (or a Google Sheet joined in BigQuery) that maps every raw label value to a clean team, product and environment, with a fallback to the project label and then to an explicit Unallocated bucket.

Put Unallocated on the first page, with its trend. It is the number that tells you whether the allocation is believable, and showing it is the fastest way to get engineers to fix their labels. Shared costs such as networking, support fees and BigQuery itself need a written rule (split by usage, by headcount, or left central), agreed with finance before the dashboard goes live.

06

What does a GCP cost dashboard in Data Studio cost to run?

Usually very little, if the report reads a summary table. Google states that you incur normal BigQuery storage and query charges when you store and analyse billing data, and Google Cloud's free tier currently includes 1 TiB of querying and 10 GiB of storage per month. Beyond the free tier, on-demand queries cost $6.25 per TiB according to BigQuery's pricing page.

The risk is the dashboard querying the raw detailed table. Take an illustrative case: a company whose detailed export has grown to 40 GB, and a report page of 10 charts that each scan about 8 GB of it because they read labels and resource names over a year of data. One uncached page load scans about 80 GB, and a dozen uncached loads use up the whole free terabyte for the month. After that, a busy review week can add real cost to a report built to cut cost.

The same page built on a daily summary table (one row per day, invoice month, project, service, team and environment) scans megabytes per chart. Three settings keep it that way: a scheduled query that rebuilds the last few days each run so late rows are picked up, owner's credentials on the data source so finance viewers need no BigQuery access, and a data freshness setting that matches how often the summary table actually changes.

Cost lineGoogle's published terms (November 2026)How to keep it small
Billing exportNo separate fee; BigQuery usage appliesOne dataset, one billing account per export
BigQuery storageFirst 10 GiB a month freeKeep raw export; drop unused intermediate tables
BigQuery queriesFirst 1 TiB a month free, then $6.25 per TiB on demandPoint Data Studio at a summary table, not the raw export
Data StudioFree; Data Studio Pro is $9 per user per project per monthPro only if you need team workspaces or hourly scheduling
07

What should a Google Cloud billing dashboard show?

A good cost dashboard answers the questions people ask in the monthly review, in the order they ask them. This is the page structure I start from and then adapt to the business.

  • Overview: month-to-date net cost, forecast to month end, last month, and the invoice reconciliation check.
  • Trend: daily net cost with a 7-day average, split by service, so spikes are visible the morning after.
  • Allocation: cost by team, product and environment, with Unallocated shown as its own bar.
  • Drivers: top SKUs and, from the detailed export, top resources by cost change against the previous period.
  • Savings: credits by type, so the value of commitments and discounts is visible to finance.
  • Unit cost: spend per order, per customer or per thousand requests, where business volumes are available in BigQuery.
  • Delivery: a scheduled email of the overview page to finance and engineering leads after each month closes.
08

What are the common mistakes with BigQuery billing dashboards?

Most failed billing dashboards fail quietly: the charts look fine, and the numbers are wrong or slow. These are the problems I see most often when I am asked to fix one.

  • Enabling only the standard export, then needing resource-level detail months later that can never be backfilled.
  • Choosing a regional dataset and losing the retroactive current and previous month.
  • Summing cost without credits, so the dashboard and the invoice never agree.
  • Using usage date for finance totals instead of invoice.month.
  • Adding columns or views inside the export dataset, which Google warns can stop the export.
  • Hard-coding column names that break when Google changes the export schema, which its docs say can happen.
  • Connecting Data Studio straight to the raw detailed table with viewer's credentials, which both costs more and forces every reader to have BigQuery access.
  • Hiding unlabelled spend in an Other slice, so nobody fixes it.
09

When should you hire a Data Studio consultant for cloud cost reporting, and when not?

Do it yourself if one person needs a rough picture of spend by project. Turn on the standard and detailed exports in a multi-region dataset today, run Google's template, and you are done. Even if a bigger build comes later, the export history starts accumulating now.

Bring in help when the report has to stand up in a finance meeting: totals reconciled to the invoice, credits shown correctly, cost allocated by team with a clean label map, unit costs joined from business data, and a report that stays cheap to run as usage grows. That is SQL modelling and report design work, and its mistakes only show when someone compares the dashboard with the invoice.

When I take on a Google Cloud cost dashboard, I start with a free review of your billing export, labels and the questions your leadership asks, then quote a fixed price. The datasets, scheduled queries and Data Studio reports live in your own Google Cloud and Data Studio accounts from the first day, so nothing depends on my access. Projects I've led at Greenwolf Tech Labs include CFO dashboards that put cash, revenue, spend and margin in one view, and cloud spend is often a line in that view.

Book a free review

Two lines about the report you need is enough.

You get a reply from me at harsh@greenwolftechlabs.com, usually within one business day. No mailing lists.

FAQ

Frequently asked questions

Is the Google Cloud billing export to BigQuery free?

There is no separate fee for the export. Google says you incur normal BigQuery charges for storing and querying the data, and the free tier covers 10 GiB of storage and 1 TiB of queries a month. A report that reads a small summary table rather than the raw export keeps query charges low.

Can I get historical billing data into BigQuery?

Only partly. For standard and detailed exports into a multi-region dataset, Google backfills the current and previous month. Regional datasets and the pricing export start from the day you enable them, and re-enabled exports are not backfilled, so switch the export on as early as possible.

Why is my BigQuery billing total higher than my invoice?

Usually because credits were not added. Discounts such as committed use, sustained use, free tier and promotions sit in the credits field as negative amounts. Add them to cost, group by invoice.month, and include tax and adjustment rows when reconciling to the invoice.

Should I use the standard or detailed billing export?

Enable both. Standard is enough for spend by project, service and label, and it is what most dashboards are built on. Detailed adds resource-level rows that explain which specific resource caused a spike, and history you did not export cannot be recovered later.

Is there a free Google Cloud billing dashboard template?

Yes. Google's billing documentation describes a Billing usage and cost insights dashboard that you set up from Cloud Shell with Terraform or Python. It creates views over your export and connects a copy of the template to them. It is a good starting point but reports by Google's dimensions, not your teams or products.

How do I show GCP cost by team in Data Studio?

Use resource and project labels from the export, mapped to clean team names through a mapping table in BigQuery. Fall back from resource label to project label to an explicit Unallocated bucket, and show that bucket prominently so label gaps get fixed.

Can finance see the cost dashboard without BigQuery access?

Yes. Set the Data Studio data source to owner's credentials, so queries run as the owner and viewers only need access to the report. Keep the owner a shared company account rather than one employee's login, so the report survives staff changes.

Reviewed by Team Greenwolf Tech Labs · 30 Nov 2026

Get started

Tell me what the report has to answer

Send the question your team keeps asking and where the data lives today. I reply within one business day with how I would build it, which connectors it needs and what it would cost.

  • Free 30-minute review of your data and reports
  • A fixed price before any work starts
  • Built in your Google account, so you own everything

Prefer email? harsh@greenwolftechlabs.com

Book a free review

Two lines is enough to start.

You get a reply from me at harsh@greenwolftechlabs.com, usually within one business day. No mailing lists.

Ask me anything

You get a reply from me at harsh@greenwolftechlabs.com, usually within one business day.

You get a reply from me at harsh@greenwolftechlabs.com, usually within one business day. No mailing lists.