Power Query Problems

How to Combine Two Salesforce Data Sources in Power BI

Elise WilliamsElise Williams Oct 21, 2026 869 views

Question details

The user needs to consolidate data from two different Salesforce organizations into a single dataset within Power BI.

Combine Two Salesforce Data Sources into One Power BI Dataset
Product
Power BI
Device & OS
not provided
Scenario
Connecting and transforming data from multiple Salesforce environments for unified reporting.
Observed behavior
The goal is to successfully merge or append tables from both Salesforce connections into a cohesive data model using Power Query.
Before you start

Ensure you have active login credentials and API access for both Salesforce organizations, and that Power BI Desktop is updated to the latest version.

Solution 1Recommended

Combine Salesforce Organizations Using Power Query

Connect to each Salesforce organization separately, then use Append or Merge in Power Query to consolidate the tables into a single dataset.

To combine data from multiple Salesforce sources, you must establish independent connections to each organization. Once connected, Power Query allows you to align and stack the data structures or join related records across the organizations.

1
Connect to the First Organization

Open Power BI Desktop. Go to 'Get Data' > 'More...', select 'Salesforce Objects' or 'Salesforce Reports', and sign in using the credentials for your first Salesforce organization. Load the required tables.

2
Connect to the Second Organization

Repeat the 'Get Data' process for the second Salesforce organization, ensuring you authenticate with its distinct login credentials. Load the necessary tables into Power BI.

3
Open Power Query Editor

Click 'Transform Data' on the Home ribbon to open the Power Query Editor where all your loaded Salesforce tables will be listed.

4
Append or Merge Queries

Select one of the tables. On the Home tab, click 'Append Queries' if you want to stack identical tables (e.g., combining Leads from both orgs), or select 'Merge Queries' if you need to join related records based on a common key.

5
Verify Data Types and Apply

Ensure that the column names, fields, and data types match across the combined queries. Once verified, click 'Close & Apply' to load the unified dataset into your Power BI data model.

Combine Salesforce Organizations Using Power Query
Data Consistency: When appending queries, column names must be identical in both tables. If they differ, Power Query will create separate columns filled with null values for the missing data.
Free Microsoft Office alternative

Manage and Analyze Exported Salesforce Data with WPS Office

While complex multi-org data modeling requires specialized tools like Power BI, WPS Office provides a lightweight, highly compatible spreadsheet solution for viewing, filtering, and analyzing exported Salesforce reports without the heavy resource usage.

  1. 1. Export Data: Export your combined datasets or reports from Salesforce or Power BI as a .csv or .xlsx file.
  2. 2. Open with WPS Spreadsheet: Launch WPS Office, select 'Spreadsheet', and open your downloaded file seamlessly.
  3. 3. Analyze and Visualize: Use WPS Spreadsheet's built-in PivotTables, charts, and filtering tools to perform quick data analysis.
100% compatible with Microsoft Excel (.xlsx and .csv) formats exported from Salesforce or Power BI.Free and lightweight suite including Writer, Spreadsheet, Presentation, and PDF tools.Familiar user interface with zero learning curve for Office users.Powerful built-in pivot tables and data visualization tools for quick analysis.
microsoft office alternative - wps office

Frequently Asked Questions

What is the difference between Merge and Append in Power Query?

Append Queries stacks rows from one table onto the bottom of another (useful for combining identical tables from different orgs), while Merge Queries joins columns from two tables horizontally based on matching key values.

Why do I get errors when appending two Salesforce tables?

Errors typically occur if the column names or data types do not exactly match between the two Salesforce organizations. You must rename columns and adjust data types in Power Query so they align perfectly before appending.

Can I schedule a refresh for combined datasets from different Salesforce orgs?

Yes. Once published to the Power BI Service, you can configure a scheduled refresh. You will need to ensure that the credentials for both Salesforce organizations are correctly authenticated under the dataset's Data Source Credentials settings.