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

Similar Messages

  • 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.

  • How to show two or more PDF in one PDF-Reader / Concatenate PDF-Files

    Hi,
    I want to show two or more PDF files in one PDF reader window or to concatenate two or mor PDF files to one file.
    We use WD4A and ADS.
    Have someone an idea to solve this without an external program?
    Thx in advance
    Jürgen

    We have done this successfully a few times using WDA - it wasn't easy - it took us 2 full weeks to figure it out, so i need to get full points for this one!
    It's going to much easier to do this if you start a brand new WDA. If not, you'll have to re-do all your Context Node navigations within your methods.
    The first thing you need to do is to define your Context properly:
    You need a top level Node defined as 1:1 cardinality (as with all PDF development)
    Next, you need another Container Node 1:n cardinality (this holds the collection of content nodes)
    Finally, you have your PDF Content Node 1:n cardinality - This holds each instance of your PDF form
    In our scenario, we are passed in a list of Project Numbers. We need to generate a PDF sheet for each project in the same PDF session.
    pseudo code - i'm leaving out some of the unnessary details
    Loop through the project number table.
    ADD 1 TO v_cnt.
    * navigate from <TOP> to <PDF_CONTAINER> via lead selection
        lo_nd_pdf_container = lo_nd_top->get_child_node( name = wd_this->wdctx_pdf_container ).
    * This is the Important Part - we check to see if there is an element where index = v_cnt
    * If not, we create one where we can store the new set of data
    * get element via lead selection
        lo_el_pdf_container = lo_nd_pdf_container->get_element( index = v_cnt ).
        IF lo_el_pdf_container IS INITIAL.
          lo_el_pdf_container  = lo_nd_pdf_container->create_element( ).
          lo_nd_pdf_container->bind_element( new_item = lo_el_pdf_container
                                               set_initial_elements = ' '   ).
        ENDIF.
        lo_nd_ideasheet_data =  lo_el_pdf_container->get_child_node( 'IDEASHEET_DATA' ).
        lo_el_ideasheet_data = lo_nd_ideasheet_data->get_element( index = 1 ).
    * fill all the data then bind the structure
    Select * from XXX into lt_XXX
      where project_number = lt_project-project_number.
    * Move Data to appropriate fields/tables
    * Bind the info back to the element
        lo_el_ideasheet_data->set_static_attributes( static_attributes =
                                                  ls_ideasheet_data ).
    Endloop.

  • How to show two queries/ aggregation levels in one Chart in Web Template

    Hi Experts,
    I have a question regarding showing a graph in a Web Application template.
    The graph has two elements on it.  The key figure is average number of working days, but the requirement is to compare number of working days for a granular data level (time spent in each process stage per month) to the average across all process stages across the entire month.
    So essentially what we have is a chart with one constant horizontal line across it, which is the overall average, across all process stages, for the whole month, and then underneath this horizontal line, a series of columns showing the average for each process stage, broken down.
    I am having trouble getting the base query right for this requirement.  It feels like for each process stage, I need two key figures (for the two data series); one average per stage, and the other should be the overall average, populated once for each stage.
    I couldn't make this work using cells or replacement path, and I assume that you can only use one data provider per chart in the WAD.
    Can anyone help me?  Please let me know if you need more info.  It's a shame I can't post a picture of the required graph in this post.
    Thanks
    Mischa

    Hi Mischa,
    If I am reading your description correctly you should be able to model your two Key Figures in the query by having the two Key Figures exactly the same, exept give one an exception aggregation to average with reference to characteristic 0CALMONTH.
    So you have your business process and calendar month in your rows, and the two Key Figures in the columns one with standard aggregation and one with exception aggregation on month. This should give you the KF amount per process wthin each month as well as the average KF amount over the month.
    Hope this helps,
    Nick

  • Slow delete on a table with one CLOB column

    Hi,
    I have a table which has one CLOB column and even if I delete one row from it, it takes approx. 16 seconds. Since UNDO isn't generated for CLOBs (at least not in the UNDO tablespace), I can't figure out why this is so? The CLOB has defined a RETENTION clause, so it depends upon UNDO_RETENTION which is set to 900. There wasn't any lock from another session present on this table.
    The table currently contains only 6 rows but it used to be bigger in the past, so I thought that maybe a full table scan is going on when deleting. But even if I limit the DELETE statement with an ROWID (to avoid a FTS), it doesn't help:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> select count(*) from scott.packet;
      COUNT(*)
             6
    SQL> column segment_name format a30
    SQL> select segment_name
      2    from dba_lobs
      3  where owner = 'SCOTT'
      4     and table_name = 'PACKET';
    SEGMENT_NAME
    SYS_LOB0000081487C00002$$
    SQL>  select segment_name, bytes/1024/1024 MB
      2    from dba_segments
      3  where owner = 'SCOTT'
      4      and segment_name in ('PACKET', 'SYS_LOB0000081487C00002$$');
    SEGMENT_NAME                           MB
    PACKET                               ,4375
    SYS_LOB0000081487C00002$$             576
    SQL> -- packet_xml is the CLOB column
    SQL> select sum(dbms_lob.getlength (packet_xml))/1024/1024 MB from scott.packet;
            MB
    19,8279037
    SQL> column rowid new_value rid
    SQL> select rowid from scott.packet where rownum=1;
    ROWID
    AAAT5PAAEAAEEDHAAN
    SQL> set timing on
    SQL> delete from scott.packet where rowid = '&rid';
    old   1: delete from scott.packet where rowid = '&rid'
    new   1: delete from scott.packet where rowid = 'AAAT5PAAEAAEEDHAAN'
    1 row deleted.
    Elapsed: 00:00:15.64From another session I monitored v$session.event for the session performing the DELETE and the reported wait event was 'db file scattered read'.
    Someone asked Jonathan Lewis a similar looking question (under comment #5) here: http://jonathanlewis.wordpress.com/2007/05/11/lob-sizing/ but unfortunately I couldn't find if he wrote any answer/note about that.
    So if anyone has any suggestion, I'll appreciate it very much.
    Regards,
    Jure

    After reviewing the tkprof as suggested by user503699, I noticed that the DELETE itself is instantaneous. The problem is another statement:
    select /*+ all_rows */ count(1)
    from
    "SCOTT"."MESSAGES" where "PACKET_ID" = :1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          2           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      1.40      16.93     125012     125128          0           1
    total        3      1.40      16.93     125012     125128          2           1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: SYS   (recursive depth: 1)
    Rows     Row Source Operation
          1  SORT AGGREGATE (cr=125128 pr=125012 pw=125012 time=0 us)
          0   TABLE ACCESS FULL MESSAGES (cr=125128 pr=125012 pw=125012 time=0 us cost=32900 size=23056 card=5764)I checked if there was any "ON DELETE" trigger and since there wasn't, I suspected this might be a problem of unindexed foreign keys. As soon as I created an index on SCOTT.MESSAGES.PACKET_ID the DELETE executed immediately. The "funny" thing is that, the table SCOTT.MESSAGES is empty, but it has allocated 984MB of extents (since it wasn't truncated), so a time consuming full tablescan was occurring on it.
    Thanks for pointing me to the 10046 trace which solved the problem.
    Regards,
    Jure

  • How to show specific colums in tables with debugging

    I don't know if it is possible but I get always very simple if I have to debug with tables that I can't get the fieldvalues that interest me in a column straight away.
    for instance I have a table which contains a field aufnr. only aufnr is field nr 200 in the table. so I have to skip to that field and it is very unhandy.
    is it possible to show just 1 column of a table in debugging ??
    I tried under variables to append it with the fieldname but no succes TA_VBDPR[]-maufnr
    kind regards
    arthur de smidt

    If you are using the New Debugger:
    Open your table in the table control inside the Debugger
    Right Click on the Table Name (not table control) > Services of this Tool
    Select "Change Columns".
    Press Enter
    Select your Column (AUFNR) from the Right Pan to Left Pan.
    Right Click on the Table Name (not table control) > Services of this Tool
    Select "Save Columns".
    Press Enter
    It will retain the order of the columns.
    If you are using the Old Debugger:
    Just type the name of the column in the column name area.
    Regards,
    Naimesh Patel
    the first part works but I can't find the 'Save Columns'
    currently we work with sap gui 6.4 so it is the new debugger but I believe not as fancy as the 7.1 gui has (as I saw at sapteched)
    kind regards
    arthur

  • How to use two sets of books with one responsibility

    Does anyone know if it is possible to run reports in the General Ledger business area of the Oracle EUL against two or more sets of books with the same responsibility? For example, I want a regional finance manager to be able to run a Discoverer GL report for both Bolivia and Peru using their South America GL Manager responsibility. It looks like you can do that for AR using HR security profiles but I'm not sure how to do it for GL. Thanks.
    Greg

    Hi,
    There are two types of security: business areas security which allows a user to access the folders in a BA and is controlled through Discoverer; and data security which filters the data returned in the report. The data security is usually implemented as a condition in the views mapped in the EUL, though it can be implemented as mandatory conditions in the EUL. The data security is controlled by Application system profiles.
    In your case you will have conditions in the database views which only returning data for the set of books defined in the profile for the current responsibility. To bypass this security so that a responsibility can report on multiple sets of books you need to create new folders in the EUL that map onto database view or tables that do not have the data security.
    Hope that helps,
    Rod West

  • How to Sync two different Zen players with one library?

    I have two players; a Zen V Plus 8 gb and a Zen 32 gbMy library is now larger than 8 gbI want to sync the V Plus with a playlist that I define on the PC just for running, and sync the entire library with the ZenHowever I just cannot figure out how to do this using the creativemedia application suppliedI have found out how to transfer a playlist but don't want to do this every time the playlist is changedI cannot find an option to sync just the contents of a playlist, it always wants to sync all the tracks and then returns an error because (of course) the library is bigger than the V Plus! ?Does anyone have any ideasThanks

    Use Windows Media Player ?to sync. Each device has it's own sync properties. What you are trying to do is a feature of that software. I do not use the Creative software at all...only the Zencast Organizer (as I needed a podcast aggregator anyway).

  • How merge query results from joined table into one additional column

    <code>
    Here is example
    TABLE A:
    id | value
    1 | a
    2 | a
    3 | b
    TABLE B
    id | id_in_table_a | value
    1 | 1 | d
    2 | 1 | e
    3 | 2 | g
    </code>
    this select should get all columns from table A where value = 'a' and all values related to this record from B merged to one column separated for example with pipe, so the output should looks like this
    <code>
    id | value | merged_column
    1 | a | d|e
    2 | a | g
    </code>
    thanks for help

    If you are on 10g, you can use this:
    SQL> create table a
      2  as
      3  select 1 id, 'a' value from dual union all
      4  select 2, 'a' from dual union all
      5  select 3, 'b' from dual
      6  /
    Tabel is aangemaakt.
    SQL> create table b
      2  as
      3  select 1 id, 1 id_in_table_a, 'd' value from dual union all
      4  select 2, 1, 'e' from dual union all
      5  select 3, 2, 'g' from dual
      6  /
    Tabel is aangemaakt.
    SQL> select id
      2       , value
      3       , rtrim(v,'|') merged_column
      4    from ( select id
      5                , value
      6                , v
      7                , rn
      8             from a
      9                , b
    10            where a.id = b.id_in_table_a
    11            model
    12                  partition by (a.id)
    13                  dimension by (row_number() over (partition by a.id order by b.id) rn)
    14                  measures (a.value, cast(b.value as varchar2(20)) v)
    15                  rules
    16                  ( v[any] order by rn desc = v[cv()] || '|' || v[cv()+1]
    17                  )
    18         )
    19   where rn = 1
    20  /
       ID VALUE MERGED_COLUMN
        1 a     d|e
        2 a     g
    2 rijen zijn geselecteerd.Regards,
    Rob.

  • Creating Compound lay out with two different pivot tables OBIEE 11g?

    Hello,
    I am trying to add two different pivot tables in one compound lay out and add a view selector to it, so that i can choose one at a time. Please advice how can i do this.
    Thanks

    First of all, the expression is "please advise" not "please advice." I thought I'd mention it because I see it so much in the forum. :) (Freebie.)
    Okay, on the surface, your question seems so basic that it makes me wonder what you mean. If you are absolutely brand-new to OBIEE than consult the manual:
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10544/creatingviews.htm#BACCBCBA
    If you are stuck on a particular step, then describe the problem in detail.

  • How to know exact size of table with blob column

    I have a table with one BLOB column. I ran this query.
    select bytes/1024/1024 from user_segments where segment_name='GMSSP_REQUEST_TEMP_FILES'
    (user_segments is a view)
    it gave me 0.125
    It means size of table is 0.125. I have uploaded 3 files to this table. Each of them is of 5 mb. After that I check size of table. but result was same. i.e 0.125.
    Can any body tell me how to know exact amount of space consumed by files. I am expecting following result
    size should be (5+5+5+0.125)MB
    Any help is appreciated.
    Thanks.
    Akie

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • Pivot table without any measure columns

    Hi,
    I have a requirement where all my report columns are from Dimension tables and i have no measure to display in the report.
    But I need to create a Pivot table view for this requirement.
    Can someone help me how to represent results in Pivot Table view without measure columns
    Thanks in Advance.

    Hi Sri,
    Try this it will work.
    Add a dummy column in your measure section.
    then in pivot view --> measure section --> dummy column -->more options -> format heading -->custom css style --> mark use custom css and give display:none
    and
    more options -> format measure values -->custom css style --> mark use custom css and give display:none
    Thanks
    Diney

  • How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values

    Hi,
    Recently in of our product offerings we got stuck on this following question:
    How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
    We have a data source laid out as (example)
    In the above the “Order” columns are changing per
    Company/(DimensionA) for DimesnsionB.
    Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section. 
    If there are any configurations that we can make to our power pivot model for the similar data set so that the
    DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us. 
    Sample File:
    http://tms.managility.com.au/query_example.xlsx
    Thanks
    Amol 

    Hi Amol,
    According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
    Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
    add the column to pivot table and hide it.
    https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to join two pl/sql tables .,.,,Urgent pls help

    Hi,
    Please tell me how to join to pl/sql tables with example
    thanks
    asp

    If your main intention is to get the common records/or getting whole records from the 2 different pl/sql arrays then , pls check this piece of code & explanation
    The SQL language has long offered the ability to apply set operations (UNION, INTERSECT, and MINUS) to the result sets of queries. In Oracle Database 10g, you can now use those same high-level, very powerful operators against nested tables (and only nested tables) in your PL/SQL programs and on nested tables declared as columns inside relational tables.
    Let's take a look at some of the syntax needed to do this, starting with UNION.
    First, I create a schema-level nested table type:
    CREATE OR REPLACE TYPE strings_nt
    IS TABLE OF VARCHAR2(100);
    Then I define a package and within it create and populate two nested tables of this type, each containing some of my father's and my favorite things:
    CREATE OR REPLACE PACKAGE favorites_pkg
    IS
    my_favorites strings_nt
    := strings_nt ('CHOCOLATE'
    , 'BRUSSEL SPROUTS'
    , 'SPIDER ROLL'
    dad_favorites strings_nt
    := strings_nt ('PICKLED HERRING
    , 'POTATOES'
    , 'PASTRAMI'
    , 'CHOCOLATE'
    PROCEDURE show_favorites (
    title_in IN VARCHAR2
    , favs_in IN strings_nt
    END;
    In this package, I also include a procedure to show the contents of a strings_nt nested table. This will come in very handy shortly.
    By defining these collections in a package, outside any program, they persist (they maintain their state and values) for the duration of my session or until I change or delete them. This means that I can now write programs outside the package to manipulate the contents of those collections.
    Note that this package has been simplified for the purposes of presenting collection functionality. In a production application, you should always take care to "hide" your package data, as with these collections, in the package body, and then provide procedures and functions to manage the data.
    Suppose, for example, that I would like to combine these two collections into a single collection of our favorites. Prior to Oracle Database 10g, I would have to write a loop that transfers the contents of one collection to another. Now, I can rely on the MULTISET UNION operator, as shown below:
    DECLARE
    our_favorites
    strings_nt := strings_nt ();
    BEGIN
    our_favorites :=
    favorites_pkg.my_favorites
    MULTISET UNION ---- Use INTERSECT , if you want to know common records
    favorites_pkg.dad_favorites;
    favorites_pkg.show_favorites (
    'ME then DAD', our_favorites);
    END;
    The output from this script is:
    ME then DAD
    1 = CHOCOLATE
    2 = BRUSSEL SPROUTS
    3 = SPIDER ROLL
    4 = PICKLED HERRING
    5 = POTATOES
    6 = PASTRAMI
    7 = CHOCOLATE
    ------------------------------

  • How can I see changes in table with insertrow();postchanges()without commit

    Hi friends;
    I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
    I create two view object.In the first page I create table with one view object.
    In the second page I create table (with tableselectmany) with other view.
    I select many rows in second page and in the managed bean,
    I insert selectted rows atributes to first pages tables attributes.
    I use this code.
    public String commandbuttonaction(){
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)
    bindings.get("DeptIterator");
    int i=206;
    while (rowSetIter.hasNext()){
    Key key = (Key) rowSetIter.next();
    pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
    RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
    String AM="model.AppModule";
    String CF="AppModuleLocal";
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    ViewObject emps = empSvc.findViewObject("EmpsView1");
    Row newEmp = emps.createRow();
    newEmp.setAttribute("Manager",new Number(1));
    newEmp.setAttribute("Department",new Number(1));
    newEmp.setAttribute("Depno",new Number(3));
    emps.insertRow(newEmp);
    try {
    newEmp.validate();
    catch (Exception ex) {
    System.out.println("validate catch");
    try {
    empSvc.getTransaction().postChanges();
    catch (Exception ex) {
    System.out.println("post catch");
    Configuration.releaseRootApplicationModule(empSvc,true);
    i=i+1;
    In this code I only postchanges() in first view and dont want to commit.
    But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
    But in database not insertted any rows.
    If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
    my changes and if necessary I press save button in page.
    How can I see changes in the page without commit???Thanks for all....

    You should NEVER use statements like this in managed beans:
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
    Instead, you can use the following code:
    ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
    where MyAppModuleDataControl shoud be replaced with the name of your am data control.
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for

  • BW Authorizations Hierarchies

    Greetings All; This is yet another question regarding BW Authorizations. I have two fields 0COMPANY and 0PROFIT_CTR, both Authorization Relevant, both containing hierarchies. I need to allow a user to see all profit centers for a given company <u>and

  • Problem in Controlling Area created with 3 characters long

    Hi: I have a "small" problem, perhaps you could help me. We have created a new Controlling Area, but it is created only with 3 characters, instead of four. We have been working with no problem until me have to create a Purchase Order with some profil

  • Adobe Acrobat 9: Javascript array populated combo box - Selected answer will not save

    I have a combo box on one of my forms that is populated using a Javascript array.  The combo box is populating just fine, but when an item is selected from that combo box, the selected item does not save when the user saves the document.  Any suggest

  • Request IDoc : Application document not posted  ERROR

    Hi All, When I am executing Info Package in BW PROD the system is showing error Transfer (IDocs and TRFC): Errors occurred Request IDoc : Application document not posted I searched the forums but no such kind of error regarding this senario.This prob

  • Problems Playing a TV show

    Has anybody using Windows had trouble playing a show they downloaded? I bought last Sunday's episode of Desperate Housewives, but it didn't show up in my library until I manually found it and dragged it there. When I try to play it I can't see or hea