Calculate the % with the pivot table columns

I created an application with these columns:
Metric       Study          Fast          Slow       On-Target     Total
---------------------------------------------------------------------------------
Metric1     Study1           1             0              0             1
Metric1     Study2           1             0              0             1
Metric1     Study3           0             0              1             1
Metric1     Study4           0             0              1             1
Metric1     Study5           0             1              0             1
Metric1     Study6           0             1              0             1
Metric1     Study7           0             0              1             1
Metric1     Study8           0             0              1             1
Metric1     Study9           1             0              0             1
Metric1     Study10          1             0              0             1
I want to create a pivot table looks like this.
Metric          Fast     Slow      On-Target     Total      % Fast     % Slow   % On Target
------------------------------------------------------------------------------------------------------
Metric1         4           2        4            10           40        20       40
The fast, slow, on the target and Total columns are calculated fields. Picky, I'm having is to get the % columns to work. I also tried create columns % in the form of columns of the table, but at each level of study, the % is 100% or 0%.

I tried with duplicate columns, all different options to display the value as. None of them worked.

Could someone help me? The version of the OBI is 10.1.3.4

Thank you

Shi-ning

Published by: SPUD on November 21, 2011 23:09

Sounds like it. You will need the account of studies as a measure in the criteria. You could do something in the repository, but the fastest way is:

Criteria:
Add the study in (it will not go into the PivotTable)
create new measure based on any existing measure that has the background you need with the formula:
cases where [existing] is not null then 1 else 0 end

This will give you 1 for each line that your measure in effect is valid. Add this new measure in the PivotTable and treat it as a normal amount.

Tags: Business Intelligence

