Calculation on two columns in pivot table

Hello all,
I have a view:
Dept Year Amount
Accounting $500 2010
Accounting $700 2011
Engineering $100 2010
Engineering $600 2011
and etc
pivot table:(data displayed side by side)
Dept: 2010 2011
Accounting $500 $700
Engineering $100 $600
Is there a way in pivot table to create additional column and do a calculation on that column? New column called 'Change' (actual calculation amount of 2010 minus amount of 2011 per each department). I see the feature which allows to duplicate the columns in pivot table. But this is it... no additional calculations.
Thank you in advance,
Sonya

Deepak,
My "YEAR_NO' is already in the column area. Once I created 'calculated column' and entered formula '2011'-'2010' I got what I needed.
Thank you very much for the solution.
Sonya
In my view I also have column called EXPENSE. When, I added the 'calculated column' to 'YEAR_NO' with formula '2011'-'2010'. It created two calculated columns 1) after the EXPENSES and the other one after YEAR_NO. Is there a way to be specify to display the DIFFERENCE only once after the YEAR_NO??
Edited by: user8461308 on Dec 20, 2011 7:44 AM

Similar Messages

  • Division between two columns in pivot table in Answers

    Hi all
    In answers
    if I have two columns in my pivot table say column A and Column B, how can I use a division of Column B by Column A to derive Column C. I am unable to do that using the "New Calculated column feature" or in the criteria section. I keep getting either 0 or 1. I even tried changing the format to show two decimal places and am still unable to get the result.
    Thanks
    B

    Thanks,
    our issue is that we want to do our calculations at the summary level (region level of the company) and not at the detail level. However we cannot do this at the aggregate level because this is a moving total for the last 7 days worth of data.
    Also, Answers (even in Criteria) does not seem to be doing division properly. We are just not getting the results when we do col A/ Col C. We are in 10.1.3.4 on windows xp against SQL Server
    Any ideas?
    Edited by: Mid Atlantic on Jul 22, 2011 5:33 AM

  • Calculated Percentage Columns in Pivot Table loose formating in Excel

    I have a simple report built using pivot table ( OBIEE 11.1.1.5.0)
    1 Metric and 1 dimension using pivot table. and I duplicated the metric column and change it to % column.(Show data as % of column). SO far so good. Below is the snapshot
    http://tinypic.com/r/2s14xa9/7
    Now i download the report in excel and all the % values are messed up . Below is how it looks
    http://tinypic.com/r/bede90/7
    I tried messing with data formats etc..nothing works.. I cannot add a custom column format to the metric column since it will impact the derived % column.
    Is this a bug ?Any pointers ..
    Thanks

    Hi,
    Follow up this SR:
    SR 3-5060435331: Calculated Percentage Columns in Pivot Table loose formating in Excel
    Workaround: (not sure may be give a try)
    also give a try like below one then try to download it may work.
    In that % column -->add the below statement in the Custom CSS section of the column properties:
    mso-number-format:"\@"
    Refer snapshot here:
    http://i53.tinypic.com/a09kqv.jpg
    This will treat the data in the column as text while downloading to excel, hence retaining any leading or trailing spaces.
    Thanks
    Deva

  • Division of two columns in pivot table_OBIEE

    Hi,
    Can you please let me know if there is a way to divide 2 fact columns in pivot table in OBIEE?
    Consider a pivot table like this
    Year No of customers purchase volume No of customers/purchase volume
    1983 30 17000
    1985 23 8900
    1986 42 21000
    I need to calculate No of customers/purchase volume
    I did this calculation in criteria and the results are fine but when i tried to bring this to pivot i have no luck.I tried all aggregation rules like sum,average,server complex aggregation but no luck.Is there any option to calculate this column in pivot section?
    Note: 'Year' is in row section and other columns are measures in pivot.
    Thanks,
    Kalai

    Thanks,
    our issue is that we want to do our calculations at the summary level (region level of the company) and not at the detail level. However we cannot do this at the aggregate level because this is a moving total for the last 7 days worth of data.
    Also, Answers (even in Criteria) does not seem to be doing division properly. We are just not getting the results when we do col A/ Col C. We are in 10.1.3.4 on windows xp against SQL Server
    Any ideas?
    Edited by: Mid Atlantic on Jul 22, 2011 5:33 AM

  • How to extend No. of columns for PIVOT table in BI Publisher Desktop

    Hello Everyone,
      I am using the Oracle BI Publisher Desktop to design the TEMPLATE for Oracle Reports.
    I need to create the PIVOT table .In my PIVOT table I need to display 9 columns but when I tried to create PIVOT table by dragging 9 columns only first 4 columns are displaying in report.
    Can anyone suggest me how can I increase the number of columns in PIVOT table?
    Thank You.
    Regards,
    Guru.

    hi jim
    if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
    else send me your template and xml to my email id i can look into that .
    email : [email protected]

  • How can we modify the maximum no. of columns in pivot table ?

    hi all,
    How can we modify the maximum no. of columns in pivot table ?
    do i need to change the nqconfig.ini or instanceconfig file or else?
    thnx..

    A little search on the forum :
    In the instanceconfig.xml add a <PivotView> element under <ServerInstance> if one does
    not exist already.
    Within the <PivotView> element add an entry that looks like:
    <MaxCells>nnnnnn</MaxCells>
    where nnnnnn is your desired limit for the maximum total number of cells allowed
    in a pivot.
    Warning: an excessively large number will cause more memory consumption and
    slower browser performance.The details here :
    Oracle BI EE (10.1.3.2): Maximum total number of cells in Pivot Table excee

  • Need to compare values in two columns of one table against values in two columns in another table

    Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
    Say, for instance, here are my tables:
    Table1:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SEAN
    FEDCBA,SHAWN
    Table2:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SHAWN
    In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
    Server,Login
    FEDCBA,SEAN
    Thanks.

    create table Table1([Server] varchar(50), Login varchar(50))
    Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
    create table Table2([Server] varchar(50), Login varchar(50))
    Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
    select [Server] ,Login from Table1
    Except
    select [Server] ,Login from Table2
    select [Server] ,Login from Table1 t1
    where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
    drop table Table1,Table2

  • Calculating an average in a Pivot Table column

    Hello everyone,
    I have a Pivot Table..
    One Measure only
    In Rows:
    I have 3 fields: FieldA, FieldB, FieldC
    In Columns:
    I have 1 field: Field D
    From field D, I have created 5 calculated items (to single out the column values) and a Total calculated item column to sum the 5 calculated items.
    I have also enabled the Column Grand Total.
    Now, I want to create another calculated item (I think?) to calculated the (Total calculated item column) / (Column Grand Total)
    I tried creating a calculated item by doing the following (Total calculated item column) / sum(*), but this does not output anything.

    Re: how to Make a report from two cubes
    This link will help you.

  • Calculated column in pivot table

    How can I add a calculated column (Daily Average) in a pivot table like this?
    "Product" in row and "Date" in column and a "Daily Average" column to the right.
    Date1 Date2 Date3 +Grand Total       Daily Average+
    Product

    click right mouse on column you will get duplicate column
    in duplicate column propties you have option like aggreate avg apply it you will get result
    regards
    bethamsetty

  • Suppressing Columns in Pivot table when adding subtotal

    Hi,
    We have a dimension hierarchy like this:
    Level 1 ---> Level 2 ---> Level 3
    T ---> A ----> B1
    T ---> A ----> B2
    T ---> C ----> D
    T ---> E ----> E
    The report we are trying to build is of this format:
    Row_Num --> Dimension --> Amount
    1 --> B1 ---> 100
    2 --> B2 ---> 50
    3 --> A ---> 150
    4 --> D ---> 75
    5 --> C ---> 75
    6 --> E ---> 100
    When using Pivot table and subtotals, we are getting the report as below: (where for Dimension Value "E" there are two rows)
    Row_Num --> Dimension --> Amount
    1 --> B1 ---> 100
    2 --> B2 ---> 50
    3 --> A Total ---> 150
    4 --> D ---> 75
    5 --> C Total ---> 75
    6 --> E ---> 100
    7 --> E Total ---> 100
    We do not want the subtotals to be calculated if Level 2 and Level 3 are the same.
    Any ideas on how to achieve this?
    Many Thanks,
    Seetharam

    Hi user7276913,
    Are you sure you are using a Pivot Table view? Or are you using the standard table view?
    In a pivot table, you can only have (n-1) sub-totals where n is the number of fields in your "Rows" section. So in your case you have two fields, so you can only have 1 sub-total. See my screen shot below where I have a similar situation:
    !http://i47.tinypic.com/icux5y.png!
    Note that in the screen shot only the first column has a summation and the second does not. This makes sense since a sub-total and the last column would be the same as the values being displayed in the "measures" section.
    What you described in your post seems more like what I'm seeing in a standard table view
    !http://i48.tinypic.com/34z12zp.png!
    Based upon what I'm seeing in your sample report, it seems like you are missing some kind of line item number or transaction number or some field that uniquely determines a row. If you add this field into the pivot table you will get exactly what you want.
    e.g. Pivot Table Rows = Customer # (with summation Enabled) , Document Type (Summation Enable), Line Number
    Good luck and if you found this post useful, please reward points!
    Best regards,
    -Joe

  • Percentage of Total Count of Category in Raw Data Column in Pivot Table

    I have normalized my data in Excel and I have a column: "question 1" and then a column for "gender" which has values as "female" and "male". I have created a pivot table for these two variables, "Gender" and
    "Question 1". My values for Females and Males from the Gender data are presented within my pivot table. I want to present these numbers as percentages of Total "Females" and "Males" that are in the "Gender" column in
    my master dataset. Pivot tables will only allow me to do %'s of data already in the pivot table
    I am attempting to use Calculated Fields within Pivot Tables to resolve this. I do not want to create a separate column in my master data set, but rather, complete all calculations within the pivot table

    Thank you very much, 
    The steps you provided use the total "gender" within the pivot table as the "grand total". 
    If I have a binomial variable, "gender" with "male" as one of the variables, I need the grand total be the total male in the raw data. 
    Example: if there are 100 total males in the raw data for the column "gender"
    and I construct a pivot table with a dependent variable which is a survey question and "gender"  and 30 males "agreed" with the survey question and 20 females "agreed" with the survey question, your instructions for % of grand total would show 60% for
    males who agree [males + females who replied to the survey question],
    when, what I need is the total males in the raw data, 100, used as the total so that the percentage of males who answered "agreed" to the survey question is 30% of all males. 
    Thank you very much

  • Common Label for two columns in pivot view??

    Hi Guys,
    PLs help me..
    i want common label or heading columns in pivot view..
    Example:
    Under label1 (i should have two columns like 'A','B'), under label2(shud have colums like 'C','D','E')..
    i tried with dummy column, i placed it in measures section..but its not worked)..

    Hi Bhargav,
    f you are using 11g, goto Pivot Table Properties->Display Column & Folder Headings option.
    In 10g try this, http://obiee1000.blogspot.in/2012/03/header-on-measures.html
    Regards,
    Dpka

  • How to Display a Detailed Grand Total Column in Pivot Table

    I have a pivot table that looks something like this:
    I would like to display the 'Grand Total' column at the end so that it is separated by year, like this:
    Is there a pivot table setting that would allow it to display this way? I've searched high and low but haven't found anything. I appreciate any help. Thanks!

    You can add a calculated item to the pivot table to display grand totals by year:
    1.  First, turn off grand totals for rows and columns (PIVOTTABLE TOOLS > DESIGN tab > Layout group > Grand Totals > Off for Rows and Columns)
    2.  Click on the Price List (Invoice) field in the pivot table (hidden above the
    Member field?).  You must click on the pivot table cell containing the field name for the entries "Member" and "Non-Member".
    3.  Add the calculated item (PIVOTTABLE TOOLS > ANALYZE tab > Calculations group > Fields, Items & Sets > Calculated item...
    4.  In the "Name:" box, type: Grand Totals
    5.  In the "Formula:" box, type: = Member + 'Non-Member'
    6.  Click the "Add" button, and then click "OK"

  • Dashboard Prompt - Variable - Populate/Calculate column in Pivot Table

    1. I have a need to store the values of three prompts (Year, Quarter and Month) in my dashboard prompt, So a 'column A' (calculated value/measure) can be dynamically populated in my pivot table based on the users chioce.
    These prompts have to be multiselect prompts as the user may opt for 2 or more years/ quarters / months etc.
    I don't think Presentation Variable would work as I have to use multiselect prompt, I have been trying Non-System Session Variables & dynamic repository variables- but could not get it to work. I am thinking only of using one of the three variables (session/dynamic/presentation) so far, is there a better way to tackle this?
    Any help/pointers would be much appreciated, thanks

    I should clarify a little: our sales "process" is very simple (not really a process). We do not use Opportunities. We enter new Leads, and if we win the business, we convert them to a Contact. Thus, our "win %" is simply the number of converted Leads divided by the total Leads for a given period. In my table I would like to display the % of Leads for a given period that are converted to Contacts.
    Thanks again.

  • Calculating growth percentage in a pivot table

    I have a pivot table with the following data generated by a pivot table of customer and sales data. The pivot table is showing the 2010 and 2009 data.
    Sales
    Customer 2010 2009
    ABC 1000 800
    DEF 2000 1000
    How would I get the calculation to show the % growth from 2009 to 2010 shown below ??
    Sales
    Customer 2010 2009
    ABC 1000 800 25%
    DEF 2000 1000 100%
    Thanks for any help

    Re: how to Make a report from two cubes
    This link will help you.

Maybe you are looking for