You are currently browsing the category archive for the ‘PowerBI’ category.

Following THIS previous post where I described how to connect Power BI Desktop to Dynamics CRM, we’re going to have a quick look at how to map our Accounts from Dynamics CRM in Power BI. For the scope of this post, we’re going to highlight the states where we have clients (Accounts).

Once we have the connection to Dynamics CRM established, we are presented with the Navigator. Here we can select the data from Dynamics CRM that we want to work with. I’ll be selecting here the AccountSet.

image

You will get a truncated view of the data for preview. Select Load. Note that this is not the fastest kid on the block, so wait for a moment while all your data loads. Depending on the data set, this could take a while.

image

Once loaded, your data set will appear in the Fields area, on the right hand side. If you want to make your query leaner, you could edit the properties and remove the columns you don’t need, but we’ll be looking at advanced query configuration some other time.

image

Now is probably a good time to check and make sure that your Accounts in CRM have Latitude and Longitude. Geo-mapping an address is not something you can turn on out of the box, so you will have to either customize the functionality to map an address to it’s coordinates, or use a 3rd party solution that does that.

Next select the icon that looks like a map, and click it. A map representation shows on the page.

image

Click on the Data icon on the left side. Here you get a view of the data from CRM, and the ability to customize each field’s properties.

image

Select each of the mapping fields and from the Properties ribbon area define the Data Category for each. For example, select the Address1_Longitude field and select Longitude in the Data Category.

image

Do the same for Latitude and the address fields as needed.

Now go back to the Report view and in the Visualization Fields wells start dropping the values you need as depicted below.

image

Now your Report view should refresh and show you something like this:

image

You can tweak the settings as needed. When satisfied, save and publish your report.

Enjoy!

Advertisements

I just had a user asking me today about connecting Power BI Desktop to CRM Online. It’s been a while since I looked at this, so I had to think about it for a moment. So I decided to write it down as a reminder.

Starting the application you are presented with a screen as below.

image

If you disabled the startup page, you can get to the same wizard by going to Get Data on the ribbon.

image

Select More, and in the window that pops-up find Dynamics CRM Online.

image

Once you click Connect you are presented with the URL screen. Here’s where it’s easy to make a mistake, even though it’s stated pretty clear what URL you have to point to. Make sure it’s the complete Organization Service URL, not just the Org URL.

CORRECT: https://<org>.crm[x].dynamics.com/XRMService/2011/OrganizationData.svc

NOT CORRECT: https://<org>.crm[x].dynamics.com/

When using the incorrect URL you are not prompted to provide the credentials later on, and thus can not establish the connection.

Next, for authenticating to CRM Online, select Organizational Account on the next screen

image

If you have provided multiple URLs before, including the incorrectly formatted one, select the correct one you want to use.

You will be prompted to sign-in. Do so using a user with permission to access the organization.

image

If everything is ok, when clicking on Sign In you will be redirected to the O365 login page:

image

Once everything is ok, click Connect and you should be in. Now select your data set and start building the visuals. We’ll be looking at some of the features and options available with Power BI in another post.

Lesson learned: read and follow the instructions carefully. Check the URL you provide. Don’t be “lazy” and expect the app will figure out what you meant (even though it would have been easy to validate the URL and append the Organization Service suffix if missing).

Enjoy!

Check out my Book

Microsoft Dynamics CRM 2016 Customization - Second Edition

Microsoft Dynamics CRM 2016 Customization - Second Edition

Check out my Book

Microsoft Dynamics CRM Customization Essentials

Microsoft Dynamics CRM Customization Essentials

Check out my Book

Microsoft Dynamics CRM 2011 Scripting Cookbook

Microsoft Dynamics CRM 2011 Scripting Cookbook

Reviewed Book

Microsoft Dynamics CRM 2011: Dashboards Cookbook

Microsoft Dynamics CRM 2011: Dashboards Cookbook

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 402 other followers

Follow TheCRMwiz on WordPress.com