Linking Pivot Tables - Multiple Page Fields
Feb 16, 2010
I have two pivot tables on one sheet and I want the page fields on the second to change when I change the first pivot table. I found the below code and have applied it to one of the three page fields I have, but can't seem to duplicate it for the other page fields:
View 7 Replies
ADVERTISEMENT
Feb 1, 2010
it's possible to create new fields (variables/columns) on the fly (without adding them to the original data table).
For this example, assume I have a column for:
job code estimated hours
job code actual hours
total estimated hours
total actual hours
Excel has made it easy to run averages or sums for any of those columns, but what if I want to see what the average proportion for job code estimated hours/ total estimated hours? Is there an easy way to do it with pivot tables without adding a column to my database? I'm working in Excel 2007, my data table size is approximately 100 columns by 200 rows.
View 2 Replies
View Related
Dec 5, 2006
My Pivot Table data section contains calculated fields and normal fields...both have sub and grand totals. The calculated items are correct but. the calculated field totals are incorrect. The normal field totals are correct. The calculated field totals are ... the True total multiplied by the number of items!
View 2 Replies
View Related
Oct 18, 2007
I have an access 2000 database with many tables of data in it.
The tables have 12 fields containing customer information as follows:
1-vendor#, 2-bar code #, 3-store#, 4-department#, 5-style#, 6-item colour, 7-size, 8-active in basics stock, 9-sales, 10-stock on hand, 11-orders placed, 12-week end date
the pivot tables in excel 2000 track this data week by week, which are linked to tables in the access database.
Everything was working fine until I tried to perform a security wizard on my access database so users could not make any changes to the tables in access>>>>>>This corrupted my database some how!
As a possible solution I re-created an entirely new access database, thinking that I could continue to create pivot tables and everything would move smoothly as prior to the corruption, but ive been having problems.
PROBLEM:
After linking the data from access to excel to create my pivot tables the data from the table that is retrieved from access table is incorrect.
it come up with repetative figures eg....15 15 15 or 18 18 18 when the
Ive tried sources on the site and web vbut nothing helps tried manuals etc-
contacted my It dept at work but they have no clue on this issue.
Hope there is a guru expert out there some where... who can help!
please see below:
CORRECT DATA
store(All)
date13/10/2007
Sum of Stk on hand size
stylecolourLMSXLGrand
Total
HEDI 99 ASSORTED74486
JEDIASSORTED74553741207
KEDIASST1371557175438
M1018NAVY223
WHITE221
PEDIASSORTED79644947239
U1008BLACK1371278054398
GREY HEATHER107577861303
WHITE1071076864346
Ive also tried to compact repair the access database... didnt work- tried refreshing the pivot table didnt work....im fairly certain that the data in the access table is correct.....im beginning to think there is a problem with the pivot table although they used to work when i did them before so not quite sure why this is happening and how I can resolve it?
View 9 Replies
View Related
Jan 16, 2014
I am just starting to use the wonderful pivot tables.
I have a long list of data which basically consists of the following info:
-Company Code
-Country
-Account description
-Account balances
The pivot table is set up like so:
Row labels - Company Code, then Country
Column Labels - Account description, eg Input Tax, Output tax, clearing account, import tax, acquisition tax, set off account
Values - Account Balance
The table works perfectly.
Now what I want to do is some calculations based on the fields
- a check that Acquisition tax = the negative of the set off account, (i.e net to nil)
- a sum of the balances in the import, input and output tax accounts
- a comparison of that last figure against that in the clearing account to identify a difference
I tried to do it using basic formulae but I can't drag and drop the formula down the rows.
And I couldn't make out what the calculated cell function does. It appears to only include the titles of my data and not the individual fields.
View 1 Replies
View Related
May 15, 2013
How to hide the Pivot Table pagefields . Because I have so many filters on my pivot table to get it where I want it to be, I chose to use some PageFields. Trouble with these, is they look awful on my report which will be issued in PDF format so not an interactive field at all.
When I use the PF.Orientation =xlHidden on a page field, it affects the accuracy of the report
If I use this on a rowfield, no problem.
Is there a VBA way to hide pagefields?
Code:
Set PF = pt.PivotFields("Hours Code Effective")
PF.Orientation = xlPageField
With pt.PivotFields("Hours Code Effective")
.PivotItems("Yes").Visible = True
.PivotItems("No").Visible = False
.PivotItems("(blank)").Visible = False
End With
' Set PF = pt.PivotFields("Hours Code Effective")
' PF.Orientation = xlHidden
View 6 Replies
View Related
Feb 26, 2009
I have just started using pivot tables and I have ran into a problem with the count feature. I have an original data list that breaks down in the pivot table to:
date
events on that date
Using the pivot table facilities, I want to do a count of those who said they were going to attend, and those who actually attended. The detailing both of these columns on the original list have a true false designation. When I do the count, the summarised information only counts the number of records for each of these events, and not the 'true' field entries for each of these columns.
How do I count these two parameters for 'true' from the original list in the pivot table so I can see a comparison between these two numbers?
View 9 Replies
View Related
Aug 29, 2007
I want to print out, for a range of 'Page Fields', from a Pivot table automatically.
The Macro must be able to:
Automatically go through and select the 'Page Fields' in the pivot table
Select the print area range automatically, which will change each time the pivot is refreshed/reselected.
Set the print area to fit the page for each category selected in the pivot table
Finally print.
Can't find code for this anywhere, but i must admit got fed up with looking
View 3 Replies
View Related
Apr 28, 2007
I'm trying to do at the moment is build a user interface for some Excel Data. Now, the natural way to do this would be to build a pivottable and let users move the fields around, and this is how the thing has worked in previous iterations of the workbook. It seems now, hoever, that we're trying to cater for users for whom pivot tables are just a little too much and to summaries data based on listboxes etc.
What I'm interested in knowing is whether there are ways of interacting with PivotTables beyond the GETPIVOTDATA function - is there any way, for example, to select different field items to show based upon an input from elsewhere? How does one tell a pivottable what to do from outside the pivottable?
View 3 Replies
View Related
Jan 7, 2007
1. I have 4 pivot tables on one sheet, all with the same page field (store name) and all relating to same data table.
If I change the store from the page field on one table, I want it to simultaneously change the other 3 tables to the same store.
2. I have a similar sheet which has charts instead of tables for which I wish to achieve the same thing.
View 9 Replies
View Related
Nov 20, 2009
I am trying to write a list of pivot table page filter pivot items to the Immediate window - but only hidden items. The code below should do the job where the active sheet is a pivot table.
However when I change the page filter pivot items being hidden, the pivot items returned by the macro don't change. It seems to assume that all pivot items are hidden when in fact it may be only one or two. It will work though for pivot row items (pvt.RowFields) and pivot column items (pvt.ColumnFields) where the user changes them.
Does the pf.HiddenItems collection work for RowFields and ColumnFields but not PageFields? If so, is there a pivot field object that reliably holds hidden pivot items residing in the page filters?
Sub ListHiddenPageFilterPivotItems()
Dim wb As Workbook
Set wb = ThisWorkbook
Dim ws As Worksheet
Set ws = wb.ActiveSheet
Dim pvt As PivotTable
Dim pf As PivotField
Dim pi As PivotItem
View 8 Replies
View Related
Aug 16, 2013
I have a pivot table in the first sheet which includes the field "Date" as a column label.
In the remaining sheets, except for one, there are pivot tables based on the same underlying dataset which also include the field "Date" as a column label.
I would like to adjust the selection (i.e., exclude some dates) from the column label in the first sheet and see if it is possible to make the same adjustments automatically to the pivot tables in the remaining sheets as well.
note that the field "Date" is used as a Column label, i.e., it is not a Report filter.
View 3 Replies
View Related
Jan 21, 2013
I have a single workbook with multiple worksheets. Each worksheet has a different pivot table displaying a different view of the data. Each pivot table uses the same source data at worksheet1.
Each week i add new data to the end of the source data, which means that I need change the source data reference separately in each pivot table to update each pivot table view to include the new data. This is laborious as there are quite a few pivot tables.
Was wondering if there is some way of changing the pivot table source data reference on all pivot tables at the same time.
View 4 Replies
View Related
Sep 5, 2006
Is it possible to create pivot table from another multiple pivot table.
Example: I have two diff pivot table "Income" and "Expense" as well
and I need to preapare new pivot table using with those two pivot table
View 3 Replies
View Related
Jan 3, 2014
I was wondering if it were at all possible to add multiple columns to the values portion of a pivot table at once, instead of individually dragging. When you click on them, it auto-sends them to Row Labels, which I don't want. I have a bunch of colums I want to add to Values and don't want to waste a bunch of time dragging them individually.
View 2 Replies
View Related
Aug 28, 2008
I have pivot tables in diff pages
im trying to make a button to reset all the fields in all the pivot tables..
i tried recording a macro to do this but it only works for page fields..
it wont work for the column fields.. act, adopt and check are page fields at the top... region is a column field ... goto_AQcheck is a macro to switch to that sheet which is assigned to another button....
this isthe code it gave:
View 13 Replies
View Related
Jul 15, 2014
with this macro?
I have a lot of pivot tables on multiple sheets in one workbook.
I want to deselect all "(blank)" from rows, and sort both rows and columns in ascending order.
I recorded a macro but it only refers to specific pivot tables, I would like it to do the same sorting for all pivot tables in the workbook.
Sub PivotBlankSort()
'
' PivotBlankSort Macro
'
'
Windows("Alt Assessment Y10 13-14.xlsx").Activate
Sheets("L&C Prog Sum2").Select
With ActiveSheet.PivotTables("PivotTable10").PivotFields("English")
.PivotItems("(blank)").Visible = False
[Code]...
etc as I move to each separate pivot table.
View 2 Replies
View Related
Apr 1, 2009
I am having a lot of trouble with pivot tables in Excel 2007 VBA. I am trying to create pivot tables using macros (connected to buttons the user can press to create the pivot table) - please don't ask why, but i need to do this!!!
I used the record fuction in excel 2007 to produce macro code which will produce the required pivot tables when the user presses a button.
Unfortuanately the coding seems to work fine when i have one pivot table in a file but breaks down if i record code to produce another pivot table.
I have attached some code below (which was produced by the record function) and is intended to produce 2 seperate pivot tables (the macro submacro2 produces the 1st pivot table and the macro submacro4 lower down the page produces the 2nd pivot table). I have also indicated the point in sub 4 where the code breaks down - basically submacro4 just doesnt run!
View 14 Replies
View Related
Nov 17, 2009
Background: I know ZERO about VBA and I am a Vlookup & Pivot Table noob, but experimenting everyday.
Every week, since August 29, 2009, I get a sales report from my customer in raw form showing point of sales data for the previous 7 days. After manipulating the data I end up with 11 columns.
Now, if I am only concerned with that one week then I can drop the whole sheet into a Pivot Table and all is well.
However, I have 12 sheets now (with more to come), one for each week, and the row count ranges from 3,328 to 16,414.
I do not want to consolidate the data.
I can copy everything to one sheet, and hope not to max out at the million row mark, but would prefer to keep it tabbed by week.
View 2 Replies
View Related
Sep 21, 2013
This is my data:
This is the Pivot Table I created:
The Pivot Table is exactly what I want and I like that I can also sort by school or district. The problem: Cells B6 through E6 show up with correct information but the totals below that are all wrong. They seem to pull the same data from question 4.
View 3 Replies
View Related
Jan 22, 2014
For data I am using 1 pivot table. I have 4 tabs which use this pivot table to present different data on each tab.
For the first question, I have the same pivot table in the sheet twice in order to have multiple pivot charts with similar data but setup differently. I found this to be the simplest solution to presenting the data in the manner I want to see it. Otherwise I wish to set the tables up so that if I change a filter in one of the tables that the data is automatically updated to both tables.
The second question, this relates to the first question somewhat. I wish to change filters in 1 pivot table from tab one, and once that tab is updated I wish for all of the other tabs with this same pivot table to automatically update with the filter changes from the first time.
View 3 Replies
View Related
Oct 25, 2011
I have 3 different pivot tables (with 3 different data sources) on 3 seperate sheets (sheet2, sheet3 & sheet4). Each pivot table has a report filter which contains employees names. On sheet 1 I have a sort of 'dashboard' set up feeding from the data in the pivot tables, and a combo box form control from which I can select the employees names.
Currently, if I want to see John's data, I need to go to Sheet1 and select 'John' from the report filter, then goto Sheet2 and select 'John' from the report filter & the same for Sheet 3. I was wondering if it is possible to somehow link the pivot tables to the combo box - so that when I select 'John' from the combo box on Sheet1, it automatically selects 'John' in the report filters on sheets 2,3, & 4.
View 9 Replies
View Related
Apr 21, 2014
I have to track how well location managers are keeping track of skill competencies.
We rate skills as...
0 – know nothing ,
1 – read training manual,
2 – check off by manager.
I need the managers to provide these ratings then I have to report what locations need more training. When an new employee is entered into the system, the manager should give them a target of 2 for each skill the employee needs to gain. If the target skill is 2 rating higher than the current skill level, I have a column named Delta that records a 2.
I have learned how to use the pivot table feature. I can make separate pivot tables using filters that show…
a) how many 2s each employee has for a target,
b) how many 2s each employee has for deltas,
a) how many 2s each employee has for a current level and I can show the date the 2s where achieved
What I need is to learn how to combine all of this information on one pivot table (or report), but the filters really seem to make a mess of it all when it is all together. adding multiple sheets to one Pivot table.
Screenshots...
Count of Targets
Count of Deltas=2
Count of Current Skills
!What I need to produce!
[Code].....
View 1 Replies
View Related
Aug 31, 2006
I am trying to find a way to set up a macro that will allow me to pull in data - create the Pivot table - delete the table - then pull in fresh data (of a different row length - same number of columns) and create another Pivot table. I have tried to manipulate recorded code to no avail. Here is what I am starting with:
Const lngLastPossRow As Long = 65536
Range(Cells(1, 1), Cells(Cells(lngLastPossRow, 1).End(xlUp).Row, 24)).Name = "Data"
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:="Data"). _
CreatePivotTable TableDestination:="", TableName:="PivotTable2", _
DefaultVersion:=xlPivotTableVersion10
ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(3, 1)
ActiveSheet.Cells(3, 1).Select
ActiveSheet.PivotTables("PivotTable2").AddFields RowFields:=Array(" ", _
"Channel", "Sales/Exchange", "Mode of transp.", "Sold-to Party", "Material", "Data")
While it creates the first pivot table fine, after deleting it and starting again it wants to create the next sequence (PivotTable3) which crashes the macro. I must close the file and reopen to run it again.
View 4 Replies
View Related
Nov 9, 2011
In the "Pivot Table Field List" I have the option to "Choose fields to add to report". I have a large number of fields that I want to choose and "Add to Values" - so it is tedious to select each item individually.My question: Is there any possible way select multiple fields at the same time? e.g.
a "select all" option, orhighlighting a range of the available fields (either by dragging or holding the shift key)I've looked / tried above with no luck.
Any Excel Add-Ins out there that might address this? I'm fearing not since my searches have come up empty.
View 4 Replies
View Related
Jun 15, 2012
I am trying to update multiple pivot tables from different OLAP cubes based on the same cell value that an user defines,
namely one country for which he/she wants the create the report for. The code I recorded goes like this:
VB:
Sub TUR()
Sheets("Pivot").Select
ActiveSheet.PivotTables("PivotTable1").PivotFields("[Geography].[Geography]"). _
ClearAllFilters
ActiveSheet.PivotTables("PivotTable1").PivotFields("[Geography].[Geography]"). _
CurrentPageName = "[Geography].&[TUR]"
End Sub
In this example, TUR stands for Turkey.
Basically, I have over 20 countries and at least 3 different OLAP cube-based pivot tables in my report, I can do it with 3 x 20 different macros but that seems like taking the long way.
View 2 Replies
View Related
Aug 24, 2014
I have ~ 300 pivots (one on each tab) all linking to one data set in the same workbook. I realized that I neglected to select the year 2006 in my column label for every pivot table and hoping that there is some way to
simultaneously update all pivots to include 2006 data instead of manually checking the box off one by one.
View 2 Replies
View Related
May 2, 2013
I have multiple pivot tables with different data source. I wish to have one slicer which control all the pivot tables. I would have one common colum for all the pivot tables which is the one i wish to control for instance the person in charge. Note that all my pivot tables are from different data source. how to do it?
View 1 Replies
View Related
Dec 16, 2013
The spreadsheet is comprised of 4 sales data sheets, one for each store. Each of these sales data sheets runs several pivot tables (One for dept sales, one for waste, one for sales on Selected UPCs etc) and I used to have 1 copy of each pivot table for each store (ie 24 pivot tables). Now I have found a way to have only 1 copy of each PivotTable which changes based on which store is selected using the following code:
Code:
Sheet13.PivotTables ("Top10LW").PivotTableWizard SourceType:=xlDatabase, SourceData:= _
.List(.Value)
This works great however I was repeating it for every pivot table I had in the spreadsheet, causing messy code and file corruptions.
Is there any code which I can use for updating all pivot tables, using as minimal code as possible, all in one hit?
View 3 Replies
View Related
Sep 20, 2009
I am trying to combine sorted data from 2 worksheets to a new work sheet to process further. I have one worksheet with order number, part number, order qty but with different delivery dates. On another worksheet, I have the order number too, part number, the qty delivered. The qty delivered is not always the same each delivery.
My aim is to find out how many are already delivered under a certain purchase order and the balance of undelivered parts.
I used pivot tables to sort out the data but I am stuck here not knowing how to extra the sorted data from the pivot tables to the 3rd worksheet. I will need to match the order number and the part number.
View 9 Replies
View Related