Microsoft Power BI Gateway

If you’re using on-premises data sources, Microsoft Power BI Gateway enables you to keep dashboards and reports up-to-date without the need for moving data between services. This application connects your Dremio datasets with Power BI Desktop and Cloud so that you can easily query data wherever it is housed.

Note

Install this application on a machine that is always online (24/7). Otherwise, queries may fail when users interact with a Power BI dashboard.

Prerequisites

This tutorial assumes that you have already set up and configured the following resources:

Installing Power BI Gateway

The following section outlines the steps required for installing and configuring Microsoft Power BI Gateway.

  1. Download and install the Power BI Gateway application.

  2. Once the install is completed, leave the On-premises data gateway window open. For servers using Windows, the Gateway application must be left open for it to continue running.

  3. Navigate to the Connectors tab and click next to the Load custom data connectors from folder field. Specify a folder to store connector files. Make sure that the last folder is followed by a </code> to ensure the gateway application locates the folder.

    Note

    The service account (NT SERVICE\PBIEgwService) must have access to the directory specified and its contents. For instructions on giving access, see the walkthrough below.

  4. Navigate to where the Dremio ODBC driver is installed (typically C:\Program Files\Dremio Connector\Microsoft Power BI).

  5. Copy the Dremio.mez file and paste it in the folder specified in the previous step.

  6. Restart the Power BI Gateway application by navigating to the Service Settings tab and selecting Restart now. From the Connectors tab, Dremio should now appear under Custom data connectors.

Giving the service account access to your connector folder

The Gateway service account must have access to the folder where you’ll be storing your connectors. Complete this section to give Power BI Gateway’s service account access to the folder.

  1. Navigate to the folder you specified in Power BI Gateway for custom connector files.

  2. Right-click on the folder and select Give access to > Advanced sharing.

  3. Click the Advanced Sharing… button.

  4. Click the Permissions button.

  5. Click the Add… button. This launches the Select Users or Groups window.

  6. Under the Enter the objet names to select field, enter NT SERVICE\PBIEgwService and then click the Check Names button.

  7. Click OK.

  8. From the Group or user names window, select the service account. Then select the Allow checkbox for Full Control.

  9. Click OK and Close to close all advanced sharing windows.

The Gateway service account now has access to this folder.

Creating a data source for your custom connector

As part of the configuration process for the Dremio connector, you’ll need to complete the following steps with Power BI Cloud. This section outlines the steps necessary to configure the Cloud application to query an on-premises data source like Dremio.

  1. Log in to your account at https://app.powerbi.com/.

  2. Click next to your profile picture at the top-right corner of the browser and navigate to Settings > Manage gateways.

  3. Under GATEWAY CLUSTERS, select the gateway you created previously.

  4. Select the checkboxes for Allow user’s cloud data sources to refresh through this gateway cluster and Allow user’s custom data connectors to refresh through this gateway cluster (preview).

  5. At the top of the page, click Add data sources to use the gateway. This launches the Data Source Settings page.

  6. Enter a Data Source Name.

  7. Select the Data Source Type drop-down menu and click on Dremio.

  8. Fill out your connection information as needed, such as Username and Password.

  9. Set the Connection Encryption setting for this data source to Not Encrypted.

  10. Click Apply.

Power BI Gateway setup is now fully complete and you can use Power BI Cloud to run queries with your Dremio dataset(s).

Note

If you’ve already created dashboards through Power BI Desktop and Cloud to query Dremio virtual datasets (VDS), then you do not need to proceed further with this tutorial.

Setting up and publishing your Dashboard to Power BI online

If you have not yet set up a dashboard through Power BI Desktop for querying your Dremio data source, complete the following section.

  1. From Dremio, create a virtual dataset.

  2. Launch Power BI Desktop.

  3. Create a dashboard for Dremio via the Direct Query method.

    Note

    Ensure that you are signed in to Power BI, if you have not done so already. This can be done by clicking File at the top-left corner of the screen and then Sign in at the bottom-left corner of the menu that appears.

  4. Navigate to Files > Publish > Publish to Power BI.

  5. Select the destination. You may pick from a list of available workspaces to choose the desired one on which to publish. Select the workspace, and then click the Select button to publish.

Once the publishing has completed, you will receive a link to your report. Click on the link to open the report on Power BI Cloud. This dashboard should now be found under the Reports section of the pre-defined workspace. This dashboard has a live connection to Dremio and can perform queries from your VDS.