DEV Community

Cover image for How to Connect Dynamics 365 Pharma CRM to Power BI for Real-Time Sales Dashboards
Syed Kamran
Syed Kamran

Posted on

How to Connect Dynamics 365 Pharma CRM to Power BI for Real-Time Sales Dashboards

If you work in pharma sales, you know how hard it can be to get a clear picture of your team’s performance. Data often sits in different places: CRM records, Power Apps forms, and spreadsheets. That makes it tough to know which doctors were visited, how many samples were distributed, or what sales numbers look like right now.

This guide will show you how to bring your Dynamics 365 CRM data into Power BI, so you can build real-time sales dashboards. We’ll also see how Power Apps can feed new data into Dynamics 365 and make sure everything flows smoothly.

By the end, you’ll have a working dashboard that updates automatically and gives pharma reps and managers a clear view of sales activity.

What You’ll Need

  • A Dynamics 365 CRM environment (with pharma sales data or demo data)
  • A Power Apps license (to build or use custom apps)
  • A Power BI license (Pro or higher, since we’re connecting live data)
  • Admin rights to set up connections

Step 1: Prepare Your Data in Dynamics 365

  1. Log into your Dynamics 365 CRM.
  2. Identify the tables (entities) you want, for example:
  3. Accounts (doctors, hospitals, clinics)
  4. Contacts (HCP details)
  5. Opportunities (drug sales opportunities.
  6. Sample Requests (if you track samples through Power Apps)
  7. Make sure these tables have the right fields filled out, since Power BI will read them directly.

Tip: If you’re using a custom Power App for sales reps to log visits or requests, check that the data is writing back to Dynamics 365.

Step 2: Connect Dynamics 365 to Power BI

  1. Open Power BI Desktop.
  2. Click on Get Data → More.
  3. Search for Dataverse (this is the connector for Dynamics 365 data).
  4. Sign in with your Microsoft account.
  5. Select the environment where your pharma CRM data lives.
  6. Choose the tables you want (like Accounts, Opportunities, or your custom pharma entities).
  7. Load them into Power BI.

Step 3: Build Your Sales Dashboard

  1. Once the data loads, you’ll see the tables in the Fields pane.

  2. Drag and drop the following visuals:

  • Bar chart: Sales by product
  • Map: HCP visits by location
  • Line chart: Monthly sales trend
  • Table: Open opportunities with expected close dates
  1. Rename visuals in plain language, like “Doctor Visits by City” instead of technical terms.

Step 4: Refresh Data Automatically

  • Save your report and publish it to Power BI Service.
  • In Power BI Service, go to Datasets → your dataset → Schedule refresh.
  • Set the refresh frequency (hourly or daily, depending on your needs).
  • Now, your dashboard will always stay up to date with the latest CRM and Power Apps data.

Step 5: Share with Your Team

  1. In Power BI Service, click Share.
  2. Choose your pharma sales team, managers, or leadership group.
  3. You can also embed the dashboard into Microsoft Teams or even directly inside Dynamics 365 for quick access.

Wrap Up

With these steps, you’ve built a real-time pharma sales dashboard powered by Dynamics 365, Power Apps, and Power BI. This setup removes the guesswork and gives everyone a clear, data-driven view of sales activities.

If you’re working in pharma sales and still juggling spreadsheets or disconnected reports, try setting this up—it will make your team’s decisions faster and smarter.

Looking to set up dashboards like this or integrate Dynamics 365, Power Apps, and Power BI for your pharma sales team?
As a Microsoft Implementation Partner, we help businesses build and connect systems that actually work in the real world. From CRM integrations to custom Power Apps, we can do this and much more for your organization.

Let’s talk about how we can support your team.
https://3ixconsulting.com/contact/

Top comments (0)