Connecting Power BI to Presto in watsonx.data

This topic provides the procedure to connect Power BI to Presto using an ODBC driver (Simba or CData). When you connect to the Presto engine in watsonx.data, you can access various connected data sources and build interactive data visualizations.

Prerequisites

  • Power BI Desktop: Download and install the latest version.
  • Download and install one of the following ODBC drivers:
  • Subscription to watsonx.data on IBM Cloud with a provisioned Presto engine.

Authentication

Power BI uses LDAP authentication to connect to Presto:

  • Username: ibmlhapikey_<username>
  • Password: The API key of the watsonx.data user.

Configuring the ODBC driver

Simba ODBC driver:

  1. Open ODBC Data Source as administrator.
  2. Click System DSN > Add. Select Simba Presto ODBC and click Finish.
  3. Provide the following details:
  4. Click Test. Click Ok.

CData ODBC driver:

  1. Open ODBC Data Source as administrator.
  2. Click System DSN > Add. Select CData Presto.
  3. Provide the following details:
  4. Click Test Connection. Click Ok.

Setting up Power BI and viewing tables

  1. Open Power BI Desktop.
  2. Click Get data from other sources > search and select ODBC > Connect.
  3. From the Data source name list, select your data source and click Ok.
  4. Provide username (ibmlhapikey_<username>) and password (API key, see Generating the API key). Click Connect.
  5. The Navigator page shows schemas. Select a table and click Load or Transform Data.

Connecting to Presto by using Config files

You can select the catalog in Power BI from the watsonx.data console, and watsonx.data generates a Config file for the selected driver. This file enables direct access without Presto configurations.

  1. Log in to the watsonx.data instance.
  2. Go to Configurations > Connection information.
  3. Expand BI Tools and select PowerBI.
  4. From Connection Details, expand the Presto engine and use the Edit catalog icon to select the required catalog.
  5. Click Export config files and select the config zip file (Simba config.zip or CData config.zip). The zip includes a .reg file and a .pbids file.
  6. Run the .reg file to configure the database connection on Windows. Run the .pbids file to connect to the data source. Provide username and password.
  7. The SSL certificate is available from the watsonx.data Connection Information > IBM Products > Instance details > SSL Certificate. For more information about retrieving the SSL certificate, see Getting connection information.
  8. The Catalog page is displayed. Select schemas and tables for analysis.