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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ghutchins
Helper II
Helper II

Transform Data on .CSV Fiule Updates

I exported a .CSV file from a third party survey app, and shaped the data with 'Transform Data' and was able to produce a viz from that data.  Today, becuase there are new surverys...   I exported the .CSV file again and overwrote the source file for yesterday's viz.

 

Because the file is structurally the same, only new rows, that the data transformations i made on the first file would be applied to today's version of the file.  It did not happen, many errors indicating missing columns.  

 

What did I do wrong?  Do I need to do the same transformations on each file version?  Any help is apprecitated.

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @ghutchins 

 

If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Allan

v-alq-msft
Community Support
Community Support

Hi, @ghutchins 

 

Based on your description, I created data to reproduce your scenario.

1.csv:

e1.png

 

2.csv:

e2.png

 

You may use Text/CSV connector to connect to 1.csv and filter out rows where 'Age' is greater than or equal to 12. Then you can create a parameter named as 'Filepath', go to 'Advanced Editor', replace the path with the parameter.

e6.PNG

e3.png

 

e7.png

 

Then you may right click the first query and click 'create function' to create a function named 'TransformCSV'.

e5.png

 

Finally you can input the filepath to apply the same transfromation the .csv files.

e8.png

 

Best Regards

Allan

 

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

camargos88
Community Champion
Community Champion

Hi @ghutchins ,

 

You should use the folder connection. So you can use many files and apply transformation to them.

You have to use the Transformation Sample File to apply the transformation, so it will apply to each file.

 

Just be aware, they have to have the same data structure.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors