Looker–Power BI Connector

The Looker–Power BI Connector lets you use Microsoft Power BI Desktop to connect to data from a Looker Explore.

Setting up Power BI Desktop to connect to Looker

The general steps to use the Looker–Power BI Connector are as follows:

  1. Verify the requirements.
  2. Enable the connector on your Looker instance.
  3. Download and save the connector file: Each user who wants to access the Looker–Power BI Connector must download the looker_1.4.0.mez file and save it in a specific directory on their computer.
  4. Set up Power BI Desktop for a custom connector: Each Power BI user must configure their Power BI Desktop security settings to use a non-certified custom connector.

The sections on this page describe these steps in detail.

After you complete the steps to connect Looker with Power BI Desktop, you can connect to Looker data from Power BI and publish reports in Power BI. You can optionally set up the on-premises data gateway to refresh your Looker reports using Power BI service (Power BI online). See the Using Power BI service with the Looker–Power BI Connector documentation page for more information.

Requirements

To set up the Looker–Power BI Connector, you need the following:

  • Microsoft Power BI Desktop installed on your computer.
  • A Looker instance that meets the following requirements:
    • The instance must be hosted by Looker. (Looker (Google Cloud core) instances are hosted by Looker and support the Looker–Power BI Connector.)
    • The instance must be running Looker 23.10 or later.
  • A Looker user account on the Looker instance with the explore permission, which is required to access Explores in Looker. If you want to work with queries with more than 5,000 rows, you also need the download_without_limit permission (see Query row limits for information on downloading limits).

Enable the connector on your Looker instance

The Looker instance you want to use with the Looker–Power BI Connector must be enabled for the Microsoft Power BI connector:

  • For Looker (Google Cloud core) instances, BI connectors are enabled by default.
  • For Looker (original) instances, BI connectors are disabled by default.

Your Looker admin can enable BI connectors on the BI Connectors panel in the Platform section of the Looker Admin menu.

Download and save the connector file

