Use Airtable and Google Data Studio as your 2021 business OS 
Tags: airtable, analytics, lowcode
Published: 2020-12-22 00:13:39

Your business can get lost in an Airtable base.

Do you know how sales are trending? How many customer interactions took place today? How big the support queue is?

The Airtable UI does not make it easy to go beyond _surface-level_ analytics. You are especially constrained if you want to combine performance metrics in Airtable with other data sets.

While Airtable is limited in its reporting capabilities, there are plenty of tools purpose built to help you build and share insightful reports and dashboards. [Google Data Studio](https://datastudio.google.com/overview) is one of the better options, because it’s easy to learn, allows you to blend different data sources together, and comes loaded with convenient tools to make your reports interactive.

Until recently, you really only had two reliable options to get your data out of Airtable and into a tool like Google Data Studio: integrate with the Airtable API and work through pagination, rate limits, and `filterBy`. Manually export and import CSVs by hand, every time. While these work, neither are easy or efficient.

That’s why we’re building [Sequin](https://sequin.io/?utm_source=dev.to&utm_medium=post&utm_campaign=atToGds) so you can unleash your Airtable data.

In this post, we’ll use Sequin to connect all your Airtable data to Google Data Studio in a matter of minutes.

## Connect Airtable to Google Data Studio

You might be asking, "how is this going to work exactly?"

While Google Data Studio doesn’t have native support for Airtable, it does come with first-class support for Postgres. So we’re going to use [Sequin](https://sequin.io/?utm_source=dev.to&utm_medium=post&utm_campaign=atToGds) to turn your Airtable base into a Postgres database that plugs right into Google Data Studio.

![How this works](https://dev-to-uploads.s3.amazonaws.com/i/gqkq1krilk7jv6oimmah.png)

Then, in the background, Sequin will do all the hard work to keep the data current so your metrics are always up to date.

First, use Sequin to provision a Postgres database with all your Airtable data:

Go to https://app.sequin.io/signup and create an account.

![Create Sequin account](https://dev-to-uploads.s3.amazonaws.com/i/s1hmwfm4z7o3o0rjqmok.png)

Connect your base to Sequin using the tutorial or check out the [Quickstart guide](https://docs.sequin.io/get-started). It’s as easy as copying and pasting your API key, base ID, and the names of your tables.

![Connect your base](https://dev-to-uploads.s3.amazonaws.com/i/bzekvzyv10me1yqqzkm7.gif)

In a couple seconds, you’ll be provisioned a Postgres database that Sequin will begin filling it with all your Airtable data.

![Get your credentials](https://dev-to-uploads.s3.amazonaws.com/i/ym8dsxjovq6pfohiz83n.png)

### Step 2: Connect to Google Data Studio

Now, we’re going to use the credentials you just received from Sequin to connect your Postgres database to Google Data Studio:

Go to https://datastudio.google.com/ and sign in or create a free account.

![Sign up for GDS](https://dev-to-uploads.s3.amazonaws.com/i/jvumbft27fb0w7z7y19q.png)

Once you are logged in, click the **Create** button and select **Data source** from the drop down. A page of connection options will appear. Click the **PostgreSQL** option.

![Add resource](https://dev-to-uploads.s3.amazonaws.com/i/8v8ya9ol34hc8n7u689i.gif)

You’ll be asked to provide the credentials for the Postgres database you want to connect to Google Data Studio. Enter the credentials for your Sequin Postgres database including the `Host`, `Port`, `Databse`, `User`, and `Password` into GDS. You can leave the _Enable SSL_ checkbox empty. Then click **Authenticate**.

![Add credentials](https://dev-to-uploads.s3.amazonaws.com/i/easicech1wvw8gvyao84.png)

Now, you will see a list of all the tables from your Airtable base. Select the table you want to import and click the blue **Connect** button.

![Create](https://dev-to-uploads.s3.amazonaws.com/i/skuw51akpytsm6qx3geg.png)

Google Data Studio will load the data from Sequin and show you the columns in the table as well as the corresponding data type (`text`, `boolean`, etc). Name your table in the top right (I recommend the naming convention `Airtable - Base Name - Table Name`) and if you’d like, change the data freshness to 1 hour so your reports show the freshest possible data. Google Data Studio will auto save as you make changes. Once everything looks good, click the Google Data Studio logo in the top right corner to return to the home page.

![Save](https://dev-to-uploads.s3.amazonaws.com/i/xaxqznwtpfpnrtlwyj3k.png)

Repeat the previous steps to connect each table in your Airtable base to Google Data Studio. You'll only need to do this once for each table.

## Build your report

With all your Airtable data connected to Google Data Studio, all that is left to do is build your dashboard.

Click the **Create** button again, but this time select **Report**.

You’ll be presented with a screen to add data to the report. Click on **My data sources** and select one of the Airtable data sources you just added.

![Add data sources](https://dev-to-uploads.s3.amazonaws.com/i/j3yzggq8v9lv6ivfg5dy.gif)

Now that you have one Airtable data source added to your report, add the rest by clicking the **Add data** icon.

![Add remaining data sources](https://dev-to-uploads.s3.amazonaws.com/i/os22qhv63u0hcld0xx7d.png)

Build! You can add scorecards, bar graphs, maps and more by just dragging and dropping.

## Final Tips

Here are a couple ways to level up your reports.

### Build customer portals

Google Data Studio is great for building _internal reports_. But you can also use it to build interactive reports and portals for your customers. You can easily create a GDS report that shows just the data a specific customer needs to see from across your base in one simple view. Then when you [share it](https://support.google.com/datastudio/answer/6287179?hl=en) with your client you can require a Google login or password to keep their data confidential and secure. This is amazing for project tracking and more.

### Controls

Add date pickers, search fields and other [controls](https://support.google.com/datastudio/answer/6312144?hl=en) to your reports so you can easily slice and dice your insights.

### Interactions

Just like controls, you can turn on chart [interactions](https://support.google.com/datastudio/answer/9173401?hl=en) so that when a viewer clicks a row on a table, the rest of the data on the report filters to just the data corresponding to that row. It’s really nice.

### Join and blend data

As I mentioned at the beginning, sometimes your business insights are hiding across tables. So you may need to pull together data from several Airtable tables into one data view in Google Data Studio to get the metric you need.

You can do this two ways:

1. You can use a [Google Data Studio blended view](https://support.google.com/datastudio/answer/9061420?hl=en) to connect tables. Click the **Resources** menu and select **Manage blended data**. Then click to add a data view. You’ll then select the two or more tables you want to merge together and identify the `join key` that GDS can use to match up the data. Since the underlying data source is Airtable, the `join key` relating the two tables will often be a `lookup` field.
2. You can actually join the data from the two tables using SQL when you connect to your Sequin Postgres database. To do this, you would follow the steps you went through to connect to your [Sequin](https://sequin.io/?utm_source=dev.to&utm_medium=post&utm_campaign=atToGds) database, but instead of selecting a table you'll click to run an advanced SQL query. Then, you can write a SQL query to join tables and return the exact data you need. For an easy reference on how to write this SQL query, you can [check out this post I put together on querying Airtable data with SQL](https://dev.to/thisisgoldman/go-further-with-airtable-using-postgres-arrays-4hia).

### Start with questions

A dashboard or report is really only as useful as the questions it answers and the decisions it motivates. So before you get in the weeds, start by outlining what questions you want to answer from your Airtable data (i.e. are we running out of stock?) or what decisions you want to drive (i.e. can we respond to every customer within 24 hours?).