CSM 10.4 Documentation

Home

Using Power BI and the Data Connector

You can connect the Power BI® third-party reporting tool to the Cherwell REST API and retrieve data from CSM using the Power BI Data Connector from Cherwell.

For detailed information on installing and using the Microsoft® Power BI third-party tool, see the Microsoft documentation at https://docs.microsoft.com/en-us/power-bi/ .

Connecting Power BI and the Data Connector

Important: We recommend you install the August 2020 version (2.84.701.0) of Microsoft Power BI Desktop and use the included Microsoft certified Cherwell Power BI Data Connector. For more information, see Using Search Data with Third-Party Reporting Tools.

Alternatively, you can obtain and install the Cherwell Power BI Data Connector via either the CSM Desktop Client or CSM Browser Client.

Note: Installing the connector from CSM may be useful if you are using a different version of Power BI that does not include the Cherwell Power BI Data Connector. However, installing the connector manually means it is not Microsoft certified. Consequently, some additional steps are required.
To install the connector into Power BI from CSM:
  1. Open Power BI Desktop.
  2. Select Security, and then under Data Extensions select the Allow any extension to load without validation or warning option.
  3. Close Power BI Desktop and perform one of the following:
    • From the CSM Desktop Client menu bar, select Searching > Install PowerBI Data Connector. This copies the .mez file (the file type for the Power BI Data Connector) into the correct folder so it can be used without further configuration.

    • From the CSM Browser Client menu bar, select Searches > Download PowerBI Data Connector.

      This only downloads the file to the user's machine. You must copy and add this file to the local path ([Documents]\Power BI Desktop\Custom Connectors) before it is recognized by Power BI.

      You must restart Power BI after this step.

      For more information on connector extensibility, see https://docs.microsoft.com/en-us/power-bi/desktop-connector-extensibility/.

Warning: If you install the Power BI Data Connector from the CSM Desktop Client, any old connectors associated with CSM are automatically removed. We recommend backing up any old connectors associated with CSM before completing this step.
Note: When copied, the .mez file includes "Cherwell" in its file name and, in Power BI, displays a Cherwell icon to indicate its association with CSM.

Using Power BI and the Data Connector

  1. Open Power BI.
  2. From the main toolbar, select Get Data > More.
  3. Select the Other category, then select the Cherwell Data Connector.
  4. Select Connect.

    The Cherwell pop-up dialog is displayed.

    Cherwell pop-up dialog for Power BI

  5. Enter the API URL.

    You can obtain this from the REST API Base URL setting in CSM Administrator. For more information, see Set the Base URL for the Cherwell REST API.

    Note: Only HTTPS API URLs are accepted. Accordingly, you must enable HTTPS for your Cherwell REST API.
  6. Enter a Client ID. For more information, see Obtaining API Client IDs.

    This is the Client Key. For more information, see Configuring the Cherwell REST API.

  7. (Optional) Enter a Locale. For information on using locales, see Using Locales with Power BI .
  8. (Optional) Enter a Saved Search URL. For information on using Saved Searches, see Using Saved Searches with Power BI.

  9. Select OK.
  10. (Optional) If prompted to sign in, select Sign in, and enter your CSM username and password. Alternatively, if SAML is enabled, enter your SAML credentials. Select Login.
  11. Select Connect.

In the Cherwell pop-up dialog, if you:

  • Did not enter a Saved Search URL, data is returned and displayed in a Navigation Table. For more information, see Using Navigation Tables in Power BI.
  • Entered a Saved Search URL, data is returned and displayed using the default Grid for the Business Object. You can create tables to view the data.

Warning: For the best experience (improved data formatting and transfer), we recommend only entering an API URL and not a Saved Search URL.

Sharing Cherwell Reports/Dashboards via Power BI

You can share Cherwell Reports and Dashboards via the Microsoft Power BI cloud service. This lets users access live versions of the Reports and Dashboards containing regularly refreshed and up-to-date information (as opposed to information relevant at the time of publishing).

To share Cherwell Reports and Dashboards via the Power BI cloud service you must:

After completing the above setup steps, you must complete the following tasks in order:

  1. Install and set up an on-premises data gateway.
  2. Create and publish a Power BI report.
  3. Configure the dataset in Power BI.
  4. Configure the scheduled refresh settings.