To download the connector file, follow these steps on the computer with Microsoft Power BI Desktop installed:

  1. To download the connector file, click the following link: looker_1.4.0.mez
  2. When the download is completed, move the looker_1.4.0.mez file to the directory [Documents]\Microsoft Power BI Desktop\Custom Connectors. (Create the folders on your computer if they don't already exist.)

Setting up Power BI Desktop for a custom connector

To set up the Looker–Power BI Connector on the Power BI Desktop side, follow the Custom connectors instructions on the Microsoft Power BI website.

As it says in the instructions, under Data Extensions, you will select the option (Not Recommended) Allow any extension to load without validation or warning. Select OK, and then restart the Power BI Desktop.

Connecting to Looker data from Power BI Desktop

Once you have downloaded the looker_1.4.0.mez connector file and set up your Power BI Desktop application for a custom connector, you can use Power BI Desktop to connect to data from your Looker instance:

  1. From the Power BI Desktop toolbar, select Get Data > More...
  2. In the Get Data dialog, enter Looker in the search field.
  3. In the search results, click the Looker entry, and then click Connect.
  4. In the Connecting to a third-party service dialog, click Continue.
  5. Power BI Desktop will display a Looker sign-in dialog. In the Host field, type in the URL of your instance. For example: example.cloud.looker.com.

    Make note of the exact URL that you enter here. If you intend to set up Power BI service with the Looker–Power BI Connector, you will need to perfectly match this URL to the value you enter in the Host field when you create a connection between the on-premises data gateway and Looker data. For example, example.cloud.looker.com or https://example.cloud.looker.com or https://example.cloud.looker.com/.

  6. Optionally, use the Disable Preview Optimization drop-down to disable the Preview Optimization feature.

  7. Select the DirectQuery option to create a live connection to your data on Looker.

  8. Click OK.

  9. In the Looker dialog, click Sign in.

  10. In the Looker login screen, sign in to your Looker instance.

  11. Power BI Desktop will return to the Looker sign-in dialog, with a message that says that you are signed in. Click Connect.

  12. Power BI Desktop will display a list of the Looker models that you have access to, each represented as a folder. Click the Looker model that you want to access, and then select the checkbox next to the Looker Explore that you want to load in Power BI Desktop. To see a model, you must have Looker user access or group access to a model set that contains the model. To access Explores, you must have the Looker explore permission.

  13. Click Load.

Power BI Desktop will populate its Data pane with the fields from your selected Explore. You can then use the Looker data from the Explore to create reports in Power BI Desktop. See Viewing Looker elements in Power BI Desktop for information on how Looker elements are displayed by the Looker–Power BI Connector.

Field names will appear in a single list in the format ViewName.FieldName.

Preview Optimization

Power BI Desktop typically runs a preview query that returns the first 200 rows of your data (the preview is basically a SELECT * LIMIT 200 query). For a Looker Explore, this can be a very large query, because Looker Explores can involve many joins and hundreds of fields. Although the LIMIT 200 argument constrains the results of the preview query to 200 rows, the preview query initiates a full table scan on your database.

The Looker–Power BI Connector uses the Preview Optimization feature to prevent Power BI Desktop from running a preview query when it connects to your Looker Explore. When the Preview Optimization feature is enabled (the default), the Looker–Power BI Connector disables Power BI Desktop's preview query, so Power BI Desktop will return an empty table for the preview query. If you want Power BI Desktop to run preview queries on your Looker Explore, you can disable the Preview Optimization feature.

To enable Power BI Desktop's preview queries, set the Disable Preview Optimization value to TRUE when you connect to Looker data from Power BI Desktop.

Viewing Looker elements in Power BI Desktop

After you connect to Looker data from Power BI Desktop, Power BI Desktop will populate its Data pane with the fields from your selected Explore.

The Looker–Power BI Connector uses the following format to display Looker fields in Power BI Desktop:

ViewName.FieldType.FieldName

  • The ViewName value is the LookML view where the field is defined.
  • The FieldType value can be one of the following types that are supported by the Looker–Power BI Connector:

    • dim: Dimension, a field that represents an attribute, a fact, or a value, such as dates, names, and IDs. Dimensions often correspond to columns in your underlying data table. In LookML, dimensions are defined with the dimension parameter.
    • mea: Measure, a field that represents measurable information about your data, such as sums, counts, averages, minimums, and maximums. In LookML, measures are defined with the measure parameter.
    • fil: Filter, a filter-only field that is used only to create a filter in an Explore query; filter fields are not included in a query's result set. In LookML, filters are defined with the filter parameter.
    • par: Parameter, a field that is used only to create a filter in an Explore query; parameter fields are not included in a query's result set. A parameter can create interactive query results, labels, URLs, and more when it is defined with the {% parameter parameter_name %} and parameter_name._parameter_value Liquid variables. In LookML, parameters are defined with the parameter parameter.
  • The FieldName value is the name of the field as it is displayed in the Looker Explore.

Power BI Desktop displays Looker elements just as they are displayed in the Looker Explore, with the same capitalization and word spacing. For example, if a Looker Explore displays a LookML dimension as Created Date from a view displayed as Order Items, Power BI Desktop will display this field as Order Items.dim.Created Date.

Creating queries with Looker dimensions and measures

The Looker–Power BI Connector lets you use Looker dimensions and measures to create queries in Power BI Desktop.

To create a query in Power BI Desktop using Looker dimensions and measures, follow these steps:

  1. Connect to Looker data from Power BI Desktop, and wait for Power BI to populate its Data pane with the fields from your selected Looker Explore.
  2. In the Power BI Data pane, select the checkbox for each Looker dimension or measure that you want to include in the query.

As you select each dimension or measure, Power BI will update the query that is displayed in the report canvas.

Filtering queries with Looker filters and parameters

The Looker–Power BI Connector lets you use LookML parameters and filter-only fields from a Looker Explore to add filters to your Power BI report.

To filter a report in Power BI Desktop using Looker parameters and filter-only fields, follow these steps:

  1. If you haven't already, connect to Looker data from Power BI Desktop and wait for Power BI to populate its Data pane with the fields from your selected Looker Explore.

  2. In the Power BI Data pane, drag the name of a parameter or a filter-only field into one of the Add data fields here boxes in Filters pane, either for Filters on this page or for Filters on all pages. See the Power BI documentation for details on adding filters to a report in Power BI.

Note the following about using Looker parameters and filter-only fields in Power BI:

  • For filter-only fields that are configured in LookML with the suggestions parameter or the suggest_dimension parameter, Power BI will fetch the suggestion values and display them in the Basic filtering options in the Filters pane.
  • For parameters that are configured in LookML with the allowed_value attribute, Power BI will fetch all of the allowed values that are configured in LookML for the parameter and display them in the Basic filtering options in the Filters pane.

Monitoring the Looker–Power BI Connector

A Looker admin can view Looker–Power BI Connector usage using the Query API Client Properties group of fields in the System Activity History Explore. An entry is created in the History Explore every time a new query is run.

In the Query API Client Properties group of fields, the API Client Name shows a Power BI value to identify Looker–Power BI Connector entries.

The following is an example of a System Activity URL that shows Power BI usage. Replace <instance_name.looker.com> with your instance URL.

https://<instance_name.looker.com>/explore/system__activity/history?fields=query_api_client_context.name,user.name,history.created_date,history.created_time_of_day&f[query_api_client_context.name]=Power+BI&sorts=history.created_time_of_day+desc&limit=5000

Things to consider

Query row limits

Queries from the Looker–Power BI Connector will automatically include a LIMIT 5000 statement unless the Looker user account has the download_without_limit permission. If the Looker user account has download_without_limit, queries from the Looker–Power BI Connector have no imposed query row limit.

Explore filters

If the Looker Explore is defined with always_filter or conditionally_filter LookML parameters, the filters will be applied to queries in the Looker–Power BI Connector, even though the filters won't be visible in Power BI.

Supported dimension group timeframes

For the dimension_group of type: time, only the date and time timeframes are supported with the Looker–Power BI Connector. Other timeframes will be hidden.

Known issues

The following is a known issue with the Looker–Power BI Connector:

  • Numeric dimensions and measures both render as measures (see Dimension and measure fields for a description of dimensions and measures). To use a numeric dimension as a dimension, you must first change it to Not Summarized in Power BI Desktop.