Back to Blog

Connect Power BI to Salesforce in a Few Minutes

Power BI is a great option to visualize all your business data in one place. It connects to many different services you use for your business, including Salesforce. You can create beautiful visualizations with this tool while extracting valuable insights from your Salesforce data.

The good news? Connecting Power BI to Salesforce is a quick and easy process. And in this article, we’ll show you how! 🙂

Power BI: connect to Salesforce – what are the options?

The following are some ways you can connect Microsoft Power BI to Salesforce:

Using standard Power BI connection to Salesforce

One way to connect Microsoft Power BI to Salesforce is by using the standard connectors. There are two different types of these. Each is designed to connect to different categories of your customer data in Salesforce.

Here are the two connectors:

  • Salesforce Objects. It connects to standard objects (such as Accounts, Contacts, Opportunities, Leads, Cases, etc.) and custom objects you create on Salesforce. Often, objects are related to one another. And when using this connector to get data from multiple objects that are related, it may be necessary to apply joins/mergings.
  • Salesforce Reports. It connects to Salesforce reports you’ve already built on the platform. 

We’ll see step by step how to use these connectors in the later section.

Using integration apps

Many third-party integration tools allow you to pull data from Salesforce based on API calls. An example of this is With this tool, you can automatically export Salesforce data into an intermediary destination, such as Excel or BigQuery, and then connect it to Power BI. It may sound complex but it really isn’t.

But why go through more steps when you can simply use connectors? Well, there are two good reasons:

  • By pulling data to Excel first, it can be a good starting point for you to perform data transformation, charting, and simple analysis while simultaneously building more advanced visualizations in Power BI. It’s because, in Excel, it may be easier for you to see the whole dataset as well as all the different pieces together. This may help you figure out what will make sense to visualize, especially if you’re new to Power BI.
  • Often, you wish to plug in different apps into Power BI but some data sources are not supported with standard connectors (e.g., Airtable, Pipedrive, or Shopify). A viable workaround can be exporting such data into e.g., Excel and then plugging it all into Power BI. The former is done with numerous available apps, the latter requires just a few clicks as we’ll show you in the later chapter.

Using Microsoft Power BI apps

There are Power BI template apps you can install to connect to Salesforce. With these apps’ pre-made dashboards and reports, you can get started right away analyzing and gaining insights into your sales data.

One way to find the apps is by opening the Power BI service and selecting Apps in the navigation pane. Then, click Get apps in the upper-right corner. A window that shows a list of Power BI apps will appear. After that, type “Salesforce” in the Search box to filter the apps. 

1 Power BI connect to Salesforce template apps

You will see a few apps on the search result. For example, Salesforce Overview Report – by and Salesforce Analytics – Sales Manager. These apps contain dashboards and reports that provide visual insights about your business:

2 Power BI template apps to connect to Salesforce

How to link Power BI to Salesforce

Now, let’s see how to retrieve Salesforce objects and reports using the standard Power BI connectors. You can follow the steps below using Power BI Desktop in just minutes! 

Power BI connect to Salesforce objects

To connect to a Salesforce Object:

STEP 1. Click Get Data. On the dropdown list that appears, select More…

3 Power BI connect to data sources

STEP 2. On the left pane, select Online Services. On the connector list on the right, select Salesforce Objects, then click Connect.

4 Power BI Salesforce Objects connector

STEP 3. In the Salesforce Objects window, choose the URL to sign in and click OK to continue.

5 Power BI Salesforce Objects window

By default, Production URL is selected. You can also choose Custom and enter a custom URL to sign in. This might be the domain you’ve created within Salesforce, such as:

Check the Include relationship columns option to bring the relationships between objects into Power BI.

STEP 4. Click Sign in to sign in to your Salesforce account. A window will appear, allowing you to enter your login credentials. Once you’ve successfully signed in, click Connect.

6 Power BI connect to Salesforce account

Please note that the first time you sign in, you will be asked to verify your identity by entering a code sent to your email address. 

STEP 5. In the Navigator window, select one or multiple objects you want to load. You can then click Load to load the data or click Transform Data to apply data transformations before loading.

7 Power BI Navigator window

Power BI – connect to Salesforce report

Basically, connecting to a Report is similar to connecting to an Object. You will only have slight differences in some of the steps. 

