Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
anuradha01
Frequent Visitor

Combine multiple Google Sheets from Google Drive

Hi 

I have a scenario in which I need to combine data from multiple Google sheets into two tables.

So each Google sheet has two tabs - Tab A and Tab B.

I need to combine all data from Tab A for all google sheets to Table A

and combine all data from Tab B for all google sheets to Table B.

I have seen some posts where it's being shown how to combine by having all files in 1 folder on your desktop.

But in my case, I was wondering if I can directly connect to the Google Drive folder where the files are and combine them all in Power BI.

 

Let me know if you need more information. Please note Google Sheets have same column names and structure.

 

Thanks

Anu

 

 

2 ACCEPTED SOLUTIONS

Combine 25 google sheets by appending them to one another so they form a single table. That will be your main table. Right click that query of combined sheets and select reference. Filter name column to the desired sheet name and then do the necessary transformations. Repeat the steps, this time in another query, for the other sheet name. So you will have about 26-27 queries using following this approach (25 queries to append + 2 reference queeries for sheets A and B) vs about 50 queries (25 queries each for sheets A and B).










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Hi All

 

I implemented using another way to combine multiple sheets with a Parameter, a Table with  URLs of all google sheets and a custom function. 

Refer 

https://youtu.be/OC5TX_xmRzk

 

This allowed me to change paths dynamically and make the reports scalable as well.

Hope it helps

 

View solution in original post

6 REPLIES 6
danextian
Super User
Super User

Hi @anuradha01 ,

 

The connector allows one to connect a spreadsheet but not to a folder similar to the sharepoint connector. Your alternative is to append each spreadsheet to the other without selecting a sheet first (Source - which is the first step in a query). That will be your main table. Reference that table and select either table A or B.  This is still quite a task for a large number of spreadsheet but removes the step of having to select a table for each spreadsheet.

danextian_0-1683601453362.png

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks for your reply - Danextian.

 

PREVIEW
Can you clarify what do you mean by "append each spreadsheet to the other without selecting a sheet first (Source - which is the first step in a query). "? Do you mean to say if I have 25 Google sheets manually append all Tab A of 25 google sheets and append Tab B of 25 Google Sheets and then bring them to Power BI?

Combine 25 google sheets by appending them to one another so they form a single table. That will be your main table. Right click that query of combined sheets and select reference. Filter name column to the desired sheet name and then do the necessary transformations. Repeat the steps, this time in another query, for the other sheet name. So you will have about 26-27 queries using following this approach (25 queries to append + 2 reference queeries for sheets A and B) vs about 50 queries (25 queries each for sheets A and B).










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks Danextian

Hi All

 

I implemented using another way to combine multiple sheets with a Parameter, a Table with  URLs of all google sheets and a custom function. 

Refer 

https://youtu.be/OC5TX_xmRzk

 

This allowed me to change paths dynamically and make the reports scalable as well.

Hope it helps

 

That's another way to put it. Should be a google spreadsheet with spreadsheet urls in it.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.