2007 Controlling Multiple Pivot Tables with One Filter

Hello there,
I'm trying to update two pivot tables using one filter. The different VBA solutions I've tried haven't worked so I'm hoping this community can answer my question.
I have two pivot tables; they have basically the same information, just two different sets of data; one is orders that are Complete, the other is orders that are Incomplete.
When I change the filters on the Complete pivot table, I'd like the Incomplete pivot table to filter the same way.
Any help is appreciate. Thanks!

The easiest way would be to setup your 2 pivots and turn on the Macro Recorder then go through the steps you want to perform.  The recorder will generate all the code you need.  I just did this exercise and got this . . .
Sub Macro1()
ActiveSheet.PivotTables("PivotTable1").PivotFields("PARTY").CurrentPage = _
"(All)"
With ActiveSheet.PivotTables("PivotTable1").PivotFields("PARTY")
.PivotItems("DEMOCRAT").Visible = False
.PivotItems("REPUBLICAN").Visible = True
End With
Range("F1").Select
ActiveSheet.PivotTables("PivotTable3").PivotFields("PARTY").CurrentPage = _
"(All)"
With ActiveSheet.PivotTables("PivotTable3").PivotFields("PARTY")
.PivotItems("DEMOCRAT").Visible = True
.PivotItems("REPUBLICAN").Visible = False
End With
End Sub
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

