Integrating Power BI with Microsoft Dynamics NAV 2017

Hi guys,

Today I am writing another post on the topic how to connect power bi with Microsoft dynamics NAV 2017. The agenda of today’s topic will be:

  • Introduction
  • Pre-requistes
  • Steps to integrate


PowerBI is a great reporting tool which allow us to make interactive reports, 3D charts. All power BI need is the Data set. The purpose of this post is once we developed the report on power bi then how we  can see in dynamics nav. In Dynamics NAV 2017, Microsoft introduced the functionality to integrate power BI with dynamics NAV.


  • You must have Dynamics NAV 2017 installed on a machine. This machine should be available on the internet (it should have open ports for the OData service of dynamics nav service tier ).
  • You must have Power BI subscription. If you do not have Power bi subscription then sign up for power bi free version here
  • You must have azure subscription on the same id on which you have subscribed power bi. This is important because if you don’t you will not able to register power BI app in Azure App registration portal.

Steps to develop Power BI report

  1. First of all download and install Power BI Desktop. You can download it from here.
  2. Go to the Dynamics NAV Administration Console. Under Client Services Fast tab mention the public base URL in the Web Client and Windows Client field and click Save.1
  3. Restart your NAV Service.
  4. Expose the Objects as an OData Webservice in Dynamics NAV for which you want to make a Power BI report (for instance: Sales Dashboard)
  5. Copy the URL available in oData field on the Web service page.2
  6. Open Power BI Desktop Application and sign in with your power BI credentials.
  7. Click on Get Data and select OData Feed.
  8. Paste the URL you have copied in step 5. Truncate that URL till the company name e.g‘CRONUS_INTERNATIONAL)
  9. Once you have get the data set select the table. Apply filters if there is any.
  10. Drag and drop the chart and select the field you want to display in the report.
  11. Once the report has been developed, then click on publish buttion. It will publish to the power bi online. Now you can access your report on your PC, Web, Mobile device almost anywhere!

Steps to Integrate Power BI and Azure

  1. Open Dynamics NAV Windows Client and Search for Assisted Setup.
  2. Once the Assisted setup page has been opened select the line SETUP AZURE DIRECTORY.
  3. Click on it and the setup wizard gets started.
  4. Click on next and you will have two URLs in the textbox which is Home page URL and Reply URL.3
  5. Copy the Reply URL you get on Step 4.
  6. Now go to Azure Portal (link). On the left sidebar, scroll down and click on More Services.
  7. Under More Services search for App registrations and open it.4
  8. Click Add and give the name of your app e.g. Power BI
  9. Select “Application Type” Web API to integrate Power BI in the Web Client or Native App if you want to integrate Power BI in the Windows Client.
  10. On the Sign-on URL, paste the URL you have copied on step 5.
  11. Click Create. It will create your app.
  12. Now Under API Access section select Required Permission Tab. Once the permission page has been opened Click Add. Under API Selection, select “Power BI Service”. This app works as an intermediate authentication layer which communicates with the Power BI and Dynamics NAV.5
  13. Under permissions tab, select all the permission one by one and click add. It will add the permissions to your app.
  14. Now Under API Access section, click on Keys option, give any name to the key and select the duration you want your key to valid to and click save. It will generate the Key for you. Copy this key and keep it safe because you will not able to see that key again. 6
  15. Paste the above key in the Dynamics NAV Setup wizard Key field.
  16. Copy the Home page URL from Dynamics NAV setup wizard.
  17. Now go to application properties and paste the URL into Homepage URL field which you have copied in step 16.7
  18. From Properties page, copy the application id and paste it in Dynamics NAV Application ID field setup wizard.
  19. Click on Finish to exit the setup wizard.
  20. Now go to Home of your Windows/web Client and click on Get Reports.
  21. It will show the pop up to authorize the Azure Service. Click on Authorize Azure service and the pop up will open which will ask for your email address and password.
  22. Provide the same email address and password which you have used for Power BI and Azure Subscription. REMEMBER, it should be same.
  23. If you have done all the steps correctly your app has been authorized and you will be able to see the report you have published to Power BI online. If the app is not authorized and gives error, then you need to check because there is something wrong.
  24. Now open your Dynamics NAV web client and on the home page click on Get Report. Select the report and you will able to see your power BI app in Dynamics NAV Web



Author: zohaib.ahmed

I am an IT professional, a GEEK by nature who loves to get his hands dirty by experiencing new technologies in the domain of computer science. I am doing development in different domain since last 3 years. Right now, I am working as a Dynamics NAV technical consultant.