Controlling Multiple Pivots

Aug 14, 2009

I am working on an excel sheet (2007) with about 8 pivots from the same data (huge db). The 8 pivots take a different cuts of data. One filter element is same across all pivots. (For instance let us say that filter is City names: with 10 different city values in it- NY, London, Chicago etc)

What I would like to do is have a system where I just chose NY in one place and all the 8 pivots should use NY as one of the filters and refreash the data accordingly.

What I am doing now is I got to each pivot, choose NY first and then refreash all for the data.

View 14 Replies


ADVERTISEMENT

Controlling More Than 2 Pivots

Sep 10, 2009

Following up on a tread from Sailor64, I tried to use a code DonkeyOte created,

View 2 Replies View Related

Excel 2010 :: Controlling Pivots With VBA

Jun 11, 2013

The below code and variances of it has always worked for me when controling he pivot fields, however this no longer works in excel 2010 and i cannot seem to come up with a work around.

Code:
Sub Pivot_Date()
Application.ScreenUpdating = False

Dim pvtTable As PivotTable
Dim pvtField As PivotField
Dim pvtItem As PivotItem
Dim filterCell As String

[Code] .......

Its worth noting that this will work wen selecting all but not for individual fields. I have also tried skipping the loop ad simply setting the current page to the ilter cell but this doesn't work either.

View 1 Replies View Related

Multiple Pivots

Jun 6, 2008

Can someone direct me on how to make multiple pivot tables from values that are in a column?

View 9 Replies View Related

One Filter For Multiple Pivots?

Aug 14, 2014

I have 2 separate pivots running off 2 separate data sources. The filters used for each or fairly similar (bar one entry).

Is there a way to have one filter that filters the information in both pivots even though they are not based on the same data source?

Also, with the filter that is slightly different; in one table, I have an option that shows (this is just an example) 'retail and end user' yet, in the other table these are two separate options.

View 4 Replies View Related

Multiple Pivots One Filter Etc

Oct 16, 2009

I am looking for a way to combine three pivot tables in to one. Basically, one sales rep will have data for the current month, the year to date, and the total year. I have to compile this data to one sheet, for 30 sales managers! The problem with running the pivot three times (once for monthly, year to date, and yearly) is that brands that aren't sold in the month are then left off the table, which leads to a mess that it takes far too long to clean up. I hope I've made this clear, but please check the attachments for a better idea of what I'm looking to do...

View 9 Replies View Related

Multiple Pivots With 1 Data Source

Oct 24, 2012

I have one single data source and need to create multiple piot tables with it.

But when I group dates for example, this applies to all Pivot Tables that share the same pivot cache.

Is there a quick way (VBA preferred) to duplicate an existing pivot table with a new pivot cache?

I know about the technique to open a new workbook and copy it there and back again, but it is really annoying.

View 1 Replies View Related

Pivots With Data From Multiple Sheets

Feb 22, 2008

there's a way to pivot data from two sheets (both the sheets and the pivot table are in the same workbook)?

View 9 Replies View Related

Multiple Pivots With The Same Row - How Do I Make Them Change At The Same Time

Oct 22, 2009

I'm using Excel 2003 for this project.

For example: -
I have 3 pivot tables with the same row 'Media' (TV, Neswpaper, Magazine) and each has count as the data field (number of people who read/watch) then each pivot has a different column, Region, age, ***.

If I change the row of the first pivot to only show TV, how do i code it so pivot 2 and 3 only show TV also? I may have upto 20 pivots inthe end.

I found the below code to do this for page fields but can't adapt to rows -

HTML Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Dim ptTable As PivotTable, ptItem As PivotItem, vFields As Variant, lngField As Long
On Error GoTo ExitPoint
vFields = Array("filed1", "field2", "field3")

Application.EnableEvents = False
For lngField = LBound(vFields) To UBound(vFields) Step 1
For Each ptTable In ActiveSheet.PivotTables
If ptTable <> Target Then
With ptTable.PivotFields(vFields(lngField))
.CurrentPage = Target.PivotFields(vFields(lngField)).CurrentPage.Value
End With
End If
Next ptTable
Next lngField
ExitPoint:
Application.EnableEvents = True
End Sub

View 14 Replies View Related

Select Date Range In Multiple Pivots

Jan 20, 2010

I'd like to select the start date & end date for multiple Pivots (on one sheet).
Expl. if I put in a date in the "Start Date" cell : 01/01/2010 and another date in the "End Date" cell : 15/01/2010. Then all the pivots on the sheet should only show the date between 01/01 and 15/01/2010.

The dates in the pivots are under column "Date".
I have a code but it only selects 1 pivot and it doesn't refresh the pivots when you change the dates selection.

View 2 Replies View Related

Controlling Multiple Text Boxes On A Form

Feb 18, 2009

I have a userform with 40 text boxes in it. I have learnt how to restrict people entering anything other than numbers into a text box using the following code on the keypress property of the textbox:

Const Number$ = "0123456789." ' only allow these characters

If KeyAscii 8 Then
If InStr(Number$, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
Exit Sub
End If
End If

Rather than have 40 of these blocks of code (one for each text box), is it possible to somehow group them so that a block of code is applicable to all of them?

For the sake of arguement, the textboxes are called data1 up to data40

View 9 Replies View Related

Running Multiple In VBA Instances: Controlling Spread Sheet Always Waits For The Code To Return Before It Continues

Apr 28, 2009

i have a spread sheet which has a very complex simulaton in it. excel is not the ideal place for it, but it is not possible to port it wholesale to something more sensible. i have modified the code so that it is possible to run two copies of the spread sheet (in two seperate excel processes) at one time. Due to the dual core nature of the machine this has almost no overhead.

I have created a controlling spread sheet that is cabable of launching multiple copies of the simulation and starting the code executing. the problem is the controlling spread sheet always waits for the code to return before it continues, hence it would open two seperate versions of excel, start the first simulation executing and then wait until it completes before starting the next one. is there any way of starting a function in another work book without waiting for the execution to complete?

View 2 Replies View Related

Controlling IE

Nov 29, 2006

I am using vba to control internet explorer and return the inner html. To do this I have something like:

Dim arrinnerhtml As Variant

arrinnerhtml = IE.document.body.innerhtml

My problem is that I can’t get the meta description and keywords tags. The title tag seems relatively easy using:

Dim Title As String

Title = ie.document.Title

Is there a relatively simple way to do this for the description and keywords tags? It’d be nice if it was ie.document.description although it doesn’t seem to be. I’m obviously missing a trick here.

View 9 Replies View Related

Summary Analysis Without Using Pivots?

Feb 10, 2012

I need to summarise a batch of data in this format....

YearPeriodAccountCustomerPart NumberSalespersonChannelValue2011Jan1SteveA1KylieHome1502011Feb2BillA2KylieExport1802011
Mar3FredA3KylieHome2002011Apr4JohnA4KylieExport1002011May5AndyA5KylieHome85

And need to put it in the following format...

Salesperson - KylieJanFebMarAprMaySteve150Bill180Fred200John100Andy85

I know I can use a series of pivot tables but would like to keep the size of the file to a minimum.

Is a DSum the way to go or can I use a Sum if and use an and function with the sum if?

formula if so to saveme a bucketload of trial and error attempts...

View 2 Replies View Related

Pivots - No Drop Down Arrows

Jun 8, 2007

I have been sent a spreadsheet with data in it that is from a Pivot table.

The headings look like the ones in the Pivot table the only difference is
there are no drop down arrows to show/hide items

I cant click and drag fields to swap them.

So it looks like a Pivot but I cant manipulate it.

View 9 Replies View Related

Automatic Updates In Pivots

May 29, 2008

I would like to update data in a pivot with an offset function once I have new data in a worksheet. The range of the data is from A to CB.

View 9 Replies View Related

Macro Won't Update Pivots

Jul 10, 2008

I have a macro that is supposed to update 3 pivot tables with the change to just the first one but it doesn't work. Can anyone help?

Here is my code but nothing happens when I change the first pt (C & S). It doesn't update the other 3 tables.

Private Sub Worksheet_Calculate()
Dim PF1 As PivotField
Dim PF2 As PivotField
Dim PF3 As PivotField
Dim PF4 As PivotField
Dim x As String
Application.EnableEvents = False
Application.ScreenUpdating = False
Set PF1 = ActiveSheet.PivotTables("PivotTable4").PageFields("State")
Set PF2 = ActiveSheet.PivotTables("PivotTable3").PageFields("State")
Set PF3 = ActiveSheet.PivotTables("PivotTable2").PageFields("State")
Set PF4 = ActiveSheet.PivotTables("PivotTable1").PageFields("State")
x = PF1.CurrentPage
PF2.CurrentPage = x
PF3.CurrentPage = x
PF4.CurrentPage = x
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub

Pivot Table 4 = C & S this is one I want to make the change to
Pivot Table 3 = Sales Pivot
Pivot Table 2 = 2005 Pivot
Pivot Table 1 = SMG Pivot

View 9 Replies View Related

Controlling Several Passwords

Jul 28, 2006

how to liberate only the sheets already opened by this user, even after he/she has closed the workbook? It means that when this user re-open the workbook, only the password for this step (workbook) and of course for the sheets still closed (not yet visited), will be requested...

There will be about 20 users, accessing the same file (at least 8 or 9 at the same time), and each one has a different level. For this reason the workbook is also protected: depending on the username and password, I'm trying let excel "knows" what sheet each user can open, without type a password again. trying to illustrating: (all users and password are added by me, using a MasterSheet)

user1 ----- already unprotected sheet9 ----- can open sheet1 to 9 (no password, even re-opening the workbook)
to open the sheet10, a username and a password are required

user2 ----- unprotected sheet3 ----- can open sheet1 to 3 (no password, even re-opening the workbook)
to open the sheet4, a username and a password are required

............. and so on.........

View 4 Replies View Related

Controlling Another Program From Vba

Mar 21, 2007

I have data in an Excel worksheet that needs to be entered into a proprietary programme. I believe this is possible using SendKeys but as I need to keep switching back to Excel to get the next bit of data I am unsure as to how to go about this. The program would already be open as it is a dial up situation and I would have to dial into the relevant site first.

View 4 Replies View Related

Display Blanks In Pivots Table?

Aug 6, 2014

how not to show blanks in a pivot table but I do actually want to show them, however they are currently showing as '0' which is misleading to my audience; also I have cells will '*' which I also want to show in the pivot but again these show as '0' - the format of the cells in the raw data in 'number' however I have tried changing this to 'general' or 'text' but to no avail when refreshing the pivot table.

View 8 Replies View Related

Combine Sheets Using VLookups And Pivots?

Dec 8, 2013

I have 3 sheets in my workbook, DataA, DataB, and DataC

Data A contains:
ID_customer
and 4 variables A-D

DataB contains
ID_Customer
and 4 different variable W,X,Y,Z

Data C contains
ID_customer
and other 4 different variables

Request: I need to analyses the relationship between the variables using a Pivot table.

My thoughts so far: I think that I need to combine all the information onto one sheet first and then use the pivot table function, but its currently unable to combine onto one sheet, due to Id_ customer numbers appearing several times in DataB and DataC (and not always the same number of times in both), I need to retain all the information from DataB and DataC

I have attached a sample of my data : DataA.xlsx

View 6 Replies View Related

Fetching Pivots To Specific Cell

Feb 24, 2014

I have a ton of data coming into excel. I'm making a Pivot table of this.

From this tables everything goes to another sheet for a specific month. Right now January only.

The data will contain several of months later on in the future.

Where I can set the pivot to see the february date and insert into the right cells?

Excel01-file contains the Pivot table setup.
Excel02-file is the place where the pivot should insert the data specific to each month taken out from the data file in Excel03_data-file.

View 1 Replies View Related

Updating All Pivots When Opening Workbook

Dec 19, 2008

I have a spreadsheet with a number of sheets in it for our sales team to record orders received and pending; the first sheet contains pivots which relate to the other sheets (a sheet for each financial quarter) (i.e. one pivot for sheet 2, one pivot for sheet 3 etc)

Is there a macro which will allow me to update all of the pivots when the workbook is opened? Or, even better, one where they will be updated when the first sheet is accessed?

The only one I have found when searching is:

View 14 Replies View Related

Saving Groupings When Creating New Pivots?

Sep 28, 2011

I have a monthly sales report with x amount of customers in a number of countries with an ABCDE mark. I have made a pivot table with ABCDE marks in rows and countries in Columns.

I have then grouped the countries into regions. Looks something like this: [URL]

If you can't see it look here: [URL]

Now my issue is that I have to compare many months of this kind of data to see movement. What I wanted to do was to display these changes but how do I do this without having to create 10 different pivot tables, and is there a way I can save the country groupings so I don't have to manually group the countries for every pivot table?

View 1 Replies View Related

Controlling Another Application Where Hotkey Is Not Available?

Jan 29, 2014

I am working on an Excel macro which uses the Shell function to open another application, the AppActivate statement to change focus to that application, and then a series of SendKeys statements to perform tasks for which keystrokes (hotkeys) are available. However, there is one step in the process which does not have a hotkey available, but requires clicking on a drop-down with the mouse. Is there a way to have an Excel macro "click" on something for which a hotkey is not available?

View 1 Replies View Related

Controlling Drop Down Lists

Dec 31, 2009

I would like to do something similar to wiL with an employee drop down list. As the user begins to type the name, the drop down would narrow the choices alphabetically or the user could select the drop down list then hit the first letter of the name and go to that letter of the list (i.e. selecting "M" to go to the portion of the list that starts with "M").

View 2 Replies View Related

Controlling Autocalculate With Macro

Jul 17, 2009

I have a spreadsheet with ~30,000 rows of data that is using the "NOW" function. The endusers are having an issue with the spreadsheet having to recalculate everytime they run a filter as the spreadsheet recalculates the formulas everytime.
Is there a way to turn the autocalculate off for this spreadsheet only when it is opened?

I need the formulas to calculate once only when the sheet is initially opened but then turned off after that. When user closes the spreadsheet, the autocalculate needs to be turned back on.

View 3 Replies View Related

Controlling Non-Microsoft Applications With VBA

Sep 7, 2009

How can I control non-Microsoft applications using VBA? For example, how can I open a pdf file, print it and then close Acrobat Reader?

View 5 Replies View Related

Controlling Scroll From One Listbox To Another

Nov 18, 2013

I have 2 list boxes and want to controll scrool range (View) depending of selection of List Box 2.

Here is my code.

Private Sub UserForm_Initialize()

'ListBox1
Dim lbtarget As MSForms.ListBox
Dim rngSource As Range
Dim arr
Dim I As Long
Set rngSource = Worksheets("Material").Range("F4:K3000")

[Code] ..........

View 8 Replies View Related

Controlling A Chart In A Macro

Mar 27, 2009

In Excel 2007, I'm writing a macro to create several charts (column) that need to match what a designer has already built. I'm having a devil of a time finding the code I need to create parts of the chart. I've searched the web and this forum, but I must just not be asking the right things.

I can see everything I want to do in the format pop-up window when I right click on the charts in Excel, here is the path:

1) Format Minor Gridlines, Line Style, Dash Type, Rounded Dot
2) Format Axis, Axis Options, Major tick mark type, None
3) Format Axis, Axis Options, Position Axis, Between tick marks

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved