Using Power BI Desktop
You can load data from several reports in IBM® ESG Suite into Microsoft Power BI Desktop by using the Envizi ESG Suite APIs.
About this task
Data is returned in string format from the Envizi ESG Suite API. When you
load data from Envizi ESG Suite, perform the following updates as a minimum:
- Change the data type of all date-related columns to the data type.
- Change the data type of all number columns to the numeric data type, which represents, for example, decimal numbers, whole numbers.
Note:
- It might take some time for the data from the Envizi ESG Suite API to be populated in the Power BI. It depends on the amount of data that you are loading.
- If you use the same login user name on multiple production servers, you will likely encounter a 401 Unauthorized error when using API tokens to connect to the platform. This is a security feature and you require a separate login with a unique user name to generate API tokens.
- Power BI employs a default time out setting for web service API calls. If your API query is large and requires more time than usual to download the data, you can increase the time out setting in the Command timeout in minutes field in the Advanced form in 3.
Procedure
- Open Microsoft Power BI Desktop
- From the main menu, click .
- Select the Advanced radio button and click OK.
- Provider your JWT bearer token. In the HTTP request header
parameters field, select Authorization and enter
Bearer followed by a space and then your access token. For
example:
Bearer bd516f6f775a5f17a2b75db851ec
- Access web content anonymously. In the Access Web content dialog,
choose Anonymous and click
Connect. The Query Editor opens and the data loads.If you do not see this dialog, you might have previously used your username and password to access the request URL. You must remove any credentials that you have saved previously in Microsoft Power BI before you can use the JWT tokens to access the APIs. Go to . Select the request URL that you will use to access the Envizi ESG Suite APIs, and click Clear permissions.Then, reconnect to the API URL by using your JWT token.
- On the Transform tab, click To Table.
- In the To Table dialog, click
OK. Your data is currently organized in a single column.
- Click the two-way expansion arrow in the column header.
- Deselect the Use original column name as prefix checkbox and click
OK. The data displays in tabular format in the Query Editor.
- Use Power Query transform operations to arrange your data, for example, rename columns,
reorder columns, or change the data types of columns. For more information about these changes, see the About this task section.
- Save the query to populate the Power BI data model with the data.
- Use multiple API queries to build your own Power BI report, just as you would do for any Power BI project.