Skip to main content

Power BI

Completed

SharePoint Online Document Library

Vote (285) Share
Michael Foley's profile image

Michael Foley on 18 Dec 2014 00:22:52

We have many Excel files on SharePoint Online Document Libraries - well structured and maintained and refreshed. It would be great to be able to point to those directly. The OneDrive for Business is similar, but it would mean we have to duplicate the files from our existing SPO team site. So it would be great to access Excel files located on SPO team site document libraries.

Comments (41)
Michael Foley's profile image Profile Picture

23385f27 9edc-469f-9f8f-621a5d1c8c50 on 05 Jul 2020 22:22:05

RE: SharePoint Online Document Library

This says completed, but how does it work? I can't seem to use the contents of an excel file stored on SharePoint as a connected data source. I can do this in the Power BI online tool, using the get data feature, but not on Power BI Desktop? Can someone walk me through the steps? I am a bit new at this. Thanks!

Michael Foley's profile image Profile Picture

5c57fcae d512-486a-9795-5685e3b92d0d on 05 Jul 2020 22:19:52

RE: SharePoint Online Document Library

Maybe I'm misunderstanding the problem, but we do this all the time.

In the query editor, for the source point to the path of your Excel file in SPO:

Source = Excel.Workbook(Web.Contents("https://yourcompany.sharepoint.com/dashboards/Shared%20Documents/powerBI%20datafiles/powerBI%20datafile.xlsx"), null, true),

That works every time.

To get the document URL, get a link to the containing folder and then append the file name to that (spaces need to be replaced by “%20”).

Let me know if that solves your problem.

Michael Foley's profile image Profile Picture

3847388b 2bdf-46af-b1e8-3f8db314dee7 on 05 Jul 2020 22:16:10

RE: SharePoint Online Document Library

Unfortunately, there is a bug in Power BI Desktop when pointing to a SharePoint document library to pick up an excel file!

Michael Foley's profile image Profile Picture

be900df2 4193-45f2-8fbb-78a6a9ccc0b9 on 05 Jul 2020 22:13:52

RE: SharePoint Online Document Library

I can't see any of our SP folders in this view, do they have to be configured in a specific way for Power Bi to see them?

Michael Foley's profile image Profile Picture

21645c70 e945-45c1-bcca-efa5228d4235 on 05 Jul 2020 22:13:10

RE: SharePoint Online Document Library

somebody should retweet this out back to Microsoft. I don't have twitter.

Michael Foley's profile image Profile Picture

f0f3ee20 9181-4279-b8d0-8cdaf6b106b3 on 05 Jul 2020 22:12:31

RE: SharePoint Online Document Library

One Drive storage is not manageable for a team, or for automation. This is a much needed feature. Wow this is a year old?

Michael Foley's profile image Profile Picture

cfa20155 1b5c-432a-a067-996a776aaa62 on 05 Jul 2020 22:10:49

RE: SharePoint Online Document Library

What is the status on this "Must Have" functionality?

Michael Foley's profile image Profile Picture

be10e352 90b5-45ae-b66e-05f99acd7184 on 05 Jul 2020 22:10:49

RE: SharePoint Online Document Library

I'm still amazed that this is still not available...

Michael Foley's profile image Profile Picture

c0d03b5d 7f39-442b-959e-4e91d62c60a0 on 05 Jul 2020 22:09:23

RE: SharePoint Online Document Library

Since this is a feature of O365 it is kind of strange that you can't connect to documents stored there.

Michael Foley's profile image Profile Picture

ade904fa 9e37-4167-88c1-57b79795e110 on 05 Jul 2020 22:09:10

RE: SharePoint Online Document Library

You can access Salesforce, Twilio and even MailChimp, but if you want to access Microsoft Team Sites data you have to vote for it? That makes no sense.