Help Center/ Data Lake Insight/ Best Practices/ Connecting BI Tools to DLI for Data Analysis/ Configuring Power BI to Connect to DLI for Data Query and Analysis
Updated on 2026-09-08 GMT+08:00

Configuring Power BI to Connect to DLI for Data Query and Analysis

Power BI provides capabilities such as data integration, warehousing, reporting, and visualization. It can transform complex data into intuitive and interactive charts and dashboards, helping enterprises make data-driven decisions.

Connecting Power BI to DLI for data query and analysis simplifies data access workflows and provides unified data management and analytics capabilities, enabling deeper data insights.

This section describes the steps to connect Power BI to DLI to access and analyze data in DLI.

Preparations

  • Environment requirements:

    Ensure your system environment meets the following requirements:

    • Operating system: Only Windows 10 and Windows 11 (64-bit) are supported.
    • Power BI does not support parsing complex field types: Map, Struct, and Array.
  • Toolkits:
  • Preparing connection information
    Table 1 Connection information

    Item

    Description

    How to Obtain

    DLI's AK/SK

    AK/SK-based authentication uses an AK/SK pair to sign requests for identity authentication.

    Obtaining an AK/SK

    DLI endpoint address

    Endpoint of a cloud service in a region.

    Obtaining an Endpoint

    DLI project ID

    Project ID used for resource isolation.

    Obtaining a Project ID

    DLI region information

    Region to which DLI belongs.

    Regions and Endpoints

Step 1: Configure ODBC

  1. Install the ODBC driver.

    1. Obtain the ODBC installation package by referring to Preparations.
    2. Double-click dli-odbc-xxx-setup-x64.exe to install the ODBC driver.

      After installation, a Path environment variable is automatically created. Do not delete this environment variable.

  2. Configure ODBC to connect to DLI.

    1. In Windows, open Control Panel > Administrative Tools > ODBC Data Source (64-bit).
    2. Configure an ODBC data source.
      1. In ODBC, click User DSN.
      2. Click Add to create a data source.
      3. Select Huawei Cloud DLI Driver (64-bit) and click OK.
      Figure 1 Creating an ODBC data source connection
    3. In the dialog box that appears, enter the connection details for ODBC-to-DLI.

      Table 2 Power BI-to-DLI parameter description

      Parameter

      Mandatory

      Description

      Example Value

      Data Source Name (DSN)

      Yes

      Custom DSN name.

      -

      DLI Server Region (REGION)

      Yes

      DLI region ID.

      cn-north-4

      DLI Server Host (HOST)

      Yes

      DLI endpoint address.

      dli. {REGION}.{domainName}

      dli.cn-north-4.myhuaweicloud.com

      Project ID (PROJECTID)

      Yes

      Project ID where DLI resources are located.

      0b33ea2a7e0010802fe4c009bb05076d

      Access Key (AK)

      Yes

      AK/SK credentials.

      -

      Secret Key (SK)

      Yes

      AK/SK credentials.

      -

      Database Name (DATABASE)

      Yes

      DLI database name.

      dli

      Queue Name (QUEUENAME)

      Yes

      DLI service queue name (only Spark SQL engine queues are currently supported).

      dli_test

      Obs EndPoint (OBSENDPOINT)

      Yes

      OBS endpoint address.

      obs.{REGION}.{domainName}

      obs.cn-north-4.myhuaweicloud.com

      Extra Configuration (KEY=VALUE;)

      No

      Other parameters:

      For example:

      • JOBTIMEOUT specifies the maximum SQL runtime. The job is canceled on timeout (default: 3,600 seconds if not set).
      • spark.sql.shuffle.partitions is a Spark runtime parameter.

      JOBTIMEOUT=3600; spark.sql.shuffle.partitions=100;

      Figure 2 ODBC data source connection parameters
    4. Click Test to check whether the data source connection is successful. If successful, click OK to save the connection.

Step 2: Configure Power BI to Use ODBC to Connect to DLI

  1. Click and install Power BI. Obtain the Power BI installation package. Select the installation package for Windows (64-bit).
  2. Open Power BI Desktop.
  3. On the Home tab, click Get data.
  4. Click More... to view additional data source options.
  5. Select ODBC from the list as the data source type and click Connect.
  6. In the ODBC Driver Manager window that appears, select the ODBC data source configured in Step 1: Configure ODBC and click OK.

    Power BI will use ODBC to connect to DLI and allow you to preview and select tables and views in the database.

    When previewing database tables, select limit. Otherwise, all partitioned tables are scanned.