Calculated column in a pivot in obiee 10g

Hello all ,
Please share your thoughts on the below requirement :
I have 3 measure columns in a pivot table (in measures)- A,B,C .
against region dimension (in rows) and one month dimension (in measure lable ).
the data's are populating as below :
....... jan .......Feb
A B C ....... A B C
region --- >10 5 5 .........2 5 10
Now , i want one calculated column (D) , just after these three months values of A,B,C .
the calculation would be :
D =((A of Jan * B of Jan) + (A of Feb * B of Feb)) / (C of Jan + C of Feb)
Let me know , if further explanation needed .

Try to use Table view first to get the expected results by tweaking the below post
Re: Second row data -  First row data of other column?
Will response if I get any better approach.

Similar Messages

  • Customize Font in Pivot Table OBIEE 10g

    Hi All,
    I have the Pivot table like this:
    Item                Value
    A                     1
    B                     2
    C                     3
    Total  A-C         6
    D                     1
    E                     2
    F                     3
    Total D-F          6
    How to bold the Total A-C and its value?My version is OBIEE 10g
    Thank you before
    Regards
    JOE

    Hi Joe
    In 10g
    1st change the View from Compound Layout to "Tabular View"
    2nd.. as you told the A-C total is needed, in the tabular view at Answers......navigate to that field/column  & find Sigma (Summation Symbol) ..
    3rd, by clicking on it..you will get the Totals in Bold Letters
    Please mark Correct if this helps you
    Regards

  • Sorting on a total column or calculated column in a pivot table

    We have a pivot table showing customer activity by month. We have added a calculated field to show the YTD average instead of a total column. Is there a way to sort on this calculated field? We have applied a sort on the measure in the criteria, and our resulting pivot table sorts by the values in the most recent month, not by the YTD average.

    I think we cant sort when we use a pivot view becoz all the rows are already fixed. Say your rows are sales and volume and columns are year 2007 and 2008, imagine if you r given the sorting ability then if number of units solds is more then it need to change the rows (but in pivot table rows are fixed). So, we cant sort in pivot tables!!

  • Exclude the value 0 records in the pivot view obiee 10g

    HI,
    I have a requirement.,i have report circuit and outage time by month in a pivot view.If one circuit have a '0' outage time in all months then i want to exclude the record from the display.Is there anyway to display the data like this....
    thanks,
    prassu

    circuit   April may jun
       1          0   0     10   
       2         0     0     0
       3         0     4    1
    my question is  for circuit 2 all months we have outage 0.so i want to exclude the record , if we select Quarter 2.
    And  exclude 3 if we  select April....etc

  • OBIEE 10g Getting wrong results when adding calculated columns to a report

    Hi,
    I'm experiencing a possible misbehaviour with OBIEE 10g (10.1.3.4.1).
    I have a simple report with a table. Columns are simply selected from dimensions and facts. In this case the generated query is:
    WITH
    SAWITH0 AS (select sum(T30604.TOTAL_TIME) as c1,
    sum(T30604.MATERIALS_QTT_COST) as c2,
    sum(T30604.AMNT) as c3,
    sum(T30604.QNTY) as c4,
    T30622.BRANCH_CODE as c5,
    T25064.SRP1_CODE as c6,
    T25064.SRP1_DESC as c7,
    T25064.SRP2_CODE as c8
    from
    THK_BRANCHES T30622,
    THK_ITEMS T25064,
    THK_INVENTORY_TRANSACTIONS T30604
    where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
    group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE)
    select distinct SAWITH0.c5 as c1,
    SAWITH0.c6 as c2,
    SAWITH0.c7 as c3,
    SAWITH0.c8 as c4,
    SAWITH0.c4 as c5,
    SAWITH0.c3 as c6,
    SAWITH0.c2 as c7,
    SAWITH0.c1 as c8,
    SAWITH0.c4 as c9,
    SAWITH0.c3 as c10,
    SAWITH0.c2 as c11,
    SAWITH0.c1 as c12,
    SAWITH0.c4 as c13,
    SAWITH0.c3 as c14,
    SAWITH0.c2 as c15,
    SAWITH0.c1 as c16,
    SAWITH0.c4 as c17,
    SAWITH0.c3 as c18,
    SAWITH0.c2 as c19,
    SAWITH0.c1 as c20
    from
    SAWITH0
    Results of this report / query are correct.
    I then add a simple calculation (subtraction between two fields). The generated query is:
    WITH
    SAWITH0 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
    sum(T30604.AMNT) as c2,
    T30622.BRANCH_CODE as c3,
    T25064.SRP1_CODE as c6,
    T25064.SRP1_DESC as c7,
    sum(T30604.TOTAL_TIME) as c8,
    sum(T30604.QNTY) as c11,
    T25064.SRP2_CODE as c12
    from
    THK_BRANCHES T30622,
    THK_ITEMS T25064,
    THK_INVENTORY_TRANSACTIONS T30604
    where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
    group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE),
    SAWITH1 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12
    from
    (select sum(SAWITH0.c1) over (partition by SAWITH0.c3) as c1,
    sum(SAWITH0.c2) over (partition by SAWITH0.c3) as c2,
    SAWITH0.c3 as c3,
    sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c3) as c4,
    sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c3) as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    sum(SAWITH0.c8) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c8,
    sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c9,
    sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c10,
    sum(SAWITH0.c11) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c11,
    SAWITH0.c12 as c12,
    ROW_NUMBER() OVER (PARTITION BY SAWITH0.c3, SAWITH0.c12 ORDER BY SAWITH0.c3 ASC, SAWITH0.c12 ASC) as c13
    from
    SAWITH0
    ) D1
    where ( D1.c13 = 1 ) ),
    SAWITH2 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
    sum(T30604.AMNT) as c2
    from
    THK_INVENTORY_TRANSACTIONS T30604)
    select SAWITH1.c3 as c1,
    SAWITH1.c6 as c2,
    SAWITH1.c7 as c3,
    SAWITH1.c12 as c4,
    SAWITH1.c11 as c5,
    SAWITH1.c10 as c6,
    SAWITH1.c9 as c7,
    SAWITH1.c8 as c8,
    SAWITH1.c10 - SAWITH1.c9 as c9,
    SAWITH1.c11 as c10,
    SAWITH1.c10 as c11,
    SAWITH1.c9 as c12,
    SAWITH1.c8 as c13,
    SAWITH1.c11 as c15,
    SAWITH1.c10 as c16,
    SAWITH1.c9 as c17,
    SAWITH1.c8 as c18,
    SAWITH1.c11 as c20,
    SAWITH1.c10 as c21,
    SAWITH1.c9 as c22,
    SAWITH1.c8 as c23,
    SAWITH1.c5 as c26,
    SAWITH1.c4 as c27,
    SAWITH1.c2 as c28,
    SAWITH1.c1 as c29,
    SAWITH2.c2 as c30,
    SAWITH2.c1 as c31
    from
    SAWITH1,
    SAWITH2
    Results of this report / query are wrong: it seems as if some rows "disappear".
    If I delete the filter in SAWITH1 query above ( D1.c13 = 1 ) results are correct.
    Anyone experiencing the same problem? The strange thing is that I have a number of similar reports (on other subject areas) and everyting is working fine.
    Please also note that I don't want to add this kind of calculated items in the RPD (they can be simple calculations that are made on-the-fly).
    Any help would be greatly appreciated.
    Thanks a lot and regards,
    Cristina

    I have the same issue, everything OBIEE server generate query using ROW_NUMBER() over () function, it will hardcode Dx.cx = 1, this will cause issue if you have rows of the same distinct value, thus causing missing rows and the final results will be wrong.
    I have open a SR with Oracle Support since March 2011, but till today, they have not resolve the issue yet.
    Hope they solve the issue soon.
    Best Regards
    KT

  • Calculated item in pivot table - OBIEE 11g

    Hi,
    I need to display only the calculated items in my pivot table and I want to hide the other members. I am using OBIEE 11.1.1.5.0.
    Is it possible to have different selection steps for different views.
    Please help.
    Thanks,
    Prabhu S.

    Hi Dhar,
    Thanks for your answer. I want to use section wise display in pivot table and need to show only the calculated members in the sections.
    I need to hide other values of the particular section column.
    Thanks,
    Prabhu S.

  • How to re-arrange the columns present in pivot table view in obiee 10?

    Can you please tell me How to re-arrange the columns present in pivot table view in obiee 10?

    I have columns as 1,2,3,4,6,7, in pivot table view.
    I have calculated item (column 5 as summation of 1,2,3,4) and caluclated itme (column 9 as summation of 6,7)...now if i arrange ascending then calculated columns 5,9 don't get affected.
    I need the order as 1,2,3,4,5,6,7,9

  • Vertical allignment of columns in tabular format of report in obiee 10g

    Hi,
    I have a client requirement in which the colums are to be alligned vertically instead of being displayed horizontallty which is the default format in obiee.
    Can anyone help me in achieving this requirement .
    below goes the format of report we need in our project :
    Column Name Value
    Trade Summary:     
    Counterparty:     [Counterparty Name]
    Trade ID/ Global ID:      [Trade ID / Global ID]
    Trade Date:     [MM/DD/YYYY]
    Settlement Date:     [MM/DD/YYYY]
    Notional:     [CCY2] [Notional] <- show the non delivery currency
    Thanks,
    Mayuri Shah

    Hi,
    Change the columns as rows and rows as columns in the pivot view properties.You can display all the columns as rows and data as columns.
    If you want display the column data in sections place required columns in section .
    mark if helpful/correct..
    thanks,
    prassu

  • OBIEE 10g repository - Business model - logical table to physical table, column mapping is empty

    Hi, I am really new to OBIEE 10g.
    I already set up a SQL Server 2005 database in Physical and import a view vw_Dim_retail_branch.
    The view has 3 columns: branch_id, branch_code, branch_desc.
    Now I want to set up the Business model to map this physical table (view).
    I created a new Business model
    Added new logical table Dim_retail_branch
    In the sources, added the vw_Dim_retail_branch as source table.
    But in the Logical table source window,  column mapping tab, it's blank. I thought it should be able to identify all the columns from vw_Dim_retail_branch, but not. The show mapped columns is ticked.
    What should I do here? Manually type each column?

    HI,
    Just you can drag and drop the columns from physical layer to BMM layer.
    Select the 3 columns and drag and drop it to the created logical column in BMM layer.
    for more reference : http:\\mkashu.blogspot.com
    Regards,
    VG

  • Hiding columns in pivot table OBIEE 11g

    Hi experts,
    I am trying to create a pivot table with individual values in columns but I also need to display a grand total as values but also as percentage and as cumulative percentage.
    I duplicated the measure once in the measure area, and selected display data as percentage of column, and another time using display cumulative and percentage of column.
    The result is fine, but all the elements are displayed as column for the percentage and for the cumulative. Or, I only need the Grand Total Percentage and Cumulative, but I don't need all the columns for Percentage and cumulative.
    I have tried to find out a way to customize the XML but nothing good.
    Is there a way to display only the grand total for percentage and cumulative without having to display all the individual columns?
    Any help highly appreciated.
    Regards

    If I get your question correctly.. You are trying to present the grand total towards the end of the Pivot and OBIEE is displaying the totals of all the sections and then the Grand Total.
    Try not to use the grand total of the sections but create a new pivot view and just display the grand total in that view.
    So you will have your normal sections and then another pivot view just for the grand total.
    As far as I know, there is no option to hide the individual section totals.

  • Pivot table calculated column

    Hello ,
    I have created a pivot table like below
    ________________________________ *200908 .... 200909 .... 200910*
    No Matching data in A ........................ 500 ......... 550.............. 570
    No Matching data in B ........................ 650 .......... 700 ............ 720
    Now i want to calculate the difference for the latest month and prevoius month, and would like to display as below
    __________________________________ *200908 ..... 200909 ....... 200910......... Diff*
    No Matching data in A ........................ 500 ..............550 ........... 570 ..... 20
    No Matching data in B ........................ 650 .............. 750 ........... 725 .....-25
    I am getting the difference if i give static values like '200910' - '200909'
    But i want to get the difference dynamically like 'highest date' - 'next highest date'
    Please suggest some ideas.
    Thanks in advance.
    Edited by: user11049754 on Nov 18, 2009 12:48 PM

    hi abhi,
    Do you mean moving the column position,if so your saying it as calculated item so in pivot view it would be in the measures area.From there where you want to move it??
    My understanding from your question is that in the measure area if there is another column other than calculated item,you can move above it or below it.
    By,
    Kranthi.

  • 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

  • How to Freeze Dynamic arrangement of columns in tables a Pivot in OBIEE 11g

    HI
    I am using OBIEE 11g .
    Reports are displayed in dashboards. I want to disable dynamic arranging feature of columns in tables & Pivot table.How to do that.
    Thanks
    Abdul

    Hi,
    Kindly do the below changes in your end..please go to your obiee11g installation folder under
    BI11g\Oracle_BI1\bifoundation\web\msgdb\messages\answerstemplates.xml find it the take back up and Edit the copy of the file and
    Search with "Sortable" keyword in kuiCriteriaDefaultViewElementsMask element but I'm not sure sortable="False" then restart it
    Note: it will afftect entire answres report.
    Thanks
    Deva

  • File containing format changes done to columns in OBIEE 10g

    Hi
    Please, let us know the file and its location in which the format changes done to columns are stored in OBIEE 10G.
    Thanks.

    Hi,
    the formatting options for columns are stored in xml file in web catalog. the location of xml files is OracleBIData/web/catalog/catalog_name/root/system/metadata
    assign points if found helpful.

  • OBIEE 10g - Logical column with static value

    I created a logical column with static numeric value in it and added it to presentation layer. The column is not showing up in Answers. All other columns I added are showing up. The issue is with this one only.
    I have verified permissions on this column in presentation layer. I tried reloading server metadata in answers, restarting all services but it didn't help.
    One thing I noticed this column is showing fx icon instead of Σ icon.

    Kid,
    The fx means it is a calculated column/formula and the sigma means that you've added some aggregation type to the column.
    Either way it shouldn't matter and your column should be showing up.
    I would attempt to create a new column and in the fx field try entering static text and see if that allows the column to be visible after dragging it to the presentation layer subject area.
    Also what is the value that you are adding?

