Microsoft Excel Connector Setup Guide

Customers with the ActivConnect API add-on can connect Excel directly to Google BigQuery, bypassing the need to use BQ or any other visualization tool.

Note: This guide applies only to the Windows OS at this time.

ODBC Driver

The end user will need to download the ODBC driver from the below link which includes 32-bit and 64-bit installers:

ODBC and JDBC drivers for BigQuery  |  Google Cloud

After downloading and installing the MSI, navigate to Control Panel > Windows Tools, as shown below.

excel-1.png

Next, look for ODBC Data Sources, either 32bit or 64bit depending on your computer, as shown below.

excel-2.png

Click on “System DSN” and select “Google BigQuery”, then “Configure”:

excel-3.png

Change Authentication to “User Authentication", then click “Sign In”:

excel-4.png

You’ll be prompted to sign in with your ActivConnect credentials (account#@activtrak.us). Once you have successfully logged in, a page will appear confirming you can close the browser window. After logging in, now navigate down to “Catalog (Project)” and “Dataset”:

excel-5.png

  • Catalog (Project): Select “us-activtrak-ac-prod”
  • Dataset: Select your account number
  • Click on “Test” to verify the connection will work.

If the test is successful, this popup window will appear:

excel-6.png

Once completed, close out ODBC Data Sources and open the Excel application.

Excel

From the application navigation, select Data > New Query > From Other Sources > From ODBC, as shown below.

excel-7.png

Change the Data Source Name (DSN) to "Google BigQuery”.

NOTE: If you renamed the DSN during the previous steps, the name here will display differently.

If you know the query you are going to use to narrow down the data being imported into Excel, you can enter it here.

excel-8.png

For example:

SELECT * FROM `us-activtrak-ac-prod.ACCOUNT#.daily_user_summary` LIMIT 1000

This is not required, however, if you leave this blank, you will be prompted for more information.

If using the SQL statement option, after you enter a query you’ll be given a preview of the data:

excel-9.png

  • Click “Load” to load everything into Excel directly.
  • Click “Transform Data” to change your query and manipulate the data in a new window.

excel-1o.png

If you opt not to use a SQL statement, on the next screen you’ll need to select the view you want to pull from. You may need to log into your Activtrak.us account again.

NOTE: You’ll need to filter to the specific project (us-activtrak-ac-prod) and your dataset (your account number).

excel-11.png

Select the same options as before (Load and Transform Data).

Once the data is in Excel, to refresh it, simply click on Data > Refresh All.

excel-12.png

NOTE: By default, this data will only refresh when the “Refresh All” button is clicked.

Excel does allow for an automatic refresh of the data on the open spreadsheet and can be enabled by clicking on the down arrow on “Refresh All”, as shown below.

excel-13.png

Inside Query Properties, check the box for “Refresh data when opening the file”.

excel-14.png

NOTE: Enable Fast Data Load will sacrifice UI responsiveness inside Excel to prioritize loading data. This is generally not required unless working with extremely large datasets.

By default, this will pull all the data for the account. To keep your spreadsheet smaller and easier to read, we recommend limiting the time from being pulled by using a WHERE statement.

Learn more:

 

Was this article helpful?

0 out of 0 found this helpful

Comments

No comments