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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
DotU
Frequent Visitor

Will changing the "transform sample file" query cause all dataflow data to be dropped?

I have a dataflow which reads ALL the excel files being saved to a SP Folder.

Each Excel file is standard: exactly same column names, etc.
The dataflow has incremental refresh, so it only reads new files from last 15 days and older data which has already been read stays as it is.

Over the span of a few months of saving our files in the dedicated location, we have successfully collected data from 800+files.

I need to update the helper query (transform sample file query) to make it more efficient. I will not be adding any new columns, the final schema will be the same as it is now. Will doing this cause all the data to be dropped and re-read? Or would the new (more efficient) transformation steps only be applied to future files?

If needed, I can share the queries if that would help to make the question more clear.

Many thanks!

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi   @DotU 

 

"Transform sample file" query allows work in a group of files through just one function and make transformations in file combination automatically, which will refresh the dataflow and apply to all dataflow data.

 

When you apply "Transform sample file" query, it will ask you refresh dataflow.  If you refresh dataflow, it only refresh data and will not cause all the data to be dropped.

 

 p4.png

 Picture2.png

 

For details on transform sample file, please refer to the documentations:

Using custom functions in Power Query - Power Query | Microsoft Docs

Combine files (binaries) in Power BI Desktop - Power BI | Microsoft Docs

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors