Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Experts,
Is there any simple way to get data from non default SharePoint Document Library?
I have bunch of Document library within my site and can not read an Excel file from them.
Thanks in advance.
Solved! Go to Solution.
Yes. When you initially connect to a SharePoint library, you are initially given a Source connection string that looks like this:
= SharePoint.Files("https://TenantName.sharepoint.com/sites/Reports", [ApiVersion = 15])
Change it to this:
= SharePoint.Contents("https://TenantName.sharepoint.com/sites/Reports", [ApiVersion = 15])
Then you will see a listing simliar to this:
Shared Documents is the default library, but now you can click on the Table value for any folder and continue to drill down that way until you get to your files.
The only issue with this is you can only ultimately see one folder at a time. SharePoint.Files will allow you to work with many folders at a time. SharePoint.Contents only shows one.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYes. When you initially connect to a SharePoint library, you are initially given a Source connection string that looks like this:
= SharePoint.Files("https://TenantName.sharepoint.com/sites/Reports", [ApiVersion = 15])
Change it to this:
= SharePoint.Contents("https://TenantName.sharepoint.com/sites/Reports", [ApiVersion = 15])
Then you will see a listing simliar to this:
Shared Documents is the default library, but now you can click on the Table value for any folder and continue to drill down that way until you get to your files.
The only issue with this is you can only ultimately see one folder at a time. SharePoint.Files will allow you to work with many folders at a time. SharePoint.Contents only shows one.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHello Edhans,
First, Thanks for your replay.
Which data source you select?
When I selech Sharepoint folder it doesn't give me that screenshot that you had shared!
I found it, thank you.
Great @Keyvan - glad you got it working.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
64 | |
51 | |
37 | |
26 |
User | Count |
---|---|
85 | |
55 | |
45 | |
44 | |
36 |