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
Anonymous
Not applicable

Sharepoint Folder

Hi,

This may be a very beginner level question but i would like to still put it through.

 

We store our documents from different applications in Sharepoint(Usage statistics, roles & permissions etc etc). These documents are updated per month. 

So we have a structure like 

Year (2015,2016,2017 etc) and then within that we have a month(Jan, Feb etc) and the files for that month. 

 

I have on excel and desktop some power queries that connect to these files on Sharepoint and get the data and some processing is done and graphs are drawn. Then per month i put the results in a different file(manual task) and draw trend charts. 

 

What is the best way i can do the trend reporting directly on power bi. Can it read the folders per month and do this?? 

 

Also i would like this automated as much as possible. 

 

Thanks for your feedback.

4 REPLIES 4
Anonymous
Not applicable

Hi, 

 

I will reuse this threat as my problem is related. 

 

I am trying to access a sharepoint folder located in my client's account. I have been granted access and I can see the folders in the web browser. However, I cannot make it happen to get data from the sharepoint folder with Power Query or Power BI. To make it more private I will use the example of this post

 

I have tried: 

1) to directly point the folder:  https://powerbipanama.sharepoint.com/sites/externalsales/

2) to point the sharepoint: https://powerbipanama.sharepoint.com

 

With the following error message: "We couldn't authenticate with the credentials provided. Please try again."

 

I use my companies credentials which is a office 365 account. 

 

Any idea on how to solve this? 

 

Thanks in advance! 

 

Greg_Deckler
Super User
Super User

You can read entire contents of folders. You use the Folder data source type. Not positive if you can point a folder query to a SharePoint document library, never tried that.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks @Greg_Deckler

But i need this solution for sharepoint folders and the folders will also be changing(Jan, Feb etc etc..). 

 

@Anonymous

Is this Sharepoint Folder synced to a local folder on your drive?

One idea is instead of using Get Data >> Sharepoint Folder connection, use the regular Get Data >> Folder connection, querying the main folder where all your sharepoint folders and files are synced.

 

Then work on the query editor to query these folders in the way you'd like. This way you do not have to address directly to a sharepoint link, but the whole source folder which will update automatically (when you refresh) if there is a new month folder inside.

 

Please provide more details or screenshots if you need a more precise answer.

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.