Change the SQL Statement: PowerPivot adding a new sheet to an already combined (set of sheets) to database.

countryfan_nt

Well-known Member
Joined
May 19, 2004
Messages
758
hello friends, Hope all is well!

need your help please with PowerPivot.

I have 5 workbooks (each has data in one sheet per workbook) in one folder, I want to combine all the sheets
in 1 database of the powerpivot. and I did it! thanks to the below website:
http://www.contextures.com/PowerPivot-Identical-Excel-Files.html

Now I added a new workbook (1 sheet in it), I want to add that workbook to the other 5.
without recombining all over again. I just want to add 1 to the combined 5. is there a way?

Your kind help is really needed and appreciated always; thanks in advance!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
May I add additional info.? I used SQL to add the data from different sheets/different columns. the challenge is adding the below line/sheet; without re-loading all the previous sheets:
SELECT * FROM `\\BETA\MI_F_C\New folder\NYC\7-Q317.xlsb`.[Sheet1$]

Your kind help is appreciated in advance.
==========================================================================

Code:
SELECT [Sheet1$].*   FROM [Sheet1$]

UNION ALL
SELECT * FROM `\\BETA\MI_F_C\New folder\NYC\2-Q216.xlsb`.[Sheet1$]

UNION ALL
SELECT * FROM `\\BETA\MI_F_C\New folder\NYC\3-Q316.xlsb`.[Sheet1$]

UNION ALL
SELECT * FROM `\\BETA\MI_F_C\New folder\NYC\4-Q416.xlsb`.[Sheet1$]

UNION ALL
SELECT * FROM `\\BETA\MI_F_C\New folder\NYC\5-Q117.xlsb`.[Sheet1$]

UNION ALL
SELECT * FROM `\\BETA\MI_F_C\New folder\NYC\6-Q217.xlsb`.[Sheet1$]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,093
Members
448,944
Latest member
SarahSomethingExcel100

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