hornbill / rPowerBIHornbillDataSources

R Scripts to enable Power BI to use the Hornbill Reporting and Trend Engine APIs as data sources
https://wiki.hornbill.com/index.php/PowerBI_Reporting
Other
0 stars 1 forks source link

Power BI R Script Data Sources for Hornbill Reporting And Trend Engine

Overview

These example scripts have been provided to enable Power BI administrators to build reports and dashboards using Hornbill Reporting and Advanced Analytics Trend Engine data as their data source(s).

Dependencies

The scripts have been written in R, and were developed using the following:

The following packages are required dependencies, and can be installed via the CRAN repositories:

Configuration used in all scripts

Each script requires the following variables to be set (all case-sensitive):

Each script an be configured to use a proxy for access to your Hornbill instance. Set all of the below to NULL to not use a proxy. If using a proxy, the proxyAddress and proxyPort are the minimum required to be provided.

Scripts

PowerBIDataSource_Report.R

This script will:

Script Variables:

PowerBIDataSource_HistoricReport.R

This script will:

Script Variables:

PowerBIDataSource_TrendingData.R

This script will:

Script Variable:

Outputs: As the response parameters from the Trending Engine is fixed (unlike the Reporting engine, which has user-specified column outputs), the output for this report will always consist of the following columns:

Power BI Notes

These scripts have been designed to be used as data sources only, and not as the source of R script visuals within Power BI. Which is not to say they couldn't be used in your R script visuals, with a little extra code :)