Similar Questions

  • The Master Table column updated based on the sum of column Table detail


    With the help of JDev 11.1.1.6.

    I have a master-detail table based on a link to BC.

    The main table has a column that displays an InputText or an OutputText, based on the value in another column.

    If the InputText is displayed, the user can enter a value and the database will be updated with that value.

    If the OutputText is displayed, it must be a sum of a column in the secondary table.  Also, this value will be written in the database.

    Question:

    How can I fill the OutputText in the main table with the sum of the values in a column in the secondary table?

    The detail table column is a manually entered InputText field.

    Thank you.

    Create a spike in the main table and write in its expression as follows - DetailVoAccessorName.sum ("ColumnName");

    This will calculate the sum of column table detail and then you can set the value of the transient attribute to attribute DB on backup operation

    Ashish

  • How to align an image centered in the advanced table column.

    Dear friends,

    I developed a page of the OAF with an image column in the advanced table, but by default the image column is not centered,
    How to make image centered in the advanced table column, please let me know your suggestions.


    Thank you
    Keerthi.K

    HAD,

    In your column, create a tabular presentation and a rowlayout and the image, and then put in the rowlayout. Set the horizontal alignment of the rowlayout inwards.

    Kristofer Cruz

  • How do I display values skyrocket in the IR filter for the joined table columns?

    Hello

    I have a problem in the IR the query is based on a table, joined with other tables. I would like to provide users the ability to use IR filter search bar in the joined table columns. The problem facing on this filter, the Expression field, by pressing the arrow button displays values for the fields in the primary table, but not for fields that come from joined tables. Have you experienced this behavior in your reports? Is this normal?

    TIA

    Hello

    Correlated subqueries can improve performance - but it does not depend on the involved tables, the number of columns and the existence of indices. As far as I know, the optimizer has problems with them. You could try to explain the Plans on the two statements to verify that.

    In any case, I created a new test page with the SQL for IR:

    SELECT E.EMPNO,
    E.ENAME,
    D.DEPTNO,
    D.DNAME,
    E2.EMPNO "EMPNO2",
    E2.ENAME "ENAME2"
    FROM EMP E, EMP2 E2, DEPT D
    WHERE E.EMPNO = E2.EMPNO(+)
    AND E.DEPTNO = D.DEPTNO(+)
    AND E2.PRIMARY_EMPLOYEE(+) = 'Y'
    

    http://Apex.Oracle.com/pls/OTN/f?p=267:226

    As far as I can see, it works properly - except that if I do a filter on the ename column, when I try to create a second filter, drop-down lists ename all the values, while the other columns list only the available values after having applied the first filter. Which seems strange that the filters are applied as ANDS. But it does the same thing for other areas - IE, the field used in a filter is not filtered for the second filter - so I guess this is normal, but only a person in Apex could probably explain why it is so.

    Otherwise, everything seems to work as I expect and the above page works the same as my test page, which uses external joins http://apex.oracle.com/pls/otn/f?p=267:224

    Andy

  • Prevention of Mult. Select all THE values column of the pivot table

    All,
    Is there a way to prevent the behavior when viewing a PivotTable and using a Mult. Select guest, choosing mult. values and each pivot has all THE column values for all THE pivots on the screen?

    For example, lets say we had the following in the pivot:
    Column: STATE
    Line: PRODUCT
    and we had a Mult. Select a prompt on the REGION - East, West, Central, West

    If I've chosen is in the prompt, I get all the States of the REGION of the East for the first values.
    If I choose the East and the West in the prompt, I get a pivot showing amounts East and Southeastern States in the Western States AND top (no value, of course) at the top. I also have an another pivot below showing the amounts of the West and Western States, AND the Northeastern States (no values for the Eastern States).

    In other words, all States that are in the mult. REGION show selected in each pivot.

    Thank you.

    Uh, that's what I said...

  • Add the large table column

    All-

    I have my data (20 columns of ~ 700 000 lines) stored in a binary file and I would like to add a timestamp to each row of data.  I intend to use the sampling with the number of samples to add the time at which the sample was recorded in data.  I have read the data (~ 700 000 samples) and use a grand for a table 1 d with the same number of rows of data and then insert the 1 column in the largest table that has my data.  However, this seems to take a lot of time and I am looking for a faster/more simpler way. Significant NY, I mean the vi works for about 20 min before me give up and stop it.  I posted a PNG of the block diagram.  Any help will be much appreciated.

    Thank you

    Chris

    Hi humada,.

    Try this...

  • Unable to get the smaller table column

    My page is at http://www.shopburbank.org/merchantList.php The Web site column is too wide, and I can't understand what the problem is. The mysql field is defined as varchar 255 and I went through all the entries to that there is no space after the Web site. The fields that are not met are Null.

    Thank you

    You want to give people the ability to change your data? By providing this link, I could easily click on the "Edit" link and change your data. And now that I know the link, I can copy it and go to the link, you can change the name of the detail page too.

    If you don't want people modify these data, you should probably take this link off the page until you can fix.

    You control the table using css. You can do this, but it seems that the page is larger than the actual size of the window when I see if something tells me you have a problem with that. For this reason, each column will expand to fit the width of the page. It doesn't look like it not is in the data.

  • ADF-how to read the value of the ADF Table column.

    Hello

    I created a table of the adf by reading the variable (CSV) file, separated by commas.
    N ° of the table columns is variable.
    The last column of the table has the input text box so that the user can enter the values in the user interface.
    I want to read these values provided by the user in my grain of support.

    Any help or pointers will be great.

    Thank you
    Lecornu

    Hello

    Have you tried to analyze the application after you have submitted the form? Just add the following code to your action method.

    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Iterator;
    
    import javax.faces.FacesException;
    import javax.servlet.http.HttpServletRequest;
    
    ...
    
    FacesContext context = FacesContext.getCurrentInstance();
    HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
    Map requestParameters = request.getParameterMap();
    
    Iterator iter = requestParameters.entrySet().iterator();
    while(iter.hasNext()) {
      Entry entry = (Entry) iter.next();
      String key = (String)entry.getKey();
      String value = ((String[])entry.getValue())[0];
    
      if(key.contains(":cellInput")) {
        String yourInputTextValue = value;
        // Do something with yourInputTextValue
      }
    }
    

    Concerning

    Majo

    Edited by: DerMajo the 09.11.2009 13:05

  • Xml file for reading in the clob in the staging table column

    Hello

    I am trying to query the intermediate table with the database adapter that has the column type CLOB containing the XML file. How to extract the XML of CLOB and map the fields to the another final scheme variable.

    Thank you

    Published by: chaitu123 on Sep 20, 2009 08:16

    (1) when you create DBAdapter on a table that has the clob column watch closely the xsd created for the DBAdapter cloumn clob element must be a String data type

    (2) create xsd for Xml files and create the variable of the xsd element

    (3) use ora:parseEscapedXML("yourDBAdapterclobElement") for XmlFileVarilable

    Krishna

  • Sort the rows in the pivot table

    Hi all

    I have a category, grade and region columns sales and I want to use the PivotTable to display the category, region and sales values with category sorting by column rank, however I don't want to display the value of ranking in the PivotTable.

    The XML is already sorted according to their rank, but in the PivotTable, it is sorted by category name.

    Thank you

    Sushil

    You can change the code below, so that you can sort by rank, even if you do not rank display.

    CATEGORY_NAME{ROW, o = a}'; REGION {o = a, t = t} '; ' SITECOUNT ';' amount '? >

  • Permission errors on the importation of a custom in the person table column

    I have made a schema extension to our D1IM system in our dev environment, has added a new column and the appropriate permissions to the person table. I could see successfully, modify and import into this new column. Then, I carried my changes to the test system, and now I get a permission error whenever I run the import. I can still change this field using the Manager. The error is:

    [810024] employees: look at a permission denied for value "import updated HR."

    Any thoughts on what I'm missing would be fantastic!

    Thank you
    Blair

    I had the same problem as well, I had to give up the field and create it rather than import. I even created a separate label to change just for a single column that I've extended, would like to know the right way to import as well.

  • Pivot table column alignment

    Hi all

    I use the Oracle 11 g database to develop my application.

    I've created a generic column report.

    For this I used the concept of PIVOT table.

    My example query is

    with pivot_data like)

    SELECT DEPTNO, JOB, SAL, BISHOP

    WCP

    )

    SELECT *.

    OF pivot_data

    PIVOT)

    SUM (SAL)

    FOR DEPTNO

    IN (& P90009000_LIST.)

    )

    This output is

    WORK BISHOP 10 20 30

    --------- ---------- ---------- ---------- ----------

    PRESIDENT 5000

    7902 800 CLERK

    7698 950 CLERK

    7788 1100 CLERK

    7782 1300 CLERK

    7698 5600 SELLER

    MANAGER 7839 2450 2975 2850

    7566 6000 ANALYST

    8 selected lines.

    but I need the output as below

    BISHOP OF WORK 10 20 30

    --------- ---------- ---------- ---------- ----------

    PRESIDENT 5000

    THE 800 7902 CLERK

    THE 950 7698 CLERK

    1100 7788 CLERK

    1300 7782 CLERK

    5600 7698 SELLER

    MANAGER OF 2450 2975 2850 7839

    6000 7566 ANALYST

    8 selected lines.

    Come 10,20,30 pivot columns

    How to do this in my application?

    Thank you

    Su.GI

    Thanks Solomon.

    I used the code below.

    His job very well.

    with pivot_data like)

    SELECT DEPTNO, JOB, SAL, & P90009000_LIST., BISHOP

    WCP

    )

    SELECT *.

    OF pivot_data

    PIVOT)

    SUM (SAL)

    FOR DEPTNO

    IN (& P90009000_LIST.)

    )

    Thank you

    Su.GI

  • Help with contours of table column

    Hello

    I'm in the middle of creating a price list and we were brainstorming some ideas of rates.

    We have finally developed with one we want to use, but I simply can't the table traits to do what I want them to do.

    I have attached a picture of how we want the table to consult.

    table_test.jpg

    As you can see the contours of column are the length of the cell, but how do I format the function table to do this?

    Or for the text, you could apply a rule top and change the hyphens in function

    It would be more automatic - it will keep the automatic refills, and you can apply these directly with a paragraph style.

    You can also apply the feature of line for each separate in styles - if you use styles

  • Sorting of rows and columns in the pivot table

    My XML:
    <ROWSET>
         <data>
              <R>C</R>
              <C>3</C>
              <V>C3</V>
         </data>
         <data>
              <R>C</R>
              <C>2</C>
              <V>C2</V>
         </data>
         <data>
              <R>B</R>
              <C>1</C>
              <V>B1</V>
         </data>
         <data>
              <R>B</R>
              <C>3</C>
              <V>B3</V>
         </data>
         <data>
              <R>A</R>
              <C>2</C>
              <V>A2</V>
         </data>
         <data>
              <R>A</R>
              <C>3</C>
              <V>A3</V>
         </data>
    </ROWSET>
    With the help of the wizard, I created the corss-tab (table 2 x 2)
    (1,1) RC
    (1,2) <?for-each-group@column:data;./C?> <?C?> <?end for-each-group?>
    (2,1) <?for-each-group:data;./R?><?variable@incontext:G1;current-group()?><?R?>
    (2,2) <?for-each-group@cell://data;./C?><? ($G1[(./C=current()/C)]/V)?> <?end for-each-group?>group?&gt;
    produce the following output:
    -------------------------
    RC     3      2      1
    -------------------------
    C      C3     C2
    -------------------------
    B      B3            B1
    -------------------------
    A      A3     A2
    -------------------------
    I need the same exit, just with the rows/columns properly ordained. Help, please. Thank you.

    Hello

    with this code

    Cell (1,2): <? for-each-group@column:data;. / C ? > <? type: C? > <? C? > <? end for each group -? >
    Cell (2,1): <? for-each-group: data; / R ? > <? type: R? > <? variable@InContext:G1;current-group()? > <? R? >
    Cell (2.2): <? for each group-@cell://data;. / C ? > <? type: C? > <? ($G1_SQUAREBRACKET_(./C=current()/C)]/V)? > <? end for each group -? >

    and get your data

    .....|.. 1..|... 2...|... 3
    A.............. A2... A3
    B...... B1............... B3
    C............... C2... C3

    Concerning
    Rainer

  • Calculation on two columns in the pivot table

    Hi all

    I have a vision:
    Dept. year amount
    Accounting 500 $2010
    Accounting 700 $2011
    $100 engineering 2010
    $600 engineering 2011
    and etc.


    PivotTable: (data displayed side by side)

    Dept: 2010 2011
    Accounting 500 $700 $
    Engineering 100-$600

    Is there a way of PivotTable to create the additional column, and do the math on this column? New column called 'Change' (amount of real computation of 2010 less amount of 2011 by each Department). I see the function to duplicate columns in the PivotTable. But that's it... without additional calculations.

    Thank you in advance,

    Sonya

    Pretty easy simple n...

    Your year must be in the columns area... Simply create a new collar calculated say diff with function as formula and formula of the sale as a "2011" "- 2010". This will give you the sum of diff. You can do this more flexible by making use of $1 & $2 to reference...

Maybe you are looking for