Log in to Dynamics 365 online.
Click on the "Settings" tile.
Choose "Customizations.
Choose "Developer Resources.
Copy the url listed under "Instance Web API," and save it for entering into PowerBI Desktop
With the saved url, we can point PowerBI Desktop to CRM data on Dynamics 365
Start PowerBI Desktop and then select "Get Data" either from the Splash Screen or from the ribbon at the top of the screen
Or
Type CRM into the search box to locate CRM for Dynamics 365 Online. Then click on the "connect" button
Enter the CRM url (saved earlier) and click "OK."
In the "Access an OData feed" dialog box, select "Organizational account" and then click "Sign in."
You may then need to sign in to your CRM for Dynamics 365 Online with your username and password
Verify that you are signed in by making sure you see the message "You are currently signed in" in the dialog box and then click "Connect."
The navigation screen will allow you to select the CRM entities whose data you want to load into PowerBI Desktop.
Note, if you click "Load," all the data and every field in the selected entities will be loaded into PowerBI.
Best practice would be to click "Edit" and select the columns of data you need for reporting
With your CRM data loaded into PowerBI, you can now start building reports. After you publish them, your PowerBI Service users will be able to build their own dashboards using CRM data.