Maybe you are looking for

  • In BDC report ..

    In BDC report ..what is meaning for ok_code value equal to /00  ,     =BS    and   =BU. Thanking u in adv. Sangeeta.

  • Mid-2012 display flickers

    I've had my Macbook Pro Mid-2012 for just over a year now and never really experienced any problems until recently. The screen gets horizontal lines running across it, which flicker. Sometimes it won't do it for ages, and, when it does, it barely hap

  • About Keyboard on iOS6 - Need 'ORIGINAL' Layout For Thai Language !

    Hi. I know many Thai like the new keyboard layout in the new iOS [iOS6]. The new layout that seem like all Smartphone in market. (BlackBerry, Samsung, HTC, ...) This Change make easier for someone who migrate from Common Smartphone Brands This Change

  • Bank of America and JPM Chase Agree to Erase Debts From Credit Reports After Bankruptcies

    http://www.nytimes.com/2015/05/08/business/dealbook/bank-of-america-and-jpmorgan-chase-agree-to-erase-debts-from-credit-reports-after-bankruptcies.html?hp&action=click&pgtype=Homepage&module=first-column-region&region=top-news&WT.nav=top-news&_r=1  T

  • Chart legends, only one showing on stripchart

    1. I selected 4 legends on my stripchart, but see only "Trace 1." No other legends are visible. How to get them visible? 2. How to change the text of each legend? I tried the following before and after the PlotStripChart statement but don't see the I