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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Column Order Changed

Hello everyone,

I've builded a report from a folder included daily sales files. So I'll download csv file from system and save them into that folder.

  • The problem that I met is from today, the column order will be changed, like this:

trantrongtinngh_1-1682506998257.png

trantrongtinngh_2-1682507040504.png

So the query wont work if I load more files in the folder.

My English is not very good but I hope I express it right. Is there anyway that we can fix this? Thank you everyone

 

 

5 REPLIES 5
m_dekorte
Super User
Super User

Hi @Anonymous,

 

Did you use the Combine & Transform data option when set up the folder connector?

If so, there should be a "transform sample file" query. Select it and make sure to add a reorder columns step, to deal with this new column arrangement. Just drag one of the columns around - that should do it.

 

Ps. If this helps solve your query please mark this post as Solution, thanks!

Anonymous
Not applicable

Hi @m_dekorte , thanks for your reply. I've tried to follow your guide. but I still got this

trantrongtinngh_0-1682555123459.png

I'll explain more detail, so I must download sales file in the system to save in the folder every single day, from the beginning of the year, day by day seperately. And now with the files with new column order, the column header doesnt match with sample file before. Then comes error.

My only solution now is to manually download sales files day by day from the beginning of the year and redo the query, but it'll cost much time, and I dont know when until the system change the order column when I download the files again 😭

Hi @Anonymous

 

Can you show the M Code from the transform file?

m_dekorte_0-1682584429819.png

 

Anonymous
Not applicable

trantrongtinngh_0-1682584650654.png

trantrongtinngh_1-1682584678735.png

this is it @m_dekorte 

@Anonymous thanks, by the looks of it that shouldn't cause issues. 

 

Can you start at the top and select each step from you spe_sku_perf query, to see where the error first occurse and what the error message says.

m_dekorte_0-1682589880079.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.