Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Build Visualizations of Live Drift Data in Power BI (through CData Connect)
Use CData Connect to create a virtual database for Drift data and build custom reports in Power BI.
Power BI transforms your company's data into rich visuals for you to collect and organize so you can focus on what matters to you. When paired with CData Connect (on-premise or in the cloud), you get access to Drift data for visualizations, dashboards, and more. This article shows how to use CData Connect to create a virtual database for Drift, connect to Drift data into Power BI and then create reports on Drift data in Power BI.
Create a Virtual SQL Database for Drift Data
CData Connect Server uses a straightforward, point-and-click interface to connect to data sources and generate APIs.
- Login to Connect Server and click Connections.
- Select "Drift" from Available Data Sources.
-
Enter the necessary authentication properties to connect to Drift.
Start by setting the Profile connection property to the location of the Drift Profile on disk (e.g. C:\profiles\Drift.apip). Next, set the ProfileSettings connection property to the connection string for Drift (see below).
Drift API Profile Settings
Drift uses OAuth-based authentication.
You must first register an application here: https://dev.drift.com. Your app will be assigned a client ID and a client secret. Set these in your connection string via the OAuthClientId and OAuthClientSecret properties. More information on setting up an OAuth application can be found at https://devdocs.drift.com/docs/.
After setting the following options in the ProfileSettings connection property, you are ready to connect:
- AuthScheme: Set this to OAuth.
- OAuthClientId: Set this to the Client Id that is specified in your app settings.
- OAuthClientSecret: Set this to Client Secret that is specified in your app settings.
- CallbackURL: Set this to the Redirect URI you specified in your app settings.
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to manage the process to obtain the OAuthAccessToken.
- Click Save Changes
- Click Privileges -> Add and add the new user (or an existing user) with the appropriate permissions.
With the virtual database created, you are ready to connect to and visualize Drift from Power BI.
Query Drift Tables
Follow the steps below to build a query to pull Drift data into the report:
- Open Power BI Desktop and click Get Data -> Other -> SQL Server and click "Connect"
- Set Server to the address and port of your CData Connect instance (localhost:8033 by default) and set Database to the name of the virtual database you just created (API1)
- Use "Database" authentication, enter the credentials for a CData Connect user and click "Connect"
- Select tables in the Navigator dialog
- Click Load to import the data into Power BI
Create Drift Data Visualizations
After connecting to the data into Power BI, you can create data visualizations in the Report view by dragging fields from the Fields pane onto the canvas. Select the dimensions and measures you wish to visualize along with the chart type.
Click Refresh to synchronize your report with any changes to the data.
SQL Access to Drift Data from Data Applications
With CData Connect you have a direct connection to Drift data from Power BI. You can import more data, create new visualizations, build reports, and more — all without replicating Drift data.
To get SQL data access to 200+ SaaS, Big Data, and NoSQL sources (including Drift) directly from your on-premise BI, reporting, ETL and other data applications, visit the CData Connect page and download a free trial.