Import Google Cloud Storage Data into the Power BI Service for Visualizations
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 AI, you get access to Google Cloud Storage data for visualizations, dashboards, and more. This article shows how to connect to Google Cloud Storage in CData Connect AI, publish a dataset from Power BI Desktop to the Power BI Service and then create reports on Google Cloud Storage data in the Power BI service.
Configure Google Cloud Storage Connectivity for Power BI Service
Connectivity to Google Cloud Storage from Power BI Service is made possible through CData Connect AI. To work with Google Cloud Storage data from Power BI Service, we start by creating and configuring a Google Cloud Storage connection.
- Log into Connect AI, click Sources, and then click Add Connection
- Select "Google Cloud Storage" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Google Cloud Storage.
Authenticate with a User Account
You can connect without setting any connection properties for your user credentials. After setting InitiateOAuth to GETANDREFRESH, you are ready to connect.
When you connect, the Google Cloud Storage OAuth endpoint opens in your default browser. Log in and grant permissions, then the OAuth process completes
Authenticate with a Service Account
Service accounts have silent authentication, without user authentication in the browser. You can also use a service account to delegate enterprise-wide access scopes.
You need to create an OAuth application in this flow. See the Help documentation for more information. After setting the following connection properties, you are ready to connect:
- InitiateOAuth: Set this to GETANDREFRESH.
- OAuthJWTCertType: Set this to "PFXFILE".
- OAuthJWTCert: Set this to the path to the .p12 file you generated.
- OAuthJWTCertPassword: Set this to the password of the .p12 file.
- OAuthJWTCertSubject: Set this to "*" to pick the first certificate in the certificate store.
- OAuthJWTIssuer: In the service accounts section, click Manage Service Accounts and set this field to the email address displayed in the service account Id field.
- OAuthJWTSubject: Set this to your enterprise Id if your subject type is set to "enterprise" or your app user Id if your subject type is set to "user".
- ProjectId: Set this to the Id of the project you want to connect to.
The OAuth flow for a service account then completes.
- Click Save & Test
-
Navigate to the Permissions tab in the Add Google Cloud Storage Connection page and update the User-based permissions.
With the connection configured, you are ready to connect to Google Cloud Storage data from the Power BI service.
Publish a Dataset from Power BI Desktop
Once you connect to Google Cloud Storage in Connect AI, you can create a dataset in Power BI desktop and publish the dataset to the Power BI service.
- Open Power BI Desktop and click Get Data -> Online Services -> CData Connect AI and click "Connect"
- Click "Sign in" and authenticate with your CData Connect AI account
- After signing in, click "Connect"
- Select tables in the Navigator dialog
- Click Load to establish the connection to your Google Cloud Storage data from Power BI
- Define any relationships between the selected entities on the Relationships tab.
- Click Publish (from the Home menu) and select a Workspace.
Build Reports and Dashboards on Google Cloud Storage Data in the Power BI Service
Now that you have published a dataset to the Power BI service, you can create new reports and dashboards based on the published data:
- Log in to PowerBI.com.
- Click Workspaces and select a workspace.
- Click Create and select Report.
- Select the published dataset for the report.

- Choose fields and visualizations to add to your report.

Live Access to Google Cloud Storage Data from Cloud Applications
Now you have a direct connection to live Google Cloud Storage data from the Power BI service. You can create more data sources and new visualizations, build reports, and more — all without replicating Google Cloud Storage data.
To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, sign up for a free trial of CData Connect AI.