Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
Posted by Author, Curator, Visually Impared Squirrel Literacy Advocate & Dynamics AX Technical Solution Professional (TSP) at Microsoft on
If you ask me, Power BI is the best thing since sliced bread because it gives you a great set of reporting tools. I didn’t think it could get any better until it was released out on Office 365 giving you a hosted solution without the hassle of having to configure your own SharePoint site to host your dashboards on, and also included cool tools like the natural language Q&A feature. It couldn’t possibly get any better than that. But it can, because you can also use the Data Management Gateway to link your on premise data to Office365 making the data available to users that are not even logged in to Dynamics AX through Excel.
Don’t chain up your data within your local system – set it free so that it can help everyone.
How To Do It…
- There is a little bit of setup required though in order to get this working. First you need to create a gateway connection between Power BI and your local Dynamics AX database. To do this, connect to Office 365 and open up the Power BI Admin Center. From there, select the Gateways page and click on the New Gateway link.
- When the New Gateway setup starts, give your Gateway a Name and a Description. Also check the Enable Cloud Credential Store option before clicking on the Create button.
- This will take you to the Install & Register page which will have a unique Gateway Key for you. Don’t close the page just yet.
- If this is the first time that you are doing this then you will need to install the Data Management Gateway client on the local Dynamics AX server (or really any server that is able to access the data). To find the install kit, just click on the Download button.
- This will take you directly to the Data Management Gateway download page.
- Download the install kit and run through the installation wizard.
- After it is installed, a Configuration Manager dialog will be displayed for you to connect your local database to the Office 365 gateway.
- Paste the Gateway Key from the Office 365 Gateway page into the Gateway Key field and then click the Register.
- Then when the Specify Certificate For Credentials page is displayed, select the Use Power BI Generated Certificate and then click on the Next button.
- When the Export Certificate dialog is displayed, type in the recovery password and then click the Next button.
- This will create a certificate for you that you will want to save away.
- Next select your connection method (Normal, or secure) and then click on the Next button.
- And then click on the Finish button to finish setting up the Data Management Gateway.
- If everything is working correctly and the service is started on the server, then you will see the Service Status form and you can close the Configuration Manager form.
- Now return back to the New Gateway setup on Office 365 and click the Finish button.
- This will take you to the Gateways page and you will see your new Gateway is up and running and communicating with the server.
- Now we want to publish some Data Sources through the Gateway to make them available for reporting off. To do this, click on the Data Sources link to open up the Data Sources maintenance page.
- Then click on the New Data Source button and select the SQL Server option.
- When the Data Source Usage page is displayed, check both the Enable Cloud Access and the Enable OData Feed options and click on the Next button.
- Within the Connection Info page, give your Data Source a Name and also a Description.
- Then select the Gateway that you just configured.
- Then enter in the Server Name that has the local MSSQL instance running on it and also the Database that you want to publish out.
- Click on the Set Credentials button.
- If this is the first time that you are doing this then you may be asked to install the Data Source Manager application on the server.
- This will open up the Data Source Settings dialog box. First select the Credentials Type.
- Then enter in the Username and Password that you will be using for the connection.
- Click the Test Connection button to validate the credentials and then click on the OK button.
- When you return back to the Connection Info page, click on the Next button.
- Now something really cool will happen – Office 365 will connect back to the local system and get all of the tables and views… it may take a few minutes though…
- When the tables are returned back and listed, just select the data that you want to publish by checking the table or view.
- After you are done, click the Next button.
- Finally, you are given the option to specify which users are able to access this data. After you have configured that, click the Finish button.
- Office 365 will now create the Data Source for you.
- And after a few minutes it will be available for consumption.
- One last task that you may want to do before you tell everyone that this is available is to make the Data Source a little friendlier for the users. To do this, open up the Power BI admin page and select the Data Sources tab. Change the Show option to All Data Sources and you will see your new Data Source that you just created.
- The name is a little generic, so click on the … to the right of the name and click on the Manage link.
- This will open up the Data Source details and you can change the Display Name and Description to something as little better.
- Now we are done – we can start using the data source within Excel reports.
- The easiest way to find the Data Source is through Power Query’s
Online Search option. Before clicking on this button though select the POWER QUERY ribbon bar and then click on the Sign In menu button within the Organization group.
- This will allow you to log sign into Office 365 within Excel.
- Once you are signed in, click on the Online Search button within the POWER QUERY ribbon bar.
- This will open up an Online Search panel to the right of the worksheet.
- Just type in a key word from the data that you published, and the data sources will miraculously appear in the list.
- If you click on any of the Data Sources then it will connect to Office 365 for the data, and then back down to the local database – regardless of if you are connected to the network or not.
- And then Power Query will add the data to the worksheet.
- From this data we can create PowerView reports…
- We can publish them back up to Power BI on Office 365…
- And if we really want to be clever, add the report to Q&A by clicking on the Add to Q&A menu item within the reports pop up menu.
- Once it’s been added, just click on the Ask with Power BI Q&A link in the top right hand corner of the page.
- That will open up the Q&A dashboard.
- Now just type in your question and see what Power BI discovers.
- The more details you ask, the more elaborate the response will be.
- You can even create the nudge Q&A a little by suggesting the visualization.
- If you take a little bit more time with the data source and rename the fields and remove all the data that you don’t want to display, then you also end up with a better data set…
- And you can ask more English-like questions.
- Since this Data Source is connected through the Data Management Gateway then there is one final feature that we can now take advantage of and that is the ability to refresh the data automatically from Office 365. To do this, just select the Dashboard, click on the … menu item and select the Schedule Data Refresh menu item.
- This will open up the Refresh Schedule options page.
- To configure the automatic refresh, just switch the button to ON set the refresh schedule details, and save the settings.
- If you look in the History tab, you will be able to see all of the refreshed that have been performed, and if they were successful or not.
Now you have love data that is available to everyone through Office 365. How cool is that!
To See the original post and to download the walkthrough click here:
http://www.dynamicsaxcompanions.com/Tips-And-Tricks/Tips-Tricks-Archive/Publishing-Dynamics-AX-Data-To-Power-BI-On-Office-365-Using-The-Data-Management-Gateway
Share this post
- 0 comment
- Tags: Dynamics AX
0 comment