We use cookies to improve your experience on our website and for marketing. Private Policy.
QUICK START GUIDES
This section provides simple step-by-step instructions on how to setup the infrastructure without going into the details. This might be useful for the initial setup during the evaluation for the users not yet familiar with all concepts.
POWER BI INTEGRATION START GUIDE
This guide is for Power BI Integration extension or Power BI Integration Plus packages that come without Sales Cube data model. If you have Sales Cube, it is better to skip this section and follow Sales Cube Setup Guide that comes next.
Step 1: Installation
Magento 1 extension files can be downloaded from the https://insightsready.com after purchasing the license. Read "Installation" section of this documentation to get more information on how to install the extension on Magento 1.
Magento 2 extensions are distributed using private composer repository. Credentials required to access the repository are available on the website details page on https://insightsready.com.
To install the extension on Magento 2 store, perform the following steps (after purchasing of the extension license):
-
Login to your account on https://insightsready.com/customer/account.
-
Go to "My Websites" and configure the website.
-
Go to "My Licenses" and assign the license to the website.
-
On the website settings page you may find access data for the composer repository.
-
Configure your composer and add repository URI to composer.json file:
[
{
"type": "composer",
"url": "https://repo.insightsready.com/"
}
]
- Add authentication to auth.json:
{
"http-basic": {
"repo.insightsready.com": {
"username": "<user from website settings page>",
"password": "<password from website settings page>"
}
}
}
- Install extension to Magento 2:
composer require bim/power-bi-integration-metapackage-magento2:2.2.16.8
bin/magento setup:upgrade
bin/magento setup:di:compile
Read "Installation" section of this documentation to get more detailed information on how to install the extension on Magento Platform.
Step 2: Setup crontab
Run by crontab the following command every minute:
For Magento 2
bin/magento bim:etl:scheduler
For Magento 1
shell/bim_etl.php scheduler
Step 3: Configuration
-
Obtain extension License Key from Website Details page on https://insightsready.com and enter this key in the configuration of Magento Platform.
-
Register App for Power BI in Azure Active Directory and obtain Client ID and Client Secret. Enter the Client ID and Client Secret to configuration of Magento Platform.
Step 4: Connect to Power BI Service
Open Datasets Page (Reports Datasets). Click on "Connect to Power BI API" button. Provide user and password for Power BI to connect the user with Magento Platform.
Step 5: Create Table Profiles
You can create one or more Table Profiles that you will later include into your dataset. This guide describes the process for creation of one Table Profile that is based on Sales Magento report.
-
Open Magento Report (for example, Sales Report) and fill in the filters. You can start by filtering out for short period of time and extend it later. Show the report with the filters specified. Full list of supported reports could be found in "Table Profiles based on Magento Reports: Supported reports" section of this documentation.
-
Select Power BI as export option and Press the "Export" button.
Step 6: Configure Table Profile
-
Navigate to Table Profile properties page using the link in the message displayed after the creation of the Table Profile or by navigating to Reports Power BI Table Profiles.
-
Here you can change the name of the Table Profile if you want.
Step 7: Create Dataset
-
Open Reports Power BI Datasets page.
-
Click on "Add New Dataset" button.
-
Select "Mixed" if asked to select the dataset type.
-
Fill in the dataset properties such as Dataset Name and Workspace.
-
Switch to Tables tab and add there the Table Profile that you have created in Step 6 before.
-
Save the Dataset.
Step 8: Publish dataset
Publish the created dataset by clicking on "Publish" button on Dataset Properties page.
Step 9: Load data to the dataset
Load data for the created dataset by clicking on "Start Data Loading" button on dataset properties page.
The data loading will begin maximum in a minute. This process will be triggered by crontab. You can check the status of the loading by refreshing the Dataset's page and checking the Loading Status field. Once the loading fill finish, the dataset with its data will be available on Power BI Service ready to be used to create reports and dashboards.
Step 10: Configuring scheduled data updates
-
Configure the Live or Regular scheduler. This could be configured in Magento configuration pages on Insights Ready Data Integration (ETL) Scheduler tab.
-
Enable automated data actualization for the user on the same page (Reports Datasets). Make sure, Magento account is connected to Power BI.
-
Open dataset properties and set Load Mode to the configured schedule (Live or Regular).
Dataset data will be updated automatically.
SALES CUBE SETUP GUIDE
Step 1: Installation
Magento 1 extension files can be downloaded from the https://insightsready.com after purchasing the license. Read "Installation" section of this documentation to get more information on how to install the extension on Magento 1.
Magento 2 extensions are distributed using private composer repository. Credentials required to access the repository are available on the website details page on https://insightsready.com.
To install the extension on Magento 2 store, perform the following steps (after purchasing the extension's license):
-
Login to your account on https://insightsready.com
-
Go to "My Websites" and configure the website.
-
Go to "My Licenses" and assign the license to the website.
-
On the website settings page you may find access data for the composer repository.
-
Configure your composer and add repository URI to composer.json file:
{
"type": "composer",
"url": "https://repo.insightsready.com/"
}
- Add authentication to auth.json:
{
"http-basic": {
"https://insightsready.com": {
"username": "<user from website settings page>",
"password": "<password from website settings page>"
}
}
}
- Install extension to Magento 2:
composer require bim/power-bi-integration-metapackage-magento2:2.2.18.10
bin/magento setup:upgrade
bin/magento setup:di:compile
Read "Installation" section of this documentation to get more detailed information on how to install the extension on Magento Platform.
Step 2: Setup DB Connections and crontab
-
Create new database in MySQL 5.6 or MySQL 5.7 (or in other database, supported by Magento platform).
-
Add connection information with the newly created database to
app/etc/env.php
file of Magento 2 installation under connection name "bim_dwh" (additionally to "default"). On Magento 1 the connection information should be added to app/etc/local.xml file. -
Add connection information for the process of data extraction from Magento. Please, copy "default" configuration and add it as "bim_data_export".
-
On Magento 2 you also need to add "bim_dwh" and "bim_data_export" connections under the "resource" property in
app/etc/env.php
file. -
Configure the crontab to run the following command every minute:
For Magento 2:
bin/magento bim:etl:scheduler
For Magento 1:
shell/bim_etl.php scheduler
Step 3: Configuration
-
Obtain extension License Key from Website Details page on https://insightsready.com and enter this key in the configuration of Magento Platform (Configuration Insights Ready General).
-
Register an App for Power BI in Azure Active Directory and obtain Client ID and Client Secret. Enter the Client ID and Client Secret to configuration of Magento Platform.
-
Configure the Live scheduler to run every 15 minutes (or set another interval for data updates). This could be configured in Magento configuration pages on Insights Ready Data Integration (ETL) Scheduler tab.
Step 4: Connect to Power BI Service
-
Open Datasets Page (Reports Power BI Datasets). Click on "Connect to Power BI API" button. Provide user and password for Power BI to connect the user with the Magento Platform.
-
Enable automated data actualization for the user on the same page (Reports Power BI Datasets).
Step 5: Create Permanent Dataset
-
Open Datasets page (Reports Power BI Datasets).
-
Click on "Add New Dataset".
-
Select "Sales Cube" if asked to select the dataset type.
-
Fill in the dataset properties and save the dataset.
Step 6: Publish dataset
Publish the created Sales Cube dataset by clicking on "Publish" button on dataset properties page.
Please, note that this will crease dataset in Power BI, but will not populate it with data yet.
Step 7 (optional): estimate the amount of data
For the stores with log of data, do the estimation of the amount of data in the dataset to make sure, it does not go over the limitations of Power BI:
-
Open Reports Development Tools
-
Open Sales Cube Capacity estimation tool.
-
Check if there are no tables which exceed the capacity. Also, the page will show estimated time it would take to load all data to Power BI.
-
If there are tables that exceed the allowed capacity, adjust dataset properties to reduce the timeframe or limit amount of stores in the dataset.
-
Once you will make sure that capacity is not increased, proceed further.
Step 8: Load data to the dataset
Trigger the start of data loading. Depending on the amount of data, it may take different time depending on the amount of data and the Power BI account limitations.
To start loading of the data:
-
Open Dataset properties in Magento Platform.
-
Click to "Start Data Loading" button.
-
Refreshing the page will update information in the data loading status field.
To load the dataset manually click on "Load" button on dataset properties page inside Magento Platform (only recommended for the cases when dataset does not have lot of data).
Step 9: Configuring scheduled data updates
Once the initial load is done, user can configure the desired interval for data actualization by configuring Live or Regular schedules and assigning the dataset to this schedule. Additionally it is recommended to configure the clean-up schedule. All created datasets will update full set of data by the clean-up schedule.
-
Configure the desired schedules configuration on the Magento Configuration page, section Insights Ready Data Integration (ETL) Scheduler.
-
Change dataset properties to assign dataset to regular or live scheduler if it is not yet done.
-
Make sure, auto load is enabled for the user (is done in previous steps).
Step 10: Publish Report Templates
After the data will be delivered to PBI (or will start to be delivered), user can upload reports and configure embedding functionality.
-
Navigate to Reports PBI Templates menu inside Magento Platform.
-
Upload each report related to Sales Cube and assign it to newly loaded dataset.
Step 11: Configure embedded content
-
Open Magento Platform configuration page and navigate to Insights Ready
Power BI Integration Embedding section. -
Under the Embedding section, enable all embedded content and specify the datasets and reports for embedding. You will need to know Dataset ID, Report ID, Workspace ID from Power BI Service. Easiest way is to find this information in the URL after navigating to correspondent Power BI content in Power BI Service.