For more information, see below.

Step 1: Install and set up an on-premises gateway

Note: This step is only required if your CSM instance is hosted on-premises and the Cherwell REST API is not accessible from the public internet.

For the Power BI service to refresh data from the custom connector, you must install an on-premises data gateway on a machine reachable by the Power BI remote services. For information, see https://powerbi.microsoft.com/en-us/gateway/.

When you have installed the on-premises data gateway, complete the remaining steps below.

Step 2: Create and publish a Power BI report

  1. Complete the steps in Using Power BI and the Data Connector.
  2. Publish the report (for more information, see https://docs.microsoft.com/en-us/power-bi/desktop-upload-desktop-files/).

Step 3: Configure the dataset in Power BI

  1. Log in to the Power BI online dashboard at https://app.powerbi.com/.
  2. Using your workspace, open your datasets. For more information, see https://docs.microsoft.com/en-us/power-bi/service-datasets-across-workspaces/.

    Your datasets are displayed.

  3. Open the settings for the relevant dataset.
  4. Ensure the gateway connection you previously set up is registered and running. For more information, see https://powerbi.microsoft.com/en-us/gateway/.
  5. Check the data source credentials.

    Note: If the data source cannot be refreshed owing to invalid credentials, a message is displayed asking you to update your credentials. If necessary, edit your credentials and sign in to begin the OAuth login process with the Cherwell REST API. Log in using your CSM credentials. Alternatively, if SAML is enabled, enter your SAML credentials.
  6. To ensure the data source is set up correctly, perform a manual refresh of the report (for more information, see https://docs.microsoft.com/en-us/power-bi/refresh-data/).

Step 4: Configure the scheduled refresh settings

In the Power BI online dashboard, set and apply the appropriate scheduled refresh options. For more information, see https://docs.microsoft.com/en-us/power-bi/refresh-scheduled-refresh/.

When a scheduled refresh happens, a message is displayed in the dataset settings. You can view a history of in progress and completed scheduled refreshes.

To avoid authentication issues in Power BI, see Authentication in Power BI .

Note:
  • Scheduled refreshes are limited to a minimum of 30 minute intervals. For example, you can schedule two refreshes for 4:00pm and 4:30pm, but not 4:15pm.
  • We recommend you configure two daily schedules at different times of day. This means the refresh token will never be more than 1440 mins (24 hours) old before it is replaced.

    For security reasons, the maximum scheduled refresh token lifespan for Cherwell REST API client IDs in CSM is 1440 minutes (24 hours). This is also the default setting.

    Power BI lets you schedule refreshes either daily or weekly. Consequently, if you configure a weekly scheduled refresh, authentication will fail a week later owing to the refresh token having expired.

    Furthermore, Microsoft’s daily scheduled refresh option doesn’t run at an exact time. For example, a daily scheduled refresh for 6:00 AM might run at 6:03 AM one day and 6:05 AM the next. Accordingly, even daily scheduled refreshes might encounter issues if the token expires after exactly 24 hours. Using two daily scheduled refreshes at appropriately different times should prevent this.

Using Navigation Tables in Power BI

When configuring the Power BI data connector, in the Cherwell pop-up dialog, if you did not enter a Saved Search URL, on connecting, data is returned and displayed in a Power BI Navigation Table.

For more information on using Power BI Navigation Tables, see https://docs.microsoft.com/en-us/power-query/handlingnavigationtables/.

Grids displayed in the Navigation Table are those applicable to the parent association (displayed in parentheses). There is also a default Grid option (displayed without parentheses).

Grids are maintained in CSM Administrator. For more information, see Grids.

Warning: In a Navigation Table, although you can select check boxes for multiple Grids, only the most recently selected Grid is displayed in the preview in Power BI.

Using Locales with Power BI

When configuring the Power BI data connector, you can set locales to translate data into different languages. For example:

Using Locales with Power BI

You could set the Locale to "de-DE" to translate data into German, or "fr-FR" to translate data into French, for example.

Note:
  • The entered locale must relate to a culture enabled within your CSM instance.
  • In Power BI Desktop, you can set a locale. For more information, see https://docs.microsoft.com/en-us/power-bi/supported-languages-countries-regions/.

    The locales specified in both the Cherwell pop-up dialog and Power BI Desktop must match. This also applies for any defaults set in Power BI Desktop.

    If locales in the Cherwell pop-up dialog and Power BI Desktop do not match, Power BI may interpret dates incorrectly owing to mismatched localized date formatting.

On completing the necessary details in the Cherwell pop-up dialog, select OK.

Note:

You may be asked to sign into your organizational account.

Owing to limitations in the Power BI third-party reporting tool, it is not possible to localize the resulting Cherwell Service Management sign in dialog. Consequently, this sign in dialog is always displayed in your CSM instance's default language.

On connecting, any data or tables are loaded and displayed in the language relevant to the locale.

Using Saved Searches with Power BI

When configuring the Power BI data connector, you can quickly access required data in the correct format by using Saved Searches (for more information, see About Saved Searches) and Grids (for more information, see Grids). For example:

Using saved searches with Power BI

Warning: For the best experience (improved data formatting and transfer), we recommend only entering an API URL and not a Saved Search URL. You can then select a Saved Search (and a result Grid to use) from the displayed Navigation Table. For more information on using the Power BI Navigation Table, see Using Navigation Tables in Power BI.

Copy the URL for a Saved Search (for more information, see API URL for a Saved Search). You can then paste the copied URL into the Saved Search URL field in the Cherwell pop-up dialog.

On completing the necessary details in the Cherwell pop-up dialog, select OK.

Note:
  • Only HTTPS Saved Search URLs are accepted. Accordingly, you must enable HTTPS for your Cherwell REST API.
  • You may be asked to sign into your organizational account.

    Owing to limitations in the Power BI third-party reporting tool, it is not possible to localize the resulting Cherwell Service Management sign in dialog. Consequently, this sign in dialog is always displayed in your CSM instance's default language.

On connecting, the Saved Search data is loaded into Power BI and displayed using the default Grid for the Business Object. You can create tables to view the data, and build reports.

A Power BI Navigation Table is not displayed for Saved Searches. Consequently, we recommend only entering an API URL in the Cherwell pop-up dialog and using the Power BI Navigation Table. For more information, see Using Navigation Tables in Power BI (above).

To avoid authentication issues in Power BI, see Authentication in Power BI.

Using Grids with Power BI

When using the Power BI third-party reporting tool with the Cherwell REST API you can use a Grid to display details returned by a Saved Search. You can modify the Grid to specify column selection. For more information, see Grid Options for Third-Party Reporting Tools.

When using the Power BI Data Connector from Cherwell with a Navigation Table (for more information, see Using Navigation Tables in Power BI), you can:

We recommend you create a new Grid to use with Saved Searches when using Navigation Tables in the Power BI third-party reporting tool. This lets you select and order Grid columns in a way that applies across multiple CSM user accounts. This preferred method adheres with our recommended approach for managing authentication. For more information, see Authentication in Power BI.

Note:

You can optionally use Saved Searches with the Power BI Data Connector from Cherwell and modify the default Grid for the relevant Business Object. For more information, see Grid Options for Third-Party Reporting Tools.

Authentication in Power BI

Due to licensing limitations and to avoid unexpected authentication failures, we recommend you use separate and unique CSM user accounts when you:

  • Author/publish reports.
  • Set credentials within the Power BI Online service.

When the Power BI environment executes a scheduled refresh (for more information, see Sharing Cherwell Reports/Dashboards via Power BI) it makes a request to the Cherwell REST API to refresh the authentication token it previously received when initially setting up the data source credentials within the Power BI online service.

Problems occur if you use the same CSM user account to set up credentials for a data source in the Power BI online service and subsequently log in to the Cherwell REST API from another location (example: creating another report in Power BI).

Under these circumstances, the refresh token state associated with the authentication flow present within the Power BI Service for that CSM user account is invalidated. The scheduled refresh fails with a 400-based network error containing details related to an OAuth failure.

Note: Because this approach is not specific to a single CSM user account, we recommend creating a new custom Grid as the preferred method of configuring Grid column selection. For more information, see Using Grids with Power BI .

Was this article useful?