One important thing to note is that you can only retrieve 2000 rows using the Salesforce Reports connector. This limitation is set by Salesforce. As a workaround for this Power BI to Salesforce connection issue, you can use the Salesforce Objects connector to retrieve all the rows and recreate the reports you want — from scratch.

Follow the steps below to connect to a Salesforce Report:

STEP 1. Click Get Data. On the dropdown list that appears, select More…

STEP 2. On the left pane, select Online Services. Next, select Salesforce Reports on the right and click Connect.

8 Power BI Salesforce Reports connector

STEP 3. In the Salesforce Reports window that appears, choose the URL you use to sign in to Salesforce. By default, Production is selected. Choose Custom if you want to connect to a custom domain or sandbox. 

Notice that the connector limitation is displayed on this window.

9 Power BI Salesforce Reports window

STEP 4. Click Sign in to sign in to your Salesforce account. A window will appear, allowing you to enter your login credentials. Once you’ve successfully signed in, click Connect.

STEP 5. In the Navigator window, select one or several reports you want to load. Then, click Load to load the data or click Transform Data to apply data transformations first.

How to connect Power BI to Salesforce using an integration app –

The process of connecting Power BI to Salesforce using starts with exporting data from Salesforce into an intermediary destination. In this example, we’ll be using an Excel file stored on OneDrive. The second part of the process is to connect Power BI to this file.

As mentioned previously, one of the benefits of doing this two-step process is that you can get a good starting point for your analysis in Excel before moving on to Power BI. 

What’s more, if you wish to analyze data from apps not supported with native connectors, this is a viable alternative. Pull data from your apps into Excel and then plug in the dataset to Power BI.

Let’s go over the details below.

Step 1 – Export Salesforce data into Excel using makes it easy to automate the export process from Salesforce to Excel. No coding is required! We’ll show you how by exporting an Opportunity as an example.

To get started, sign up to and create a new Importer. Then, follow the steps below:

STEP 1. Select Salesforce as the data source and Excel as the destination.

10 selecting Source and Destination

STEP 2. Connect to your Salesforce account and select Opportunity as the data entity to extract from Salesforce.

11 selecting the data category to export

STEP 3. Optionally, specify filter criteria. For example, the following criteria filter only Opportunities with stage Closed Won.

12 specifying the filter

STEP 4. Connect your Microsoft account and choose a workbook stored on OneDrive.

13 configuring the destination

STEP 5. Optionally, set a schedule for data refreshes. 

14 configuring the data refresh schedule

STEP 6. Save and run the importer.

You’re all set! will automatically update data from Salesforce in Excel.

Step 2 – Connect Power BI to Excel on OneDrive

If you have the Excel file synced on your computer, connecting Power BI to this file can be done in a matter of clicks by using the Excel workbook connectors:

15 Accessing the Excel workbook connector in Power BI

Click on it and select your file from the OneDrive folder on your computer. It will bring the Navigator window that allows you to preview and select your data — it’s as simple as that! If you’re looking for more information about connecting Excel to Power BI, check out this article: Excel to Power BI.

Connect Power BI to Excel on OneDrive not synced to your computer

What if you don’t have the file on your computer? In this case, you need to connect to OneDrive. Power BI does not provide a standard connector to OneDrive. However, you can connect through a workaround—here are the steps:   

STEP 1. Go to your OneDrive and find the Excel workbook you want to connect. 

STEP 2. Right-click on the file, then select Embed from the menu options.

16 Selecting Embed from the menu

Figure 4.2.2. Selecting Embed from the menu

STEP 3. Click Generate to get the HTML code for embedding.

17 Generating the HTML code for embedding

STEP 4. Copy the resid and authkey values. Then, insert them into the following URL:{replace-with-your-value}&authkey={replace-with-your-value}&em=x&app=Excel

Example result:

STEP 5. Open Power BI Desktop and select Get Data > Web. On the From Web window, select Basic and enter the URL above. When done, click OK.

18 Power BI Connect from Web

STEP 6. Click Connect to access the web content, and you should see the Navigator window, where you can preview and select the sheets to import. 

You can now connect your Excel data to Power BI and start building the reports and dashboards you need. 

Power BI & Salesforce examples

In this section, we’ll use the Salesforce Objects connector to get data into Power BI and create visualizations. 

We’ll create a report in Power BI and then make a dashboard from this report. Sounds interesting and worth your time? Let’s go through the examples below! 🙂

Power BI Salesforce report

