Change different data sources in Pivot Tables in the Workbook - excel

I have a sheet in Excel with pivot tables and have different data sources. Is there a way to change the data source using VBA?
For example old data source to new data source:
List to NewList
Sales to NewSales

Related

Using SSIS, is it possible to output data to table within an Excel spreadsheet?

Within an Excel document (.xlsx), there's an empty table named "Raw_Data_Table" on a tab named "Raw_Data". There are several pivot tables linked to this table, Raw_Data_Table. On a daily basis, a query gets ran, the results get copied to Excel (into the table on the spreadsheet), a timestamped copy is saved, and the updated file is emailed to users. Using SSIS, I have all of this automation set up EXCEPT for getting data into the empty table (Raw_Data_Table) within the spreadsheet. Within a data flow tax, I've tried explicitly selecting the Excel rows (SELECT * FROM [Raw_Data$A3:L]), but it inserts data below the Excel table and not into table. Is it possible to have SSIS output results into a table within a spreadsheet?

Excel - Combining worksheets to form a pivot

I am working in Excel and looking to make a pivot table using multiple worksheets.
I have data that is collected weekly with the same column headings and I would like to combine this into a pivot table so that I can view summaries of the data and filter by month + other headings.
I can't combine the worksheets and copy and paste to create a larger table as each worksheet contains a very large data set.
Are there any suggestions on how to go about this?
Thanks

How to reconnect data source of Excel pivot table slicers

I have a table in my excel workbook which comes directly from SQL Server. From this table I have added a pivot with slicers etc.
I have recently added three new columns to the original data table, not in SQL, but manually in Excel. The new columns contain formulas which updates as I refresh the data from the SQL data source.
I would like to add slicers to my already existing sheet with slicers containing the data from the new columns but for some reason, when I select the data from which to create the slicers, the new columns that I have added does not appear in the list of columns that I can select. If I add the slicers directly from the data table, it is not linked with the rest of my slicers from the same data table.
Should I re-connect the data source to the slicers? If so, how do I completely remove the connection and reconnect again. I have graphs (slicers) and a lot more so I don't want to have to re-do all the work.
Can the problem be that I have added three new columns manually?
Please help! :)

Excel: Create dynamic table from named range in another sheet

I'm creating templates reports to be filled by Apache-Poi.
I made some graph reports using named ranges, without problems. So, I don't need to know the amount of rows to graph it.
I have my presentation sheet separately from my data sheet (so I can hide the data sheet).
How can I have a table in the presentation sheet created from the data of the data sheet?
For instance, with my application I fill the table in the data sheet having 3 rows, I want to have a formatted table in the presentation sheet (with filters) populated with those 3 rows in the data sheet. And then if I fill the data sheet with 9 rows, well, you get the point. Any idea?
Edited: I'm working in an Export to Excel functionality for an application. What I do is to use an excel file as a report template, then with Apache POI, I clone the file, populate it with the report data, and then serve this file to be downloaded by the client browser.
I only fill the data in the Data sheet with Apache POI. Now, on the other reports, with my graphs on the presentation sheet, I don't have to do anything more than complete the data table (because I'm using named ranges).
I'm adding some screenshots with dummy data in order to explain a little more.
-- Data Sheet --
-- Presentation Sheet -- (what I want to achieve)

Display two filtered pivot tables in the same sheet on separate worksheets

On excel 2007, in one sheet i have 2 pivot tables created by the first image table below
and i have create two pivot tables in the same worksheet as you can see in the second image below, and i have choose all stores, now i know i can use option Show Report Filtered pages with the field stores if i have one pivot table, but can i do the same with 2 pivot tables simultaneously?
For example to choose both pivot tables and create with Show Report Filtered pages new sheets like in the third image but with both tables in it?
If there is a way with formula,functions any solution not with VBA or macro.
If you upgrade to excel 2010, you'll be able to use Slicers for that purpose. In Excel 2007, you will have to use macros to achieve a similar effect.

Resources