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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
EhrenJ
Frequent Visitor

Using google sheet as a data source

I have a source that is a google spreadsheet, which is set to have restricted access "Only people with access can open with the link" and not Anyone with the link

 

I've already tried connecting a google sheet in which was not published to web but rather Anyone with the link. (Not sure what the difference is to be honest), and I was successfully able to connect it to Power BI desktop by using the web data connector.

 

Now my issue is that I need to have that google sheet set to restricted access only. My question is, is there another way to connect a restricted google sheet (in which I have access to, furthermore, is the owner of the sheet) to Power BI?

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I just tried this with the Google Sheets connector and it worked fine. For authorization, it opened up a browser window for me to sign into my Google account.

AlexisOlson_0-1676573563759.png

 

The query code ended up looking like this:

let
    Source = GoogleSheets.Contents("https://docs.google.com/spreadsheets/d/[GUID REDACTED]/edit#gid=0"),
    Sheet1_Table = Source{[name="Sheet1",ItemKind="Table"]}[Data]
in
    Sheet1_Table

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

I just tried this with the Google Sheets connector and it worked fine. For authorization, it opened up a browser window for me to sign into my Google account.

AlexisOlson_0-1676573563759.png

 

The query code ended up looking like this:

let
    Source = GoogleSheets.Contents("https://docs.google.com/spreadsheets/d/[GUID REDACTED]/edit#gid=0"),
    Sheet1_Table = Source{[name="Sheet1",ItemKind="Table"]}[Data]
in
    Sheet1_Table

Ah it has a dedicated connector, I did not know this, thank you!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.