Changes in Header name or Number of columns will Increase or Decrease CSV file from folder

srehman

Board Regular
Joined
Jan 4, 2020
Messages
210
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

Normally in power Query we are performing data transformation from a csv file from a folder.

Sometime columns header names changed.

Sometime Number of column will increase or decrease like (Date/Time in single column) but in next time ( Date & Time in 2 separate columns)

In nutshell due to this changes we are facing expression error cannot run query further. Is there any way query will accept this changes.



Please advice

Site IDClient IDTag IDLocation(Pallet)(Date/Time)
Now Header name changed ( Pallet 2) and separate columns fro date & Time

Site IDClient IDTag IDLocation(Pallet2)(Date)(Time)
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Could you post error example and example of M?
anyway try to remove lines with Changed Type
 
Upvote 0
Hi Sandy,
I found gr8 video answer of issue.

But thanks you always response
 
Upvote 0

Forum statistics

Threads
1,223,790
Messages
6,174,600
Members
452,574
Latest member
hang_and_bang

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top