Additional column not showing in Power Query merge files from folder

chriscorpion786

Board Regular
Joined
Apr 3, 2011
Messages
112
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have 3 workbooks, in the first two workbooks columns are from A to D all smiliar, they are store names, in the third workbook, an additonal store has been added, so it is from A to E,
When merging all workbooks, from folder option in Power Query and combining all files, the new store column does not appear.
Is there an easy method , or fix for this. Can anyone help in this.

Many thanks,
Mustafa
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Need to see some sample data that is representative of your actual files. Suggest you upload via XL2BB so that it can be tested and analyzed.
 
Upvote 0
Hi, I have captured the below, hope this helps. The last column which is "PAK" has been added in the third file, which is captured below.

03-March.csv
BCDEFGHIJKLM
1Product NameMOERAKJIMMIDCCMCCSHINSHJSAFFUJ-CCMARPAK
2All-Purpose Bike Stand$11,293.90$2,323.02$38,001.40$243.60$10,211.56$5,956.16$53,965.33$30,152.57$45,769.43$43,305.56$22,398
3AWC Logo Cap$6,684.37$37,425.12$665.50$25,986.55$1,400.25$20,270.28$25,529.62$53,101.26$7,327.48$3,570.56$87,920
4Classic Vest, M$19,578.50$28,770.82$3,999.42$4,338.74$29,467.02$18,586.33$3,476.42$10,447.48$134.96$44,234.99$74,282
5Classic Vest, S$46,774.88$1,782.53$3,061.78$79,255.86$53,587.72$1,219.00$9,452.36$8,233.52$1,490.11$22,840.97$75,208
6Front Derailleur$25,003.16$16,839.76$5,489.84$1,639.74$70,603.03$20,661.15$56,675.36$14,701.28$12,688.83$17,917.56$24,416
7Full-Finger Gloves, M$24,926.30$29,732.23$6,467.22$13,200.69$5,041.07$21,719.60$26,723.04$68,409.08$10,467.17$5,027.72$58,648
8Full-Finger Gloves, S$23,369.09$33,034.86$44,226.90$37,101.45$31,437.30$7,810.30$47,293.48$9,598.09$1,776.16$36,524.38$67,450
9Half-Finger Gloves, L$7,564.48$38,095.62$22,115.34$69,210.43$62,237.33$2,973.39$17,844.41$30,509.45$42,530.73$32,250.84$20,460
10Half-Finger Gloves, M$38,756.71$56,893.58$5,276.31$6,943.55$17,693.75$11,497.14$35,633.96$25,769.78$23,979.73$38,821.67$55,236
11HL Bottom Bracket$6,007.67$13,751.08$201.49$17,496.91$30,566.39$17,176.33$34,331.62$19,546.24$13,917.98$635.64$49,639
12HL Crankset$64,482.00$34,652.80$21,978.16$6,066.02$37,204.79$33,803.84$39,093.95$18,227.62$18,097.86$43,574.80$24,124
13HL Fork$20,205.71$33,758.85$57,227.31$15,519.60$52,779.89$3,432.26$6,807.56$58,707.64$4,218.97$2,999.03$71,167
03-March
 
Upvote 0
So, because you have only shown the result, am I to assume that the first two files were appended to each other and you wish to append this file to those? Or am I missing something here?
 
Upvote 0
Hi, no this is not the result, its the third file to be appended. The new column is M, with "PAK" data added to this file.
The previous two files dont have column M.
 
Upvote 0
If I am understanding correctly then the following should work for you. Your file shown above is Table1. Tables 2 and 3 are the same file without the last column. I loaded each into the PQ Editor and appended 3 to 2 and 1 to the balance. It created a new column but did not summarize the data. To summarize the data I did a Group By. Here is the code for the last steps after they had been "merged/appended"

Power Query:
let
    Source = Table.Combine({Sheet3, Sheet2, Sheet1}),
    #"Grouped Rows" = Table.Group(Source, {"Product Name"}, {{"MOE Total", each List.Sum([MOE]), type nullable number}, {"RAK Total", each List.Sum([RAK]), type nullable number}, {"JIMMI Total", each List.Sum([JIMMI]), type nullable number}, {"DCC Total", each List.Sum([DCC]), type nullable number}, {"MCC Total", each List.Sum([MCC]), type nullable number}, {"SHIN Total", each List.Sum([SHIN]), type nullable number}, {"SHJ Total", each List.Sum([SHJ]), type nullable number}, {"SAF Total", each List.Sum([SAF]), type nullable number}, {"FUJ-CC Total", each List.Sum([#"FUJ-CC"]), type nullable number}, {"MAR Total", each List.Sum([MAR]), type nullable number}, {"PAK Total", each List.Sum([PAK]), type nullable number}})
in
    #"Grouped Rows"

Book6
ABCDEFGHIJKL
1Product NameMOE TotalRAK TotalJIMMI TotalDCC TotalMCC TotalSHIN TotalSHJ TotalSAF TotalFUJ-CC TotalMAR TotalPAK Total
2All-Purpose Bike Stand33881.76969.06114004.2730.830634.6817868.48161895.9990457.71137308.29129916.6822398
3AWC Logo Cap20053.11112275.361996.577959.654200.7560810.8476588.86159303.7821982.4410711.6887920
4Classic Vest, M58735.586312.4611998.2613016.2288401.0655758.9910429.2631342.44404.88132704.9774282
5Classic Vest, S140324.645347.599185.34237767.58160763.16365728357.0824700.564470.3368522.9175208
6Front Derailleur75009.4850519.2816469.524919.22211809.0961983.45170026.0844103.8438066.4953752.6824416
7Full-Finger Gloves, M74778.989196.6919401.6639602.0715123.2165158.880169.12205227.2431401.5115083.1658648
8Full-Finger Gloves, S70107.2799104.58132680.7111304.3594311.923430.9141880.4428794.275328.48109573.1467450
9Half-Finger Gloves, L22693.44114286.8666346.02207631.29186711.998920.1753533.2391528.35127592.1996752.5220460
10Half-Finger Gloves, M116270.13170680.7415828.9320830.6553081.2534491.42106901.8877309.3471939.19116465.0155236
11HL Bottom Bracket18023.0141253.24604.4752490.7391699.1751528.99102994.8658638.7241753.941906.9249639
12HL Crankset193446103958.465934.4818198.06111614.37101411.52117281.8554682.8654293.58130724.424124
13HL Fork60617.13101276.55171681.9346558.8158339.6710296.7820422.68176122.9212656.918997.0971167
Sheet2
 
Upvote 0
Solution

Forum statistics

Threads
1,223,762
Messages
6,174,357
Members
452,558
Latest member
jswan83

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