Forum Discussion
Connect Power BI Desktop to file folder on OneDrive for Business
- Anonymous8 years ago
hugoventurini,
There is an idea about this issue, please vote it up.
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/19061959-enable-connectivity-to-a-one-drive-folder
Regards,
Lydia - Anonymous8 years ago
hugoventurini,
In the latest version of Power BI Desktop(December update), please enter the following URL in SharePoint Folder connector, this way, you can connect to OneDrive for Business folder in Power BI Desktop.
https://mydomain-my.sharepoint.com/personal/user_mydomain_com
Regards,
Lydia
The link to the solution no longer work, is there another work around for the solution?
That was a link to an idea, not sure what happened with that idea but Hugo's idea is still up and accepting votes here.
I find SharePoint.Contents to be an efficient solution.
- Start a blank query (Get data > Blank query)
- Copy and paste this code in the formula bar:
= SharePoint.Contents("https://domaincom-my.sharepoint.com/personal/email_domain_com/", [ApiVersion = 15]){[Name="Documents"]}[Content]
- Replace [domaincom] with your SharePoint domain, and [email_domain_com] with your login email. For exmaple, if your domain is mycompany.org and your email joe at mycompany.org, you'd use:
= SharePoint.Contents("https://mycompanyorg-my.sharepoint.com/personal/joe_mycompany_org/", [ApiVersion = 15]){[Name="Documents"]}[Content]
- This should bring up the credentials window and, once logged in, should persent a table of all the files and folders in your OneDrive root folder
- You can navigate to the desired folder by clicking on the 'Table' link in the 'Content' column next to the desired folder name