Exporting PowerSteering Data into Microsoft Excel using Power Query
PowerSteering can be integrated with Microsoft Excel via Power Query. By doing so, PowerSteering data can be exported via REST API and viewed directly in Excel:
Power Query is Microsoft's data connectivity and preparation technology. It allows users to easily access data from a variety of sources and shape it to their needs. Fortunately, it simplifies the process of accessing data via the PowerSteering API, with little to no coding required. For more information on Power Query, see the Microsoft website.
Note: Power Query is included with Excel 2016 (or any later version). If you are using Excel 2010 or 2013, you may need to download it separately. You should contact your office administrator if you currently do not have access to Power Query through your version of Excel.
This page will walk you through how to set up a simple integration between Microsoft Excel / Power Query and PowerSteering via the API. Once these two programs integrate, you can view and organize PowerSteering data directly in Excel.
Tip: This process requires some knowledge of RESTful API. If you are new to working with APIs, you may want to consult someone who has some prior experience.
To integrate PowerSteering with Excel / Power Query:
-
Select RESTful API Help from the "Help" menu:
-
Select the Examples button:
-
Select which type of data you would like to pull into Excel using the "Services" drop-down menu under "More examples".
Note: For the sake of simplicity, "Tag Service" will be our example.
-
Specify which data you would like to pull using the "URL" drop-down menu:
-
Select the Show button.
-
Copy the URL that appears under "JSON Request: GET":
-
Paste the URL in a separate browser tab and press ENTER on your keyboard.
Note: This will display your requested data in JSON format:
Tip: You should verify the "count" in the first line to ensure that your request has pulled your preferred amount of items. For example, we can see that the API call above has pulled 56 Tags:
By default, PowerSteering will max out at 1000 items. If you would like to change this number, contact your PowerSteering representative. -
Open up a "Blank Workbook" in Excel:
-
Select the Data tab.
-
Open the Get Data menu and select From Other Sources and then From Web:
-
Paste the URL from Step 6 into the "URL" field in the window that appears and select OK:
-
Select the Basic tab from the "Access Web Content" window that appears.
-
Enter your PowerSteering user name and password into the applicable fields.
-
Select the level directly after "...psteering.com/" from the "Select which level to apply these settings to" drop-down menu:
-
Select the Connect button.
-
Select the Load button.
Note: After selecting Load, a single row will appear in Excel indicating the item count. Also, a "Queries and Connections" window will appear on the right-hand side of Excel with the query you just added:
-
Double-click on the query to open the Power Query Editor.
-
Right-click on the "Table" cell and select Drill Down to open up a more detailed view of your dataset.
-
(Optional) Select any of the column drop-down buttons to sort or filter the data before loading it into your Excel workbook:
Tip: Visit Microsoft's Power Query site for tips on editing queries.
-
Select Close & Load:
After selecting Close & Load, your data will be loaded into your Excel workbook: