Embed Power BI Q&A Into Your Menu So You Can Ask For Reports

One of the coolest features within the Office 365 Power BI suite is the Q&A function where you can type in questions about the data and it will translate it into a query and then show you a report of the results. By linking this with your Dynamics AX data, even the most un-technical person should be able to become their own report writer. If you want to take this to the next level and make it even more accessible to the users then you may want to do a little bit of coding and add it directly to the users menus so that they can just click on the link and go straight to the Q&A page without even having to know the URL for Office 365.

It is like having your own personal data guru at your beck and call.

How To Do It…

  1. The first thing that you need to do is access your Power BI Q&A site so that you can get the initial URL that you want to link to the menu.
  2. After you know what you want to link to, you can start adding the menu item. And in order to do that we need to create a form that will be the website wrapper that we can then within the client. To do this, open up AOT and expand out the Forms group.
  3. Then right-mouse-click on the Forms group and select the New Form from the context menu.
  4. After you have done that you should have a generic Form control.
  5. Change the Name property of the Form to PowerBIQA.
  6. Then expand out the PowerBIQA form and the further expand the Design node.
  7. Right-mouse-click on the Design node, click on the New Control menu item and then select the ActiveX item.
  8. This will open up the ActiveX browser and you should be able to find the Microsoft Web Browser control and click on the OK button.
  9. This will add the control to the Design for us.
  10. Select the ActiveX control and change the Name property to PowerBIQA so that it is less generic.
  11. Then set the Width property to Column Width so that it takes up all of the horizontal space in the design.
  12. And also set the Height property to Column Height so that it takes up all of the vertical space in the design.
  13. Then select the Design node and change the Window Type property to Content Page – this will allow us later on to embed the form directly within the client.
  14. Now we need to tell the browser to navigate to the PowerBI website when it opens. To do this, right-click on the Methods group for the PowerBIQA form, select the Override Method menu item and select the Activate method.
  15. This will open up the code editor for the method.
  16. Add the following line of code to the activate() method:
    PowerBIQA.Navigate(“Your PowerBI URL“);
    And then close the editor.
  17. When you return to AOT, right-mouse-click on the PowerBIQA form and select the Open option.
  18. This should open up a form and show you the Power BI Q&A page.
  19. Now we need to add this form to the menu. To do this we first need to create a menu item that points to the form. To do this, expand out the Menu Items node within AOT and then expand out the Design node.
  20. Right-mouse-click on the Design node and select the New Menu Item menu item.
  21. This will create a new Menu Item control.
  22. Change the Name property of the menu item to PowerBIOpenQA and also change the Label and Help Text properties.
  23. Select the drop-down for the Object property, and you should be able to find the new form that you just created.
  24. After you have done that you can save your changes (CRTL+S) and then right-mouse-click on your new menu item control and select the Open menu item.
  25. This should open up the form again for you.
  26. The final step is for us to add the menu item to the menu itself. To do that expand out the Menus node and you will see all of the main menus in the system.
  27. Expand out the main that you want to add the menu item to – in our case it’s the SalesAndMarketing menu.
  28. Then right-mouse click on the group that you want to add it to – which we chose the Reports folder – and select the New menu item and then the Menu item sub-menu item.
  29. This will add a new menu item control to the menu.
  30. All you have to do here is select the Menu Item that you just created from the dropdown within the MenuItemName property.
  31. And one last tweak is to set the IsDisplayedInContentArea property to Yes so that it is embedded within the client rather than a separate form.
  32. Now just save the changes (CTRL+S) and exit and restart the Dynamics AX client.
  33. Now when you open up your menu you will see a new menu item for Power Q&A.
  34. Clicking on it will take you straight to the Power BI Q&A page.

Once you start asking questions, you can refine your answer… And then filter out to particular records… And then even compare and contrast multiple sets of data.

Now that is super cool.

To view the original post and also download the step by step walkthough with screen shots, click on the link below:
http://www.dynamicsaxcompanions.com/Tips-And-Tricks/Tips-Tricks-Archive/Embed-Power-BI-Q-A-Into-Your-Menu-So-You-Can-Ask-For-Reports

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: