About this task
These steps are guidance for using Power BI® to collect task, completion, and content data from the AcceleratorKMS APIs. Once the data is gathered, Power BI® can be used to create visuals to assist with analyzing data.
Prerequisites
-
Basic knowledge of Power BI® is required.
These instructions are based on Power BI® application version 2.74.5619.862 64-bit.
-
Open AcceleratorKMS and verify your username and password are correct.
-
Open Power BI®.
A new report is automatically created when you open Power BI®.
-
User: Close the Power BI® Desktop yellow splash screen.
-
On the Home menu, select Get Data > Blank Query to create a new query.
The Power Query Editor operates separately from the main Power BI® window. The yellow icon in the following figure indicates you are in the Power Query Editor.
-
In the Power Query Editor window on the right side, enter a name for your report.
-
On the View menu, select Advanced Editor.
-
In the Advanced editor window, delete the default text.
-
Copy a sample query from the relevant API section and paste into a text editor, such as Notepad.
Samples include placeholders; they must be modified prior to use.
-
In the text editor,
-
Replace both occcurences of AcceleratorKMS_URL with the Accelerator URL for your organization.
-
Replace MyUserName with an AcceleratorKMS username.
-
Replace MyPassword with an AcceleratorKMS password.
-
Using the search criteria relevant to the query, replace the sample search criteria in the line starting with Content = Text.ToBinary, so that the desired results are returned.
-
For example, in Completions query use: Content = Text.ToBinary("{""SearchTerm"": ""start"", ""LimitSearchResults"":10}")
-
Returns first 10 completions created within the last six months for content where the title or description includes the term “start” .
-
Before and after query examples:
-
-
With the modifications made, copy and paste your modified text into the Advanced Editor window.
-
Click Done.
-
At the authentication warning, click Edit Credentials.
-
In the Access Web content window, select Anonymous and click Connect.
-
At the data privacy warning, click Continue.
Do not choose Private as a privacy level; it prevents the query from running.
-
Choose one of the following two privacy levels according to your organization's data privacy policy and click Save:
-
Public
-
Organizational
-
-
Close the Editor window.
We recommend that data only be refreshed in intervals greater than 30 minutes to ensure AcceleratorKMS performance is not impacted. Throttling bounds are in place at the IP address levels as well as across all requests. AcceleratorKMS is typically throttled for 5 minutes between queries for a single user, and 1 minute between queries for different users.
Results
Power BI® is now set to collect data from AcceleratorKMS.