Connect to Amazon DocumentDB from Microsoft Power BI Desktop - Amazon DocumentDB

Connect to Amazon DocumentDB from Microsoft Power BI Desktop

Prerequisites

Before beginning, ensure that the Amazon DocumentDB ODBC driver is correctly installed.

Adding Microsoft Power BI Desktop custom connector

Copy the AmazonDocumentDBConnector.mez file to the <User>\Documents\Power BI Desktop\Custom Connectors\ folder (or to <User>\OneDrive\Documents\Power BI Desktop\Custom Connectors if using OneDrive). This will allow Power BI to access custom connector. You can get the connector to Power BI Desktop here. Restart Power BI Desktop to make sure the connector is loaded.

Note

The custom connector only supports Amazon DocumentDB username and password for authentication.

Connecting using the Amazon DocumentDB custom connector

  1. Select Amazon DocumentDB (Beta) from Get Data and click Connect. If you get a warning for using a third-party service, click Continue.

    Get Data interface showing Amazon DocumentDB (Beta) option selected under the All category.
  2. Enter all necessary information to connect to your Amazon DocumentDB cluster, then click OK:

    Form for connecting to Amazon DocumentDB with fields for hostname, port, database, and optional settings.
    Note

    Depending on the configuration of your ODBC driver's Data Source Name (DSN), the SSH connection details screen may not be displayed if you have already provided the necessary information within the DSN settings.

  3. Choose the data connectrivity mode:

    • Import - loads all data and stores the information on disk. The data must be refreshed and reloaded in order to show data updates.

    • Direct Query - does not load data, but does live queries on the data. This means that data does not need to be refreshed and reloaded in order to show data updates.

    Amazon DocumentDB configuration dialog with DSN field and Import/DirectQuery options.
    Note

    If you are using a very large dataset, importing all of the data may take a longer period of time.

  4. If this is the first time connecting to this data source, select the authentication type and input your credentials when prompted. Then click Connect:

    Amazon DocumentDB login interface with username and password fields, and Connect button.
  5. In the Navigator dialog, select the database tables you want, then either click Load to load the data or Transform Data to continue transforming the data.

    Navigator interface showing database tables and a selected table with sample data.
    Note

    Your data source settings are saved once you connect. To modify them, select Transform Data > Data Source Settings.

Configuring Microsoft Power BI Gateway

Prerequisites:

  • Enure that the custom connector will work with Power BI Gateway.

  • Make sure that the ODBC DSN is created in the ODBC data sources in the System tab on the machine where Power BI Gateway is installed.

If you are using the internal SSH tunnel feature, the file known_hosts needs to be located where the Power BI service account has access to it.

Properties window showing permissions for PBIEgwService on known_hosts file, with full control allowed.
Note

This also applies to any file(s) that you might need to be able to establish a connection to your Amazon DocumentDB cluster, such as a certificate authority (CA) certificate file (pem file).