Home

Adding new column in data source to table

%3CLINGO-SUB%20id%3D%22lingo-sub-901949%22%20slang%3D%22en-US%22%3EAdding%20new%20column%20in%20data%20source%20to%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901949%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20relatively%20new%20to%20power%20query.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20excel%20doc%20which%20has%20a%20table%20connecting%20to%20a%20data%20source%20which%20is%20a%20.csv%20file%3C%2FP%3E%3CP%3EI%20have%20added%20an%20additional%20column%20to%20the%20csv%20file%20and%20expected%20it%20to%20appear%20when%20I%20refreshed%20the%20connection%20to%20the%20data%20source%20but%20it%20hasn't.%3C%2FP%3E%3CP%3EHow%20to%20i%20add%20the%20additional%20column%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20assistance%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThankyou%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-901949%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901977%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20new%20column%20in%20data%20source%20to%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901977%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422854%22%20target%3D%22_blank%22%3E%40David365%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20David%3C%2FP%3E%3CP%3EIn%20Power%20Query%2C%20you%20can%20change%20the%20number%20of%20columns%20to%20be%20loaded%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136069iD8F264C6B17D76E5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-10-09_14h06_20.png%22%20title%3D%222019-10-09_14h06_20.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902175%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20new%20column%20in%20data%20source%20to%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902175%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422854%22%20target%3D%22_blank%22%3E%40David365%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20remove%20entire%20record%2C%20which%20specifies%20options%2C%20at%20all.%20Something%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ESource%20%3D%20Csv.Document(File.Contents(%22C%3A%5CTest%5CTest.csv%22))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EPower%20Query%20is%20clever%20enough%20to%20recognise%20in%20most%20cases%20non-empty%20columns%2C%20default%20delimiter%20and%20encoding.%20Another%20story%20if%20on%20next%20steps%20you%20transform%20your%20columns%20somehow%2C%20you%20shall%20take%20new%20column(s)%20into%20account%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-922532%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20new%20column%20in%20data%20source%20to%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-922532%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422482%22%20target%3D%22_blank%22%3E%40PascalKTeam%3C%2FA%3E%26nbsp%3BThankyou%20this%20was%20really%20hepful.%20Exactly%20what%20I%20needed.%20Took%20me%20a%20couple%20of%20mins%20to%20figure%20out%20I%20needed%20where%20I%20needed%20to%20edit%20it.......%20didn't%20have%20'Forumla%20Bar'%20enabled%20under%20'View'.%20Got%20there%20in%20the%20end.%3C%2FP%3E%3C%2FLINGO-BODY%3E
David365
New 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.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies