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
curiouspbix0
Helper IV
Helper IV

Sharepoint Document ID

Hello Sharepoint PBI Users,

 

Am trying to locate where can I find the complete link of documents on sharepoint to load into Power BI estabilishing a link to launch from the PBI report.

Folderpath and Name combo transformed into an URL downloads the document itself and not open it.

Need to get hold of document ids of the files

 

O Data feed connector seems not to be authenticating my corporate account for some reason.

Any alternatives

 

 

1 ACCEPTED SOLUTION

Hi @curiouspbix0 

 

the quotes  "" need to be around the URL, not the function, please refer to my post, why would you convert it to a table?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

6 REPLIES 6
v-yingjl
Community Support
Community Support

Hi @curiouspbix0 ,

Based on my test, If you want to open the file which stores in SharePoint folder with an URL link in power bi desktop, the URL link should be the shared link not like 'Foldpath + Name':

share file.pngshare link.png

This link can be opened as an URL link in power bi desktop, the link like 'Filepath + Name' will download the file as you said previously. But it should be inconvenient because you should get the whole files share link manually as a table and import it into power bi desktop if you want to use URL to open it in power bi.

 

Best Regards,
Yingjie Li

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

 

Mariusz
Community Champion
Community Champion

Hi @curiouspbix0 

 

Try this function 
https://docs.microsoft.com/en-us/powerquery-m/sharepoint-contents

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Thanks Marius, where would I invoke this fucntion in Power BI ?

Hi @curiouspbix0 

 

Power Query Editor > Create Blank Query > Go to Advanced Editor and Paste the below

let
    Source = SharePoint.Contents( sharePointPath )
in
    Source

 where sharePointPath needs to be replaced with your actual path https://companyname.sharepoint.com/My_Workspaces/Teams/Workspace_name/

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Converting that to a table is not loading the contents but just the sharepoint path file name as one entry, what am I missing here ?SP.jpg

Hi @curiouspbix0 

 

the quotes  "" need to be around the URL, not the function, please refer to my post, why would you convert it to a table?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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.