publishing dynamics ax data to power bi on office 365 using the data management gateway
TRANSCRIPT
1
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
MURRAY FIFE
DYNAMICS AX 2012 TIPS & TRICKS
PUBLISHING DYNAMICS AX DATA TO POWER BI ON OFFICE 365 USING THE DATA MANAGEMENT GATEWAY
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
PUBLISHING DYNAMICS AX DATA TO POWER BI ON OFFICE
365 USING THE DATA MANAGEMENT GATEWAY
BY MURRAY FIFE
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Copyright © 2014 Murray Fife
All Rights Reserved
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
What You Need For This Guide
All the examples shown in this blueprint were done with the Microsoft Dynamics AX 2012 virtual machine image that was downloaded from the Microsoft CustomerSource or PartnerSource site. If you don't have your own installation of Microsoft Dynamics AX 2012, you can also use the images found on the Microsoft Learning Download Center or deployed through Lifecycle Services. The following list of software from the virtual image was leveraged within this guide:
• Microsoft Dynamics AX 2012 R3
Even though all the preceding software was used during the development and testing of the recipes in this book, they may also work on earlier versions of the software with minor tweaks and adjustments, and should also work on later versions without any changes.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by emailing [email protected].
Piracy
Piracy of copyright material on the Internet is an ongoing problem across all media. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at [email protected] with a l ink to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
Questions
You can contact us at [email protected] if you are having a problem with any aspect of the book, and we will do our best to address it.
Preface
6
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
7
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Publishing Dynamics AX Data To
Power BI On Office 365 Using
The Data Management Gateway
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-premisedata 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.
8
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
10
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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 Createbutton.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
11
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will take you to the Install & Register page which will have a unique Gateway Keyfor 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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
12
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will take you directly to the Data Management Gateway download page.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
13
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Download the install kit and run through the installation wizard.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
14
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
After it is installed, a Configuration Managerdialog will be displayed for you to connect your local database to the Office 365 gateway.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
15
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Paste the Gateway Key from the Office 365 Gateway page into the Gateway Key field and then click the Register.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
16
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Then when the Specify Certificate For Credentials page is displayed, select the Use Power BI Generated Certificate and then click on the Next button.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
17
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
When the Export Certificate dialog is displayed, type in the recovery password and then click the Next button.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
18
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will create a certificate for you that you will want to save away.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
19
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Next select your connection method (Normal, or secure) and then click on the Nextbutton.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
20
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
And then click on the Finish button to finish setting up the Data Management Gateway.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
21
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
22
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Now return back to the New Gateway setup on Office 365 and click the Finish button.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
23
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will take you to the Gateways page and you will see your new Gateway is up and running and communicating with the server.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
24
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
25
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Then click on the New Data Source button and select the SQL Serveroption.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
26
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
When the Data Source Usage page is displayed, check both the Enable Cloud Accessand the Enable OData Feed options and click on the Next button.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
27
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Within the Connection Info page, give your Data Source a Name and also a Description.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
28
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Then select the Gateway that you just configured.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
29
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
30
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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 Managerapplication on the server.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
31
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will open up the Data Source Settingsdialog box. First select the Credentials Type.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
32
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Then enter in the Username and Password that you will be using for the connection.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
33
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Click the Test Connection button to validate the credentials and then click on the OKbutton.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
34
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
When you return back to the Connection Info page, click on the Next button.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
35
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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…
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
36
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
When the tables are returned back and listed, just select the data that you want to publish by checking the table or view.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
37
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
After you are done, click the Next button.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
38
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
39
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Office 365 will now create the Data Source for you.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
40
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
And after a few minutes it will be available for consumption.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
41
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
42
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
The name is a little generic, so click on the … to the right of the name and click on the Manage link.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
43
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will open up the Data Source details and you can change the Display Name and Description to something as little better.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
44
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Now we are done – we can start using the the data source within Excel reports.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
45
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
The easiest way to find the Data Source is through Power Query’s Online Searchoption. Before clicking on this button though select the POWER QUERY ribbon bar and then click on the Sign In menu button within the Organizationgroup.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
46
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will allow you to log sign into Office 365 within Excel.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
47
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Once you are signed in, click on the Online Search button within the POWER QUERYribbon bar.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
48
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will open up an Online Search panel to the right of the worksheet.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
49
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Just type in a key word from the data that you published, and the data sources will miraculously appear in the list.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
50
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
51
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
And then Power Query will add the data to the worksheet.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
52
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
From this data we can create PowerView reports…
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
53
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
We can publish them back up to Power BI on Office 365…
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
54
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
55
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
56
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
That will open up the Q&A dashboard.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
57
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Now just type in your question and see what Power BI discovers.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
58
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
The more details you ask, the more elaborate the response will be.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
59
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
You can even create the nudge Q&A a little by suggesting the visualization.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
60
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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…
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
61
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
And you can ask more English-like questions.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
62
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
63
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
This will open up the Refresh Schedule options page.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
64
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
To configure the automatic refresh, just switch the button to ON set the refresh schedule details, and save the settings.
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
65
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
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!
Publishing Dynamics AX Data To Power BI On Office 365 Using The Data Management Gateway
66
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
67
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
The Tips & Tricks series is a compilation of all the cool things that I have found that you can do within Dynamics AX, and are also the basis for my Tips & Tricks presentations that I have been giving for the AXUG, and online. Unfortunately book page size restrictions mean that I can only fit 50 tips & tricks per book, but I will create new volumes every time I reach the 50 Tip mark. If you want to view all of the compilations then here are the links.
50 Tips & Tricks For Dynamics AX 2012http://www.amazon.com/dp/1495487776/
Another 50 Tips & Tricks for Dynamics AXhttp://www.amazon.com/dp/1497383412/
Want More Tips & Tricks
68
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
69
TIP & TRICKS FOR DYNAMICS AX 2012
© 2014 Murray Fife, All Rights Reserved www.dynamicsaxcompanions.com
Murray Fife is a Microsoft Dynamics AX MVP, and Author with over 20 years of experience in the software industry.
Like most people in this industry he has paid his dues as a developer, an implementation consultant, a trainer, and now spend most of his days working with companies solving their problems with the Microsoft suite of products, specializing in the Dynamics® AX solutions.
EMAIL [email protected]
TWITTER @murrayfife
SKYPE murrayfife
AMAZON www.amazon.com/author/murrayfife
WEB www.dynamicsaxcompanions.com
About the Author