Similar Messages

  • How to show two seperate pivot tables with one select column

    Hi All
    My client wishes to have two pivot tables, one showing positive results and the other showing negative results.
    For Example:
    DIMENSION
    BUSINESS A          1000
    BUSINESS B          500
    BUSINESS C          100
    DIMENSION
    BUSINESS A          -1000
    BUSINESS B          -500
    BUSINESS C          -100
    Is it possible to then select the different DIMENSION with one select column for both?
    Thanks

    Not sure I got it right try this
    for Number column pull twice and set col*-1
    use 2 pivot table for each number type
    cool as ~ http://cool-bi.com

  • Powerpivot excel pivot-tables with multiple rows (problem expand / collapse)

    Hello, 
    I made a pivot table with powerpivot so I get kind of data: 
    The problem I have is that when I reduced the city of Bordeaux for example, given this city are reduced both that really interests me as the other non-company (all cities Bordeaux are reduced). 
    I would like to know how to get it is there that the city which interests me is reduced?

    Hi,
    As I have no idea of your PowerPivot data. And I have a litter confused about 
    'the city which interests me is reduced' .
    Did you want to get the city whose volume(maybe sales volume) is reduced than last year ?
    If so,I suggest you create a calculated column in PowerPivot to get the YTD of previous year using DAX. then in pivot table you can use this dimension to do a filter.
    http://www.powerpivotblog.nl/get-the-ytd-of-same-period-last-year-using-dax/
    If I misunderstand you, please let me know. And if it is convenient for you, please share your workbook here.
    Wind Zhang
    TechNet Community Support

  • Drill Down in Pivot Table with item on page level

    Hi,
    I've got a pivot table with Chart next to it. The chart is a separate view, I did not use the 'Chart pivoted results' option.
    My pivot table has one Page Level item being the Month Name.
    I now have the strange behavior that drilling down on the Pivot table elements gives me No Results as my filter would be too restrictive. The problem is with the 'Month Name'. Removing this item from the filter shows the correct data. When I use the chart next to my data to do the drilling I encounter no problems. This is because this way the restriction on the month name is not added when drilling.
    Has anybody encountered this behavior before and knows of a way to solve this.
    Thanks for your advice,
    Kris

    My query looks like this :
    SELECT TO_NUMBER (TO_CHAR (t1601.datum_prestatie, 'MM'), '99') AS c3,
    t1584.description AS c4, t1497.project_group AS c5,
    t1497.project_desc AS c6, t1497.project_code AS c7,
    CONCAT (CONCAT (t2241.firstname, ' '), t2241.lastname) AS c8,
    t2254.employee_number AS c9, t1601.duur AS c11,
    t1601.datum_prestatie AS c12
    FROM t_projects t1497 /* Dim_PROJECTS */,
    t_organization t1579 /* DimX_ORGANIZATION_Project */,
    t_organization t1584 /* DimX_ORGANIZATION_Project_Parent */,
    t_employees t2241 /* DimA_EMPLOYEE_Prestatie */,
    t_prestaties t2254 /* DimA_PRESTATIE_Project */,
    t_prestaties t1601 /* Fact_PRESTATIES */
    WHERE ( t1497.business_domain_code = t1579.department_code
    AND t1497.project_code = t1601.project_code
    AND t1497.project_code = t2254.project_code
    AND t1579.parent_department = t1584.department_code
    AND t2241.employee_number = t2254.employee_number
    AND t1584.description = 'Specialized Technologies'
    AND t1497.project_group = 'SUPP AP TM'
    AND TO_NUMBER (TO_CHAR (t1601.datum_prestatie, 'MM'), '99') = 3
    The last row being a check on the month number.
    At the same time in OBIEE I get this :
    No Results
         The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
         Divisie is equal to Specialized Technologies
    and      Month is equal to 3
    and      Project Group is equal to SUPP AP TM
    and      Month Name is equal to Mar
    The physical query doesn't even show the restriction on Month Name which makes it even more spooky...

  • Best approach to join multiple statistics tables into one

    I have read different approaches to join multiple statistics tables into one, they all have a column "productobjectid".
    I want to get all data for each product and put it to excel and output a jpg statistic with cfchart.
    How would you do this, the sql part?
    Thanks.

    A couple suggestions:
    1) when joining tables, its best to list both table/fields that you are joining in the FROM clause:
    FROM shopproductbehaviour_views INNER JOIN shopproductbehaviour_sails ON shopproductbehaviour_views.productobjectid = shopproductbehaviour_sails.productobjectid
    2) You add tables to a SQL join by placing another join statement after the SQL above:
    SELECT *
    FROM TableA INNER JOIN TableB on TableA.myField = TableB.myField
    INNER JOIN TableC on TableA.anotherField = TableC.anotherField
    3) If you have columns in the tables that are named the same, you can use column aliases to change the way they appear in your record set:
    SELECT TableA.datetimecreated 'tablea_create_date', TableB.datetimecreated 'tableb_create_date'
    4) Certainly not a requirement, but you might want to look into using <cfqueryparam> in your where clause:
    WHERE shopproductbehaviour_sails.productobjectid = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#all.productobjectid#">
     You might want to consider checking out one of the many tutorials on SQL available online.  Many of the questions you posed in your post are covered in pretty much every basic SQL tutorial.  Alternately, a good SQL book is worth its weight in gold for a beginning web applications developer.

  • Pivot table with variables columns

    I need a helo to pivot table with variable columns,
    I have a pivot table :
    SELECT a.*
    FROM (SELECT codigo_aluno,nome_aluno , id_curso,dia FROM c_frequencia where dia like '201308%') PIVOT (sum(null)   FOR dia IN ('20130805' ,'20130812','20130819','20130826')) a
    but I need to run the select with values for dia , getting from a other table :
    SELECT a.*
    FROM (SELECT codigo_aluno,nome_aluno , id_curso,dia FROM c_frequencia where dia like '201308%') PIVOT (sum(null)   FOR dia IN (
    select dia from v_dia_mes )) a
    thank you

    The correct answer should be "Use the Pivoted Report Region Plugin".
    But, as far as I know, nobody has created/posted that type of APEX plugin.
    You may have to use a Basic Report (not an IR) so that you can use "Function returning SELECT" for your Source.
    You would need two functions:
    One that dynamically generates the Column Names
    One that dynamically generates the SELECT statement
    These should be in a PL/SQL Package so that the later can call the former to ensure that the column data matches the column names.
    i.e. -- no 'SELECT *'
    MK

  • COPA - Multiple Sales Order with one wbs element.  COPA does not reference

    COPA - Multiple Sales Order with one wbs element.  COPA does not reference of reference of sales order.
    Hi All
    Currently we are in process of implementation of project related to Club Service for one of the client.
    Concept of this project is - there is "X" company engaged in supporting the different shared services for their client e.g. Client IBM - Shared Support Services of IBM is
    u2022     IDM
    u2022     Software Installation
    u2022     Help Desk
    u2022     Maintenance
    Co.. "X' is performing these services for IBM.    So for Co. "X" - IBM is one engagement. Like this way Co. X is performing such activities for many companies e.g. microsoft, HP, ABN AMRO etc.
    Objective - Get the consolidate report from COPA (Customer wise/services wise/sales order wise e.g. IBM/HelpDesk/10002/10).
    We propose a solution to create a project for each engagement and with WBS element. Each WBS element of different services e.g.
    Project IBM Inc.  100.100
    WBS Element    100.100.IDM 
    WBS Element    100.100.SoftIns
    WBS Element    100.100.HelpDesk
    WBS Element    100.100.Maintainance
    For this engagement (IBM), we are creating a sales order with line items (for services) and account assignment is WBS element.  In a sales order, there may be two lines for one services.   In a particular period, there are many such sales orders for this engagement... Milestone billing/period billing is used depending upon the services rendered.
    Now Cost Object will be WBS Element. So cost and revenue will posted to WBS and from this it goes to COPA.  In a month of May 2009 two - sales order is booked with three different line items with account assignment is WBS element.
    Sales Order Line Item No.....Item                  Account Assignment                      Revenue
    10000          100     IDM      100.100.IDM              1000
    10000          200     HELPDESK      100.100.HelpDesk              2000
    10000          100     Maintenance      100.100.Maintainance         3000
    Another Sales order booked with two different line items
    10000          100      IDM     100.100.IDM          3000
    10000          200      HELPDESK     100.100.HelpDesk          4000
    Cost will be booked directly against WBS element.
    In sales order level, there is no profitability segment, as cost object is WBS element.
    Billing, revenue will be posted directly to wbs element, from this revenue and cost of sales goes to COPA.
    Now in COPA,
    1.There is only one line for WBS element ex. 100.100.IDM with revenue 4000 (combing both the sales order)
    2.There is only one line for WBS element ex. 100.100.HelpDesk with revenue 6000 (combing both the sales order)
    3.There is only one line for WBS element ex. 100.100.Maintainance with revenue 4000
    In above case 1 & 2 we will not have reference of sales order and sales order line item in COPA table. There is only one line for this.  So we can not have reporting to sales order level.
    Is there any way by this the reference of sales order and sales order line will come in COPA for case 1 & 2.
    Please help in this issue.
    Regards
    Abhay Dev
    Ph:- 91-22-67782229
    Cell:- 91-9819175185

    Hi,
    For these case (multiple materials with different characteristics); have you consider going to next level of WBS Elements. Meaning; lets say currently you are assigning WBS "Engineering (which is a level 2 WBS)" to all the items in SO. Instead under "Engineering" create 2 or 3 level 3 WBS Elements as E1, E2 etc and assign them 1:1 to your sales order line items. This would eliminate the exit as welll as complex development option. And also will let you get all the data in COPA and in turn you can pull to BW as well for reporting. Just a thought.
    Regards
    Sreekanth

  • How to FaceTime and iMessage on multiple apple devices with one iTunes account

    We recently received iPad 2's for Christmas and was looking for some advice on how to FaceTime and iMessage on multiple apple devices with One iTunes Account (Apple Id).  I have created or attached other e-mail addresses to our apple id but do not know how to use them on the new devices.  Our home MacBook Pro uses our main apple id for FaceTime.  The iPads have been setup with the main apple id w/o being able to use FaceTime and iMessage.
    Please Help...
    I appreciate the help and support.

    P and V-
    If you are trying to connect to someone with a different Apple ID, I think all the devices should work, but one at a time.
    The problem is when you try to connect between two with the same Apple ID.  Once the calling device tries to make the connection, it finds the second device to be "busy".  That is where each needs to use a different E-Mail address when setting it up.
    On iOS devices, when you press the Home button to exit an App, the App may still be active in the background, even when the device is sleeping.  If FaceTime or iMessage is merely being active that way, it may be enough to "tie up" the E-Mail address.
    From the Home screen, double click your Home button.  You will see a list of recent Apps along the bottom of the screen.  Press and hold on one of them until they start to wiggle.  You will then see a red minus sign on each.  Pressing the minus sign will remove an App from the list, and stop it from working in the background.  (Click the Home button to stop the wiggling, and again to hide the recent Apps.)
    Fred

  • Can you have multiple iCloud's with one Apple ID?

    Can you have multiple iCloud's with one Apple ID?

    You can have multiple iclouds with multiple id's

  • Convert a table with one column to panelList with outputText

    Hi,
    I have a table with one column, I would like to change it to use panelList to present it instead. What will be the syntax for panelList?
    <af:table value="#{bindings.ItasUiRuleParamsVO2.collectionModel}"
    var="row"
    rows="#{bindings.ItasUiRuleParamsVO2.rangeSize}"
    emptyText="#{bindings.ItasUiRuleParamsVO2.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.ItasUiRuleParamsVO2.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.ItasUiRuleParamsVO2.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasUiRuleParamsVO2.collectionModel.makeCurrent}"
    rowSelection="single" id="t2"
    partialTriggers="::t1">
    <af:column sortProperty="RuleName" sortable="true"
    headerText="#{bindings.ItasUiRuleParamsVO2.hints.RuleName.label}"
    id="c11">
    <af:outputText value="#{row.RuleName}"
    id="ot11"/>
    </af:column>
    </af:table>
    I tried this:
    <af:panelList id="pl1">
    <af:forEach items="#{bindings.ItasUiRuleParamsVO2.collectionModel}">
    <af:outputText value="#{item.RuleName}" id="ot14"/>
    </af:forEach>
    </af:panelList>
    but the error say:
    javax.servlet.jsp.JspException: "items" must point to a List or array
         at org.apache.myfaces.trinidadinternal.taglib.ForEachTag.doStartTag(ForEachTag.java:136)
    Any ideas?
    Thanks
    -Mina

    <af:forEach items="#{bindings.ItasUiRuleParamsVO2.collectionModel}" var="row">
    <af:outputText value="#{row.RuleName}" />
    </af:forEach>
    and make sure the table binding is still in place in your pagedef (or binding tab)

  • Control 2 flv movies with one button

    Hello,
    I am not even sure this can be done, but I am trying to
    control 2 flv's with one set of controls. The reason; We have
    footage of a talking head as one flv and footage of a microscope.
    Basically, the guy talks and moves the microscope around. These 2
    flv's have to be synched b/c the guy is talking and showing how
    things look under a microscope (the original footage was shot at
    the same time using 2 different methods - I imported both in
    Flash). So, my quandry is that I need one set of controls for both
    these flv's b/c if you pause the talking head, you also have to
    pause the scope. I tried to make both flv's a movie clip and
    control them that way, but got no where with that. I also tried to
    build my own skin with a Play and Pause Button for now, but only
    got as far as the code below. Basically, I can control one flv
    component, but not both at the same time. Any ideas would help - I
    am not sure if this is an AS issue, or a complete design issue, or
    if it can even be done at all - thanks much in advance...
    Jason

    I have discovered that what I wanted to do above is not possible in Livecycle. The only thing that works in the Livecycle script editor is the xfa.host.print from what I found.
    I was able to add a print button to a form that I scanned in that enabled me to print at 2 different printers at the same time. What I did was to first set up a mouse up action to execute a menu item (file>print) and then I added a second mouse up action to run the JavaScript below
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printerName = "\\\\DPDSVR\\Xerox WorkCentre 7435 PCL6";
    this.print(pp);
    This resulted in me being able to print to my default printer (HP) and the Xerox with just one click of the button.

  • Deadlock when updating different rows on a single table with one clustered index

    Deadlock when updating different rows on a single table with one clustered index. Can anyone explain why?
    <event name="xml_deadlock_report" package="sqlserver" timestamp="2014-07-30T06:12:17.839Z">
      <data name="xml_report">
        <value>
          <deadlock>
            <victim-list>
              <victimProcess id="process1209f498" />
            </victim-list>
            <process-list>
              <process id="process1209f498" taskpriority="0" logused="1260" waitresource="KEY: 8:72057654588604416 (8ceb12026762)" waittime="1396" ownerId="1145783115" transactionname="implicit_transaction"
    lasttranstarted="2014-07-30T02:12:16.430" XDES="0x3a2daa538" lockMode="X" schedulerid="46" kpid="7868" status="suspended" spid="262" sbid="0" ecid="0" priority="0"
    trancount="2" lastbatchstarted="2014-07-30T02:12:16.440" lastbatchcompleted="2014-07-30T02:12:16.437" lastattention="1900-01-01T00:00:00.437" clientapp="Internet Information Services" hostname="CHTWEB-CH2-11P"
    hostpid="12776" loginname="chatuser" isolationlevel="read uncommitted (1)" xactid="1145783115" currentdb="8" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128058">
               <inputbuf>
    UPDATE analyst_monitor SET cam_status = N'4', cam_event_data = N'sales1', cam_event_time = current_timestamp , cam_modified_time = current_timestamp , cam_room = '' WHERE cam_analyst_name=N'ABCD' AND cam_window= 2   </inputbuf>
              </process>
              <process id="process9cba188" taskpriority="0" logused="2084" waitresource="KEY: 8:72057654588604416 (2280b457674a)" waittime="1397" ownerId="1145783104" transactionname="implicit_transaction"
    lasttranstarted="2014-07-30T02:12:16.427" XDES="0x909616d28" lockMode="X" schedulerid="23" kpid="8704" status="suspended" spid="155" sbid="0" ecid="0" priority="0"
    trancount="2" lastbatchstarted="2014-07-30T02:12:16.440" lastbatchcompleted="2014-07-30T02:12:16.437" lastattention="1900-01-01T00:00:00.437" clientapp="Internet Information Services" hostname="CHTWEB-CH2-11P"
    hostpid="12776" loginname="chatuser" isolationlevel="read uncommitted (1)" xactid="1145783104" currentdb="8" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128058">
                <inputbuf>
    UPDATE analyst_monitor SET cam_status = N'4', cam_event_data = N'sales2', cam_event_time = current_timestamp , cam_modified_time = current_timestamp , cam_room = '' WHERE cam_analyst_name=N'12345' AND cam_window= 1   </inputbuf>
              </process>
            </process-list>
            <resource-list>
              <keylock hobtid="72057654588604416" dbid="8" objectname="CHAT.dbo.analyst_monitor" indexname="IX_Clust_scam_an_name_window" id="lock4befe1100" mode="X" associatedObjectId="72057654588604416">
                <owner-list>
                  <owner id="process9cba188" mode="X" />
                </owner-list>
                <waiter-list>
                  <waiter id="process1209f498" mode="X" requestType="wait" />
                </waiter-list>
              </keylock>
              <keylock hobtid="72057654588604416" dbid="8" objectname="CHAT.dbo.analyst_monitor" indexname="IX_Clust_scam_an_name_window" id="lock18ee1ab00" mode="X" associatedObjectId="72057654588604416">
                <owner-list>
                  <owner id="process1209f498" mode="X" />
                </owner-list>
                <waiter-list>
                  <waiter id="process9cba188" mode="X" requestType="wait" />
                </waiter-list>
              </keylock>
            </resource-list>
          </deadlock>
        </value>
      </data>
    </event>

    To be honest, I don't think the transaction is necessary, but the developers put it there anyway. The select statement will put the result cam_status
    into a variable, and then depends on its value, it will decide whether to execute the second update statement or not. I still can't upload the screen-shot, because it says it needs to verify my account at first. No clue at all. But it is very simple, just
    like:
    Clustered Index Update
    [analyst_monitor].[IX_Clust_scam_an_name_window]
    cost: 100%
    By the way, for some reason, I can't find the object based on the associatedObjectId listed in the XML
    <keylock hobtid="72057654588604416" dbid="8" objectname="CHAT.dbo.analyst_monitor"
    indexname="IX_Clust_scam_an_name_window" id="lock4befe1100" mode="X" associatedObjectId="72057654588604416">
    For example: 
    SELECT * FROM sys.partition WHERE hobt_id = 72057654588604416
    This return nothing. Not sure why.

  • How can I treat many tables with one handler(?) ?

    Hello~
    I am applying BDB to my embbeded system not rich in resource.
    Some *.db files are called frequently.
    But, Opening a *.db file [db_create(&dbp, NULL, 0) AND dbp->open] takes a long time in BDB
    So, I loaded this functions onto a booting module to call opening functions just one time.
    And all D/B handlers(?) are loaded in all run time
    But, a D/B handler takes about 360Kbytes. And there are too many *.db files(10) where a table is
    How can I treat many tables with one handler(?) ?
    Or
    If you have the most efficient way to call openning functions just one time, please tell me
    Thank you

    Hello,
    Opening the database handles is expensive due to
    opening a file on disk. Is it possible for the application
    to use in-memory dbs? Otherwise is there a way for the application
    to cache the DB handles and reduce the overhead associated with
    opening and closing them?
    Thank you,
    Sandra

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • Update Multiple DB records in one table with one form

    I am developing an onine proofing system that will display a
    number of images, and then allow the customer to approve each
    image, as well as provide comments.
    I currently have a table setup with the various elements (an
    image that dynamically gets its name, details about the image, and
    the neccessary form fields).
    See This
    Image for the layout
    I would then apply a repeat region (the number of signs would
    vary), and like to update all the records with the customer's
    comments and approval with one form. How is this done? I have
    downloaded a trial of the developers toolkit, but the documentation
    is horrible. I would be willing to buy an extension that will allow
    this, if one exists.

    I found an extension that did this in about two minutes:
    http://www.webassist.com/professional/products/productdetails.asp?PID=117
    Excellent software, highly recommended. Easy to figure out,
    and got this "problem" resolved fast.

Maybe you are looking for

  • Os x lion paused

    I have a macbook pr 2.66 intel core i7 with 8gb ram running os 10.6.8 I purchased the Lion install from the app store and started the install app, I paused it then went to resume it and it will not resume, i tried to resume by right clicking on the i

  • PCLK2 not in HiZ on PC power up

    I am using the PCI-DIO-32HS, and in the 653x user manual it states that this card should power up with all lines in high impedance (HiZ). However, this is not 100% true as PCLK2 outputs 5V when my PC boots up (all other lines seem to be fine). Is thi

  • HT5731 Trouble downloading purchased TV shows

    I purchased Season 1 (14 episodes) of Pawn Stars,  proceeding with download of all shows. Each show is about 20 minutes in length, but it only downloaded a short clip of each show (~ 1 minute long).  Is there anyway to re-do the download?

  • CSV Export in HTMLDB -Report

    From Regions > Report Attributes I set the Enable CSV option to yes - Link Label (i.e export), but the link does not appear. Any hints/appreciated. thanks for youe help.

  • PO form issue

    Hi all, My reqmt is to change the logo in the standard PO form and display it with the same details.For this what should I do? What is the standard PO form? Is it in script or smartform? Should I need to take a Z copy and then make changes in the pri