Let’s get started by creating an Opportunity Report that pulls data from two Salesforce objects: Account and Opportunity

Here’s the final report we’re going to build:

19 The final report

As you can see, the report has 3 charts showing Opportunity amounts by different dimensions:

  • The first one is a bar chart showing Amount by Stage Name.
  • The second one is a pie chart comparing the Amount for Closed Won vs. Closed Lost.
  • The third one is a treemap chart visualizing the Amount by Industry. 

To create the above report, follow the steps below:

STEP 1. Open Power BI Desktop and follow STEP 1-5 of connecting Power BI to Salesforce Objects explained previously. In the Navigator window, select Opportunity and Account, then click Transform Data.

STEP 2. In the Queries pane, click Account. Then, click Choose Column in the Home tab to select only necessary columns that may be necessary for the report.

20 Selecting Account in the Power Query Editor

In the Choose Column window, select Id, Name, and Industry column, for example. When done, click OK to close the window.

21 Applying Choose Column for Account

STEP 3. Apply STEP 2 for Opportunity and let’s select only Id, AccountId, Name, StageName, and Amount columns. 

22 Applying Choose Column for Opportunity

STEP 4. Click Close & Apply.

STEP 5. Click Text box and type a title for the report. Customize its font as you like.

23 Adding a report title

STEP 6. Select the Stacked bar chart icon to create a bar chart showing the total Opportunity amount by Stage. Select Opportunity Amount and StageName in the Fields pane. 

24 Amount by Stage Name

STEP 7. Select the Pie chart icon to create a pie chart showing the total Opportunity amount for Closed Won vs. Closed Lost. In the Fields pane, select Opportunity Amount and StageName. Then, add a filter for StageName to include only Closed Won and Closed Lost.

25 Amount by Closed Won vs. Closed Lost

STEP 8. Select the Treemap icon to visualize the total Opportunity Amount by Industry. In the Fields pane, select Opportunity Amount and Account Industry. 

26 Amount by Industry

STEP 9. Click File > Save and save the report as Opportunity Report.pbix to the location you want.

Power BI Salesforce dashboard

Dashboards are a feature of the Power BI service. So, to create a dashboard from the Opportunity Report we’ve just created, we need to publish the report to the Power BI service first. 

Follow the below step to create the dashboard:

STEP 1. Open Opportunity Report.pbix.

STEP 2. Click File > Publish > Publish to Power BI.

STEP 3. Choose a destination to publish, for example, My workspace. Then, click Select.

27 Publish to Power BI selecting a destination

STEP 4. Once published, verify by opening the report in the Power BI service.

28 The published report

STEP 5. Go to My Workspace and click New > Dashboard.

STEP 6. Enter the dashboard name, for example, Opportunity Dashboard

STEP 7. Open the Opportunity Report.

STEP 8. Click the Pin visual icon for the Amount by Stage chart.

29 The Pin visual icon

STEP 9. On a window that appears, select Opportunity Dashboard, then click Pin.

Figure 3.2.4. Pin a tile to a dashboard

STEP 10. Open the Opportunity Dashboard. You now have a tile showing the Opportunity Amount by Stage Name.

31 The final Opportunity Dashboard

You can also pin tiles from other reports you publish on the Power BI service to tell stories through visualizations.

Power BI won’t connect to Salesforce

If you can’t connect Power BI to Salesforce, a few common things might be causing the problem. 

First, Salesforce does not support Internet Explorer 11. So, ensure you use supported browsers. You can check out Salesforce’s recommendations and requirements for browsers to get an optimal experience with either Classic or Lightning Experience.

If you still can’t connect, check your Session Settings. Ensure that the option Lock sessions to the IP address from which they originated is unchecked to allow authentication with different ranges of IP addresses.

32 Session Settings in Salesforce

If you’re still having trouble connecting to your account, contact Salesforce Support for help. 

Microsoft Power BI to Salesforce – To sum up

Connecting Power BI to Salesforce can be accomplished in several ways. The easiest way is through Power BI connectors. Depending on the data you want to connect, you can either use the Salesforce Objects or Salesforce Reports connector.

Other than Salesforce, you might need to get data from other services and visualize them in one place using Power BI. In this case, may be worth trying, especially if any of your data sources are not supported by the standard connectors. The tool offers a seamless integration process without coding. You can also set up automatic data refresh on the schedule you want!

Back to Blog

Comments are closed.

Focus on your business
goals while we take care of your data!