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.
Step 1: Installation
Magento 1 extension files can be downloaded from the www.bimproject.net 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 www.bimproject.net.
To install the extension on Magento 2 store, perform the following steps (after purchasing of the extension license):
- login to your account on www.bimproject.net
- 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:
- Add authentication to auth.json:
"username": "<user from website settings page>",
"password": "<password from website settings page>"
- Install extension to Magento 2:
composer require bim/pbi-sales-cube-metapackage-magento2:18.104.22.168
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 empty database in MySQL 5.6 or MySQL 5.7.
- Add connection information for the new empty database to app/etc/env.php file of Magento 2 installation under connection name "bim_dwh". On Magento 1 the connection information should be added to app/etc/local.xml file.
- Add connection information for reading data of Magento. Please, copy "default" configuration and add it as "bim_data_export".
# File app/etc/env.php in Magento 2
'db' => [
'connection' => [
'default' => [
'bim_dwh' => [
'bim_data_export' => [
'resource' => [
'default_setup' => [
'connection' => 'default'
'bim_dwh' => [
'connection' => 'bim_dwh'
'bim_data_export' => [
'connection' => 'bim_data_export'
# File app/etc/local.xml in Magento 1
4. Run by crontab the following command every minute:
# For Magento 2
# For Magento 1
Step 3: Configuration
- Obtain extension License Key from Website Details page on bimproject.net 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.
- Configure the Live scheduler to run every 2 minutes (recommended interval for initial setup). This could be configured in Magento configuration pages on BIM Extensions -> Data Integration (ETL) -> Scheduler tab.
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.
- Enable automated data actualization for the user on the same page (Reports -> Datasets).
Step 5: Create Permanent Dataset
- Open Datasets page.
- Click on “New”.
- Select “Sales Cube” if asked to select the dataset type.
- Fill in the dataset properties and save the dataset.
Do not Load the Dataset yet if the store has lot of data! Initial load might take significant time (up to 1 day).
Step 6: Publish dataset
Publish the created Sales Cube dataset by clicking on “Publish” button on dataset properties page.
Please, not that this will crease dataset in Power BI, but will not populate it with data yet.
STEP 7 (optional): estimate 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 -> BIM 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 BIM Extensions -> 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
Step 10 and 11 are only for Full version of the Sales Cube package that includes the templates and the embedding functionality.
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 BIM Extensions -> Power BI Integration -> Embedding
- 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 particular Power BI content in Power BI Service.