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 September 15. Request your voucher.

Reply
MPowerQ
New Member

Updated data does not transform/load properly from folder

I have monthly data in a folder (Oct - May) that power query is pulling from.  However, when I added June's data to the folder, it did not format/display the data as it should have.  Example of the good data (Oct) and the data that did not load (June) is provided as well as the applied steps in the Power Query.  The data does not populate during applied step 6 if anyone can help troubleshoot.  Thanks!

 

1 - Oct data that displays properly

MPowerQ_0-1721939290483.png

  

2 - Jun data that does not display

MPowerQ_1-1721939323552.png

3 - Applied steps to the power query

MPowerQ_3-1721939423318.png

4 - Applied Step 5 (remove columns)

MPowerQ_6-1721939829095.png

5 - Applied step 6 (expand)

MPowerQ_5-1721939684021.png

 

 

8 REPLIES 8
Anonymous
Not applicable

Hi @MPowerQ 

 

Please check if the table of JUNE in Applied Step 5 (remove columns) has content, you can click at space next to "Table" in the cell. 

vjingzhanmsft_0-1721958515427.png

 

If it doesn't have data for the file, please go to "Transform Sample File" query. In Home ribbon, open Advanced Editor, copy all its M code and paste it here (remove sensitive information). We'd like to check the M code to find if there is any step may do some filtering operation that might have some effect on the result. 

vjingzhanmsft_1-1721962204316.png

 

Best Regards,
Jing

Aloha v-jingzhan-msft,

 

I opened the table.  It does have data in there.  However, I think that the transform sample file applied steps did not apply to the JUNE excel file.  I opened the advanced editor for the transform sample file and the M code is to promote the headers for the source file.  

 

Transform sample file M code:

 

let
Source = Csv.Document(Parameter1,[Delimiter=",", Columns=63, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
#"Promoted Headers"

 

How would I be able to apply the transform sample file M code so it also applies to any new files I add in the folder?  

 

Thanks!

 

Mark

Anonymous
Not applicable

Hi @MPowerQ 

 

The "Transform Sample File" code doesn't include any filtering steps, and you said "I opened the table.  It does have data in there. ", so the transform sample file M code does have been applied to the new file (Step "Invoke Custom Function1" is to apply transform sample file code to all files). The reason may be in the next steps.

 

Please check the result after expanding the table column (5 - Applied step 6 (expand)). Scroll down or search by JUNE file name to check the data of JUNE file after expanding. If rows of JUNE file display blank or null at this step, this means the problem happens during the expanding process. When expanding tables in a column, it selects columns to expand based on their names in the sample file. So you can check that all the column names in the June file should be the same as those in the sample file. Any invisible leading or tailing space in columns may have an effect. 

 

Best Regards,
Jing

Aloha @Anonymous ,

 

You are correct, the transform sample file did apply to the June table; however, that table had an extra header that shows "sep=|."  Right below that has the headers that need to be promoted.  Not sure why this extra line is in there, but it is preventing the actual headers to be promoted and the June data to populate?

 

MPowerQ_1-1722294718884.png

 

Thanks!

 

Mark

Aloha @v-jingzhan-msft ,

The contractor did a Microsoft TEAMS call and stated I had to create a Source Colum in the new data file.  Somehow adding that column and naming it "9_JUN_24" allowed for the data to populate on the spreadsheet. 

 

MPowerQ_0-1722379784771.png

 

Anonymous
Not applicable

When using a folder connector, the data in all files to be combined in that folder should have the same schema. So for the new file, you will need to ensure that it has the same column headers as the sample file. As these files are CSV files, the delimiter should also be the same. Any additional row above the headers row does affect the result. 

adudani
Super User
Super User

hi @MPowerQ ,

 

This solution for combining data may help:  (217) Combine Data from Multiple Excel Files | Most Dynamic Method (Dynamic Columns & Sheets) - YouT... 


if this doesn't resolve the issue, kindly provide the current error message, sample input and output data masking sensitive information.

 

Thanks

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Hello @adudani ,

 

Appreciate the reply and link to the video.

 

How the video setup combing multiple excel files was different than how the contractor setup our power query.  I removed the applied steps and am attempting to combine the data how the video shows, but immediately received the below error.  Was just trying to change the "Binary" fields to "Tables" on the content column as the video shows.  

 

Formula:

= Table.TransformColumns(
Source, {"Content", each Excel.Workbook(_)}

 

MPowerQ_1-1721959446512.png

MPowerQ_2-1721959547804.png

 

 

 

 

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.

Top Solution Authors