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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bbbt123
Helper I
Helper I

connect google spreadsheet to power bi without publishing the document

Hi, I want to use google spreadsheet as source data. I can see this is possible if I publish the document to the web but this is not ideal since the document contains sensitive information. I am using power bi with my corporate account and the google spreadsheet is also created with my corporate accunt, how can I use google spreadsheet as a source? Thank you in advance

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @bbbt123 

 

Based on your description, the easiest way is to Get Data / From Web, then enter the URL to your google sheet with "&output=xls" on the end. Power BI then analyses the resulting Excel file, showing the tabs as tables , which you can edit and manipulate.

 

About limitations to publish to web, it is unsupported to use row level sercurity. It is suggested to use other ways to share with colleagues. You may refer the following links.

 

Publish to web:

https://docs.microsoft.com/en-us/power-bi/service-publish-to-web

Ways to share:

https://docs.microsoft.com/en-us/power-bi/service-how-to-collaborate-distribute-dashboards-reports

Samples:

https://community.powerbi.com/t5/Power-Query/How-to-connect-google-sheet-to-Power-BI/td-p/14587/page...

 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-alq-msft
Community Support
Community Support

Hi, @bbbt123 

 

In Google spreadsheet, you require private access to the sheet data source instead of public access. At present, I think It is unlikely to be achieved except to build a custom connector. I tried to download it using the API Key. The basic method is not available. The RESTFul API of Google sheet cannot call Export function.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

v-alq-msft
Community Support
Community Support

Hi, @bbbt123 

 

Based on your description, the easiest way is to Get Data / From Web, then enter the URL to your google sheet with "&output=xls" on the end. Power BI then analyses the resulting Excel file, showing the tabs as tables , which you can edit and manipulate.

 

About limitations to publish to web, it is unsupported to use row level sercurity. It is suggested to use other ways to share with colleagues. You may refer the following links.

 

Publish to web:

https://docs.microsoft.com/en-us/power-bi/service-publish-to-web

Ways to share:

https://docs.microsoft.com/en-us/power-bi/service-how-to-collaborate-distribute-dashboards-reports

Samples:

https://community.powerbi.com/t5/Power-Query/How-to-connect-google-sheet-to-Power-BI/td-p/14587/page...

 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rajendraongole1
Post Prodigy
Post Prodigy

Pick the excel file tha you want to connect from Google spreadsheet. go to the file option in excel and click on share and Copy the link add at end of the link we need to remove the edit?usp=sharing to  /export?format=xlsx and connect it from web url source from desktop.

 

make sure no spaces in link.

 

Regards,

Rajendra

Hi @rajendraongole1 , I've replaced the edit?usp=sharing to  /export?format=xlsx as per your instructions. However, power query is only picking up "Document" but not the worksheets/tabs in my file? Is there a way I can get it to show the worksheet/tabs in the Navigaotr pane once I've choosen to get the power query data from Web - google sheet? Thanking you in advance. 

Hi, thank you for replying. It doesn't work, I get an empty table with this message Column2

Navigation to the webpage was cancelled
 
What you can try:
Refresh the page.

Hi, to be more precise, it works if I share the link with anyone, however I have to restrict the access to anyone, only people in the company can be able to access the link

Hi

 

Can you try the below possibility?

 

https://community.powerbi.com/t5/Power-Query/Connecting-to-a-Google-spreadsheet/m-p/166657

 

Last time when i try to connect the google spreadsheet, i have followed the explained process. Check and let us know if the above link is useful.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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