How to Combine Multiple Google Sheets in Power BI
Question details
The user needs to consolidate data from multiple Google Sheets with matching headers into a single dataset within Power BI for analysis.

- Product
- Power BI / Google Sheets
- Device & OS
- not provided
- Scenario
- Importing and consolidating data from multiple cloud-based spreadsheets into a unified Power BI dataset.
- Observed behavior
- Multiple separate Google Sheets need to be appended or combined effectively into one master table within Power BI without losing data integrity.
Ensure all your Google Sheets have identical column headers, matching data types, and proper sharing permissions set to allow external data extraction.
Combine Sheets using IMPORTRANGE Before Connecting to Power BI
Use the IMPORTRANGE function natively in Google Sheets to merge your data into a single master sheet, which is then easily imported into Power BI as a single source.
This method is highly recommended if your data sources are relatively small and you want to reduce the load on Power Query. By merging the data in the cloud first, you simplify the import process in Power BI.
Open a new Google Sheet that will act as your master file for consolidating all the individual sheets.
In the first cell, use an array formula to stack multiple sheets. For example: ={IMPORTRANGE("URL_1", "Sheet1!A1:Z"); IMPORTRANGE("URL_2", "Sheet1!A2:Z")}. Make sure to allow access when prompted.
Open Power BI Desktop, navigate to 'Get Data' on the Home ribbon, click 'More', and select 'Google Sheets'.
Paste the URL of your new master Google Sheet into the prompt, authenticate your Google account if necessary, and click 'Load' to bring the combined data into your model.

Import and Append Datasets Directly in Power Query
Connect each Google Sheet individually to Power BI and use the Append Queries feature within the Power Query Editor to stack the tables.
Manage and Consolidate Your Spreadsheets Locally with WPS Office
While Power BI is excellent for advanced business intelligence, preparing, cleaning, and consolidating your raw spreadsheet data offline is often faster with WPS Spreadsheet. As a free, lightweight alternative to Microsoft Office, WPS Office offers powerful data handling, seamless compatibility with Excel formats, and a highly intuitive user interface.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your local spreadsheet files.
- 2. Use Data Consolidation: Navigate to the 'Data' tab and select 'Consolidate' to merge ranges from multiple worksheets into one.
- 3. Export for BI Analysis: Save your consolidated master sheet as a standard .xlsx file, ready to be imported into Power BI or any other analytics tool.

Frequently Asked Questions
Do the Google Sheets need to have the exact same column headers to be appended in Power Query?
Yes, for Power Query to successfully append the tables without creating null or mismatched values, the column headers must match exactly in spelling, spacing, and case across all connected Google Sheets.
Can I schedule automatic refreshes for Google Sheets data combined in Power BI?
Yes. Once you publish your Power BI report to the Power BI Service, you can go to the dataset settings, authenticate your Google credentials, and configure a scheduled refresh to keep your dashboard up to date automatically.
Is there a data limit when using IMPORTRANGE in Google Sheets?
Yes, IMPORTRANGE can sometimes time out or fail to load if you are pulling extremely large datasets or combining too many complex sheets. If you experience `#ERROR!` or loading issues, appending the tables directly in Power BI via Power Query is a more reliable alternative.




