Adding new column in data source to table

Copper Contributor

Hi,

 

I'm relatively new to power query.

 

I have an excel doc which has a table connecting to a data source which is a .csv file

I have added an additional column to the csv file and expected it to appear when I refreshed the connection to the data source but it hasn't.

How to i add the additional column?

 

Any assistance would be greatly appreciated.

 

Thankyou

3 Replies

@David365 

 

Hi David

In Power Query, you can change the number of columns to be loaded

2019-10-09_14h06_20.png

@David365 

You may remove entire record, which specifies options, at all. Something like

Source = Csv.Document(File.Contents("C:\Test\Test.csv"))

Power Query is clever enough to recognise in most cases non-empty columns, default delimiter and encoding. Another story if on next steps you transform your columns somehow, you shall take new column(s) into account as well.

@PascalKTeam Thankyou this was really hepful. Exactly what I needed. Took me a couple of mins to figure out I needed where I needed to edit it....... didn't have 'Forumla Bar' enabled under 'View'. Got there in the end.