Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jaryszek
Impactful Individual
Impactful Individual

Best practice to run only one sharepoint.files

Hi Guys,

I want to have one datasource from SharePoint.Files (Csv tables) and based on this build seperated queries. 

What is the best practice ? 

I should build CSV tables in a source like add column here with Csv.Document ?:

Screenshot_169.png


and from query just filter specific row and expand table column?

jaryszek_0-1745923928343.png
Or i should create a table from binary for each seperated query? 
I want to avoid refreshing in the loop SharePoint source a lot of times...

Best,
Jacek

 

1 ACCEPTED SOLUTION

7 REPLIES 7
v-kpoloju-msft
Community Support
Community Support

Hi @jaryszek

May i know has your issue been resolved? If the response provided by the community member @lbendlin, addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.

 

If yes, kindly accept the useful reply as a solution and give us Kudos. It would be appreciated.

Thank you for your understanding!

Hi @jaryszek,


I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

lbendlin
Super User
Super User

pretty much . Table.AddColumn with a Csv.Document ingestion of the [Content] value.  You need to specify the encoding and the quoting.  Then you can drop the [Content] column and expand the newly created column for an automatic append.

 

Writing a blog entry on this topic at the moment.

jaryszek
Impactful Individual
Impactful Individual

Ok if i use Table.AddColumn with a Csv.Document and get all tables in SharePoint source and after that I will create Query1, and in this query i will filter all sharepoint query for specific query, if power query will rerun twice? If it will Refresh all sharepoint files query and after refresh them again it will refresh for filtering specific table within seperate query?

AllSharePointQueries with Add.TableColumn Csv table --> Specific table filtered within seperate query -> if AllSharePointQueries will be refreshed twice? 

Best, 
Jacek

Here is a very rough draft of my blog entry - see if this clarifies things already.

 

 

jaryszek
Impactful Individual
Impactful Individual

thanks,

so now when you will create seperate query, your source table will be refreshed once only no matter if seperated query is filtering it? 

 

Best,
Jacek

correct-ish.  There is no guarantee for that though.  Chris Webb's BI Blog: Why Does Power BI Query My Data Source More Than Once?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.