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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Convert local folder datasource to Sharepoint folder

Hello,

 

Trying to convert a local folder datasource into a Sharepoint folder one.

 

 

See image attached.

Query at the top is using the same file from the SP folder.

Query at the bottom is using the same file from the local folder.

 

Though that just by replacing the first lines  - replace from 14 to 20 lines with lines from 1 to 9 - of the query would do it but for some reason I cannot understand the query is breaking.

I was trying to prevent from redoing the whole query all over again....

 

2 queries.png

Can you please help me to understand why?

 

Thank you

J

 

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Share us more detailed information, especially the error message.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-chuncz-msft

 

Getting this error message.

 

Expression.Error: The name 'Sample File' wasn't recognized.  Make sure it's spelled correctly.

 

pointing to this line of code

 

= Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from Toggl (2)", Table.ColumnNames(#"Transform File from Toggl (2)"(#"Sample File")))

Refering to your other post it looks like you didn't just changed the source in 2 places, but you made copies (as I see sequence numbers in the names) and apparently mixing up the 2 copies.

 

As I suggested in the other post: go back to the working version and just change the source in 2 places.

Don't make copies. 

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.