Use the CData API Server to Access BigQuery Data in Microsoft PowerPivot



Use the CData API Server to connect to live BigQuery data in the Power Pivot business intelligence tool.

The CData API Server enables you to use REST, OData, JSON, or Open APIs to connect to and query BigQuery data. The OData standard enables real-time access to the live data, and support for OData is integrated into Power Pivot. This article details how to import an OData feed of BigQuery data into Microsoft Excel's PowerPivot business intelligence tool.

About BigQuery Data Integration

CData simplifies access and integration of live Google BigQuery data. Our customers leverage CData connectivity to:

  • Simplify access to BigQuery with broad out-of-the-box support for authentication schemes, including OAuth, OAuth JWT, and GCP Instance.
  • Enhance data workflows with Bi-directional data access between BigQuery and other applications.
  • Perform key BigQuery actions like starting, retrieving, and canceling jobs; deleting tables; or insert job loads through SQL stored procedures.

Most CData customers are using Google BigQuery as their data warehouse and so use CData solutions to migrate business data from separate sources into BigQuery for comprehensive analytics. Other customers use our connectivity to analyze and report on their Google BigQuery data, with many customers using both solutions.

For more details on how CData enhances your Google BigQuery experience, check out our blog post: https://www.cdata.com/blog/what-is-bigquery


Getting Started


Set Up the API Server

If you have not already done so, download the CData API Server. Once you have installed the API Server, follow the steps below to begin producing secure BigQuery OData services:

Connect to BigQuery

To work with BigQuery data from Microsoft Power Pivot, we start by creating and configuring a BigQuery connection. Follow the steps below to configure the API Server to connect to BigQuery data:

  1. First, navigate to the Connections page.
  2. Click Add Connection and then search for and select the BigQuery connection.
  3. Enter the necessary authentication properties to connect to BigQuery.
  4. After configuring the connection, click Save & Test to confirm a successful connection.

Configure API Server Users

Next, create a user to access your BigQuery data through the API Server. You can add and configure users on the Users page. Follow the steps below to configure and create a user:

  1. On the Users page, click Add User to open the Add User dialog.
  2. Next, set the Role, Username, and Privileges properties and then click Add User.
  3. An Authtoken is then generated for the user. You can find the Authtoken and other information for each user on the Users page:

Creating API Endpoints for BigQuery

Having created a user, you are ready to create API endpoints for the BigQuery tables:

  1. First, navigate to the API page and then click Add Table .
  2. Select the connection you wish to access and click Next.
  3. With the connection selected, create endpoints by selecting each table and then clicking Confirm.

Gather the OData Url

Having configured a connection to BigQuery data, created a user, and added resources to the API Server, you now have an easily accessible REST API based on the OData protocol for those resources. From the API page in API Server, you can view and copy the API Endpoints for the API:

Import BigQuery Tables in Power Pivot

Follow the steps below to import tables that can be refreshed on demand:

  1. In Excel, click Data -> Get Data -> From Other Sources -> From OData Feed
  2. In the OData feed connection, set the URL property to the OData Endpoint URL previously copied and click OK (e.g. "http://localhost:8080/api.rsc"):
  3. In the next step of the wizard, define the authentication credentials. Select Basic and then enter the credentials for a user authorized to make requests. Specify the User name and enter the user's authtoken in the Password field:
  4. Select the tables that you would like to import into Excel and click Load
  5. After selecting and loading your table(s), you should see the data appear in an Excel spreadsheet. Now, click the Power Pivot tab on the ribbon, and then select Add to Data Model.
  6. You can now work with your BigQuery data in Power Pivot.

Free Trial & More Information

If you are interested in connecting to your BigQuery data (or data from any of our other supported data sources) from Microsoft Power Pivot, download API Server to begin creating flexible and customizable REST, OData, JSON and Open APIs from any database or data store! As always, our world-class support team is ready to answer any questions you may have.

Ready to get started?

Learn more or sign up for a free trial:

CData API Server