Reading list Switch to dark mode

    Guide for Magento 2 Power BI Connector

    Updated 30 August 2023

    Magento 2 Power BI connector extension enables the connection between your Magento 2 e-commerce platform and Microsoft Power BI, a powerful business intelligence and data visualization tool.

    The extension facilitates the seamless transfer of relevant data from your Magento 2 store to Power BI for in-depth analysis, reporting, and visualization. The admin can export the order and invoice-related data to Power BI.

    After the data has been exported to Power BI, the admin can generate the report at the Power Bi console and these reports can then be accessed from the Magento 2 backend.

    Features

    • Connect your Magento 2 store with the business intelligence tool Microsoft Power BI.
    • Create and export datasets of sales order and sales invoice tables.
    •  Visualize PowerBi reports and dashboard from Magento 2 backend.
    • Create a dashboard in Power BI for your workspace and view it in the Magento 2 backend.

    Installation

    #Download Module

    Firstly, you need to log in to Webkul Store, go to My Account>My Purchased Products section, verify and then download and extract the contents of this zip folder on the system.

    #Upload Folder

    Once the module zip extracts, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

    Searching for an experienced
    Magento 2 Company ?
    Find out More
    upload-folder

    #3 Run Commands

    You need to run the following commands:

    • php bin/magento setup:upgrade
    • php bin/magento setup:di:compile
    • php bin/magento setup:static-content:deploy
    • php bin/magento indexer:reindex
    • php bin/magento cache:flush

    Language Translation

    For translating the module language, navigate through src/app/code/Webkul/PowerBiConnector/i18n and edit the en_US.csv file. Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.

    save-csv

    Now, upload it to the path src/app/code/Webkul/PowerBiConnector/i18n where the installation of Magento 2 is on the server. The module translates into the Arabic Language. It supports both RTL and LTR languages.

    The user can edit the CSV like the image below.

    Edit-CSV

    How to get the Credentials?

    First of all, you must have a Microsoft Outlook account to access the Power BI account and the Microsoft Azure account(to create the application there to get the API credentials to be used while configuring at Magento 2 backend).

    To create a Microsoft Outlook account, tap this link.

    Generate the keys at Azure:

    Navigate to the Microsoft Azure login section, and tap on the Sign In option in the top right-hand corner.

    Azure

    This brings the section to sign in with the Microsoft account. Here, enter the details and tap the next button. After that, enter your password and tap the Sign in button.

    Screenshot-from-2023-08-09-17-20-46

    After signing in, go to all services and tap the Active Directory option.

    Screenshot-from-2023-08-09-17-23-59-1

    This brings up the below section. Here tap on the App registrations option on the side panel.

    Screenshot-from-2023-08-09-17-26-23

    After that, tap the New Registration option to register a new app. Now, enter the app name choose the supported account types, and tap the Register button after that.

    Screenshot-from-2023-08-09-17-30-20

    Thereafter, you can see the credentials being generated for the application that we created.

    Screenshot-from-2023-08-09-17-33-50

    Now here, you will get the –

    • Client ID
    • Tenant Id

    How to get the Client Secret:

    Now, in the same side panel section, go to Certificates & Secrets and tap the New Client Secret option.

    Screenshot-from-2023-08-09-17-42-02

    This brings the section to add a description for the Client secret, enter the same, and tap the Add button after that.

    Screenshot-from-2023-08-09-17-44-10

    After tapping the Add button, the Client’s secret key will be generated.

    Screenshot-from-2023-08-09-17-46-46

    Note: You need to copy the Value for the secret key. This is displayed only once, so copy it somewhere safe for use at a later time in the extension configuration part.

    Configure Platform & Set Redirect URL:

    Now, on the side panel for the app, go to Authentication->add a platform->web.

    Screenshot-from-2023-08-09-17-50-59

    After tapping on the Web, you have to enter the redirect URL. Enter the base URL of your website like www.example.com/ and give the permissions and tap the Configure button for the app.

    Screenshot-from-2023-08-09-17-54-28

    Initial Configuration Settings

    To make the initial configuration settings for the Magento 2 Power BI Integration extension, navigate through Stores ->Configuration – >Power BI.

    magento234.webkul.com_m2465_pub_admin_admin_system_config_index_key_a2bf03f75c88cb03c0cd23aa5ef2dbb4746591cbf3e9c643128288f824dc332d_asd

    Here, the admin will –

    • Enable the Power BI feature for the Magento 2 store.
    • Enter the Client ID.
    • Enter the Client Secret Key.
    • Enter the Power BI User Name (The Outlook email ID that was used to log in to the BI account).
    • Power BI Password(Enter the password of the Power BI email ID used for login at Power BI).
    • Enter the Tenant ID.

    After entering all the data, tap the Test Connection button to check if the connection is successful.

    magento234.webkul.com_m2465_pub_admin_admin_system_config_index_key_d7ca7b7e1a9518c1750641203cf46ff3d4d799b2107675400c83230321d951ad_asd-1

    Now, the token, and refresh Token will automatically be generated.

    Lastly, Save the configuration settings.

    Admin Options – Magento 2 Power BI Connector

    After the successful installation and enabling of the extension from the initial configuration settings, the admin can see a Power BI option and different options under that as per the snapshot below.

    magento234.webkul.com_m2465_pub_admin_admin_dashboard_index_key_d783ee2d18fa1d542cd597ffb68041cf85f4d7ef211beb972779986797d1732b_asd

    Note:

    • First, create a workspace.
    • Then create a dataset.
    • After that create tables for the data sets.
    • Then go to the datasets and publish the datasets.
    • After that go to the table section and export the data to Power BI.
    • Then go to the Power BI console and create the reports and dashboard for the workspaces and save them.
    • Come to the workspace section at the Magento 2 end and import the reports and dashboards.
    • Go to the sections of the report and view the reports for the orders and invoices.
    • Go to the dashboard section and view the dashboard for the respective workspaces.

    Workspace

    Under this section, the admin will find all of the created workspaces if any. The admin can edit and delete the workspaces as required.

    magento234.webkul.com_m2465_pub_admin_powerbi_workspace_index_key_d9dd0f408f5107251b62b1fd17b6a91150ba7c0717a6ddc6606fe2770aa0ce5e_asd

    Add Power BI Workspace:

    To create a Workspace tap the Add Workspace button and that opens the below section.

    magento234.webkul.com_m2465_pub_admin_powerbi_workspace_add_key_25edb79a24ca48dcfa040f47a4a2e374abccc93fdab4980aa82ad4879a1147c0_asd

    Enter the workspace name and tap the Create/Edit Workspace button to save the workspace.

    Datasets

    Add Power BI Dataset.

    Under this section, the admin will find all of the added datasets if any.

    magento234.webkul.com_m2465_pub_admin_powerbi_dataset_index_key_b5b1114172d188597dd8ad9eaf29e6b6d07bb1dd92905494c4098e2484ab9485_asd

    The admin can add, edit, or delete the datasets as required.

    To add a new dataset tap the Add Dataset button and that brings up the below section.

    magento234.webkul.com_m2465_pub_admin_powerbi_dataset_add_key_449b8c59bd687edff6863f6c92910bbef771e0ffbf1a985888e002d5e6190ebf_asd

    Here, for the dataset the admin will –

    • Enter the Dataset name
    • Choose a Workspace from the list of already created ones.
    • Choose the type as temporary or permanent as required.

    Lastly, save the dataset.

    After saving the dataset it will gets displayed under the list of the datasets.

    magento234.webkul.com_m2465_pub_admin_powerbi_dataset_index_key_90323db3dd60341d18a3d7fe603895d4667ecb3322f27171a6318416d1242a4b_asd

    The status will be To publish when you create the same for the first time. To publish it, first you need to create a table for the same and then you can come back to this section and publish it thereafter.

    To publish the dataset, just tap on the Publish button.

    magento234.webkul.com_m2465_pub_admin_powerbi_dataset_edit_entity_id_5_key_4cc68dce81a10002fbb3519e721d16d5e31bb25bcac2474d708a9da467d7e560_asd-2

    After publishing you can see the success message for the same.

    magento234.webkul.com_m2465_pub_admin_powerbi_dataset_index_key_c6f711594b733d835148575bddce146797ca44660bf610cb06e3b55a64e1e9f7_asd

    Table

    Here, the admin will find all of the tables created. The admin can edit, delete or add a new table as required.

    magento234.webkul.com_m2465_pub_admin_powerbi_table_index_key_482873defc0eaa628d6d3ba3c6f8f4c18aa61ea929eec4a51f4b49406e74139a_asd

    To add a new table tap on the Add Table button and that brings up the below section.

    magento234.webkul.com_m2465_pub_admin_powerbi_table_add_key_3cb6a04f429f98dd8e608e40c2000bd7ec28309e52a4812133dcf8d6e0b14243_asd

    Here, the admin will –

    • Add the name for the table.
    • Choose the report table as an Invoice.
    • Choose the respective dataset for this table.

    Lastly, save the table by tapping the Save Table button.

    After saving the table, you can see the respective table in the listing.

    magento234.webkul.com_m2465_pub_admin_powerbi_table_index_key_482873defc0eaa628d6d3ba3c6f8f4c18aa61ea929eec4a51f4b49406e74139a_asd-1

    Note: After creating the table in the above step, you have to navigate to the dataset section and publish the dataset.

    After this step, when you come back to this section you can see the table being published.

    magento234.webkul.com_m2465_pub_admin_powerbi_table_index_key_87fb2a7f5ec033ad9e7c8243896832a305ef34089572ab3b71ab3f529b99264e_asd

    Thereafter, the admin will export the table data to Power BI. For the same, edit the respective table and tap the export button on the top right-hand corner.

    magento234.webkul.com_m2465_pub_admin_powerbi_table_viewpublish_entity_id_5_key_a2d71782782819de7db9004b04b4c3cf57ec389a010dde165692b1165475d59d_asd

    After that, you can see a success message for the same.

    magento234.webkul.com_m2465_pub_admin_powerbi_table_index_key_87fb2a7f5ec033ad9e7c8243896832a305ef34089572ab3b71ab3f529b99264e_asd-1

    Access your Power BI Console:

    Now, navigate to this link to access your Power BI console.

    You can log in using your Microsoft Outlook account credentials.

    app.powerbi.com_singleSignOn_experiencepower-biruhttps3A2F2Fapp.powerbi.com2Fhome3Fexperience3Dpower-bi26noSignUpCheck3D1asd

    After login, you can see your Power BI dashboard as per the snapshot below.

    app.powerbi.com_home_experiencepower-biasd

    Now, from the side panel select the Workspace that you want to work on. Here, you can see all of the Workspaces imported from the Magento 2 store.

    Select the one that you want to work on.

    app.powerbi.com_home_experiencepower-biasd-1

    Let’s choose the Orders data that we had created at the Magento 2 store end. After selecting the same you can see the dataset that we had created at the Magento 2 store end, select the same.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_list_experiencepower-biasd

    After selecting the order dataset you can see the option to create a report and the tables data that can be used for creating the report.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_list_experiencepower-biasd-1

    Tap the Create a Report option and choose Start from the scratch option.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_list_experiencepower-biasd-2

    After that select the order table data that you want to use for the report and the particular graph for the same will be generated as per your selections.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_datasets_00eaf4ad-7ac5-4d16-99b3-bc0850ee4223_experiencepower-biasd

    Now, save the report by choosing the option.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_datasets_00eaf4ad-7ac5-4d16-99b3-bc0850ee4223_experiencepower-biasd-1

    After tapping the Save button, you need to give a name for the report and choose the Workspace for the same. After that, tap the Save button to save the report for the orders.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_datasets_00eaf4ad-7ac5-4d16-99b3-bc0850ee4223_experiencepower-biasd-2

    In a similar way, we can proceed with the Invoices Workspace and save the report for the same.

    app.powerbi.com_groups_63462873-2245-4771-843a-c7a3d861fc6d_datasets_16d9580b-4818-4ed0-a261-9fd579fe56bc_experiencepower-biasd

    In a similar way, you can save the dashboards for the various workspaces as well.

    Reports

    After all the above sections have been configured, the admin will first navigate to the Workspace section and import the reports for the various workspaces created.

    magento234.webkul.com_m2465_pub_admin_powerbi_workspace_index_key_82eeaf836a0f1b4d59d521241d32e0a210b670d7403607575dba6ef814b4f111_asd

    Choose a workspace and edit it.

    magento234.webkul.com_m2465_pub_admin_powerbi_workspace_edit_entity_id_4_key_ce0c6fb7397502168f9e39503e795f4a1266c7ffae4c58601cb9039f72f52ec6_asd

    Now, tap the import report option and the report will get imported

    magento234.webkul.com_m2465_pub_admin_powerbi_workspace_index_key_d1d690468f085ed6a392e9f847f6ab87713c9b515fd4c7ea62b7037e2185f59b_asd

    Now, under the Reports section, you can see the Power BI reports.

    magento234.webkul.com_m2465_pub_admin_powerbi_report_index_key_11a70a315d729d9d530ed8af6ec5c235f45db2f4e3ae38349d860c2beed7b9c1_asd

    To open a Power BI report, tap the Report Web View link for the respective report. Below find the order report.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_reports_f18d6603-df97-472f-8b1c-2cf75f023b8e_ReportSection_experiencepower-biasd

    Invoice Report: In a similar way, go to the invoice workspace and import the report. Then come to the reports section to find the same.

    magento234.webkul.com_m2465_pub_admin_powerbi_report_index_key_11a70a315d729d9d530ed8af6ec5c235f45db2f4e3ae38349d860c2beed7b9c1_asd-1

    Tap the Report Web View link and that brings up the report for the same at the Magento end.

    app.powerbi.com_groups_63462873-2245-4771-843a-c7a3d861fc6d_reports_8f2f4e0f-55f3-4f09-a530-d15f7b695568_ReportSection_experiencepower-biasd

    Dashboard

    For the dashboard view for the workspaces that you have created, you need to create the dashboards in the first place.

    Navigate to your Power BI account, and select a workspace that you have created at the Magento 2 end. After that, tap on the new option and choose dashboard.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_list_experiencepower-biasd-3

    Then give a name to the dashboard and save it.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_list_experiencepower-biasd-4

    Now, go to the Magento 2 backend and navigate to the Workspace section. Select the workspace for which you have generated the dashboard and tap the Import Dashboard option.

    magento234.webkul.com_m2465_pub_admin_powerbi_workspace_edit_entity_id_4_key_ce0c6fb7397502168f9e39503e795f4a1266c7ffae4c58601cb9039f72f52ec6_asd

    After, that come down to the Dashboard section and you will find the option to view the dashboards for your created workspaces.

    magento234.webkul.com_m2465_pub_admin_powerbi_dashboard_index_key_6254238aebe40c020a608d3978e40340aec84a8c91a3105d29a92fcb53a4ee75_asd

    Tapping the Dashboard Web View link will display the dashboard in Power BI for the respective workspace.

    app.powerbi.com_groups_0d772366-9993-48dd-8081-10f13475b2d1_dashboards_a3e52341-aef6-4b42-b5d0-3ac7a11246a7_experiencepower-biasd

    Support

    That is all about the Magento 2 Power BI Integration extension. If you have any queries regarding the plugin, please contact us at Webkul Support System.

    If you’re looking to create a custom e-commerce website, it’s a great idea to hire Magento developers who can help you build a powerful and scalable online store.

    You can also check our complete Magento 2 extensions.

    Current Product Version - 5.0.0

    Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content