Row -level based calculations in OBIEE11g - pivot table

Hi Experts,
I have the report with the format.. Where Transaction Amount is my measure and Events is one of the dimension(Event type) and Time is another dimesion (Year & Month columns)..
Transaction Amount                                                       
                              JAN               FEB               MAR               APR
Event Type          Year                                                                 
GMS(USD)               2010          16,304,853.61     14,430,768.37     15,208,584.75     12,958,012.50
                    2011          20,348,028.07     18,296,414.03     19,043,200.29     17,226,224.87
Inbound Rejects(USD)     2010          13,757.00          84.93          123.52          11.98          
                    2011          101,670.48          6,658.78          2,240.56          3,135.09
Now I want to create a calculated rows % inbound rejects , the formula is Inbound Rejects(USD)(2011) /GMS(USD)(2011) and also simillar for 2010 year. How I can do this is OBIEE11g.
Thanks in Advance
S
Edited by: sivausin on Aug 26, 2011 7:22 AM

Here there 5 tables.
CBI_BI_HDR- Primary header table(Level zero record) With BUSINESS_UNIT and INVOICE as key.
CBI_BI_HDR_STG- Level one (BUSINESS_UNIT,INVOICE and LINE_SEQ_NUMBER as key).
CBI_BI_LINE- Level One record (BUSINESS_UNIT,INVOICE and LINE_SEQ_NUMBER as key).
CBI_BI_AEDS_STG-Level two record( no need any information in this for report)
CBI_BI_SKU-Level two record(BUSINESS_UNIT,INVOICE,LINE_SEQ_NUMBER,WIDTH_SEQ_NUMBER, and SIZE_SEQ_NUMBER as key)
CBI_BI_SKU is the one i am try to get as Pivot in level 2.
for each WIDTH_SEQ_NUMBER and SIZE_SEQ_NUMBER there is DIM_CODE and SIZE_DESC in respectively in the table.Also qty for each size and dim code here.
so i want the result to be like this.But it is working problem here is it is return the same value for all billing line.I want only the key value relation ship in this pivot table.
BIlling LINE_SEQ_NUMBER=1
SIZE_DESC1(11) SIZE_DESC2(9) total
DIM_CODE1(M) 11 22 33
DIM_CODE2(W) 4 13 17
BIlling LINE_SEQ_NUMBER=2
SIZE_DESC1(11) SIZE_DESC2(9) total
DIM_CODE1(M) 11 22 33
DIM_CODE2(W) 4 13 17
Please send ur mail ID i will send the document. Here it is not allowing me to add XML. [email protected]
Regards,
Sabarinathan

Similar Messages

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working 10g

    Hi,
    How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
    We have tried below methods
    1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    2) in that formula columns we have put it below case condition also ,
    Measure Column: Nom_amt --> edit formulas
    CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
    3) we have uncheked IS NULL check box in the admin tool also
    I tried above formats still it's not working for me..kindly help me on this..
    thanks to do the needfull
    Best Regards,
    R.Devarasu

    Hi,
    Null value in database displaying as 0 in report, I need to keep value as in database, and I have one calculated row which is based on null values should also null in report.
    but it showing 0 for null values also so, my calculated row showing wrong result.
    my report is like
    col1 col2
    ABC 0
    BCD 12
    DEF -12 --this is calculated row.
    I require result like:
    col1 col2
    ABC null
    BCD 12
    DEF null --this is calculated row.
    Please let me know how I can achieve this.
    Thanks,
    Rahul

  • How to replace null as 0 in  obiee11g pivot table view?

    Hi,
    I am using obiee11g pivot table view,
    I have tried so many views but it's not work. My oracle support team also tired but could not solve it
    1.) used BIN method is that measure columns
    2.) ifnull(column name,0)
    3.) case condition:
    Case when columns is NULL then 0 else column end
    4) data formate override custom formate option
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    http://obieeelegant.blogspot.com/2011/06/how-to-replace-null-values-in-obiee.html
    Note:
    I don't want to show strike-rate and custom message in that blank cell. I want to show blank cell(null values) as 0 in the obiee11g pivot table view.
    Obiee10g version is working fine only issues in obiee11g
    Thanks in advance...
    Thanks
    Deva

    I tried this on 11.1.1.6.2 but I can't see good results.
    I choose subject area A-Sample Sales and I choose:
    T02 per Name Month on rows
    P1 Product on columns
    Measure : IFNULL("Simple Calculations"."17 Net Costs", 0)
    Prompted Year 2008
    On product Install and 2008/01 there isn't value...and I put Ifnull in my formula...
    My problem is that I want to do a conditional format when Product = Install. So I have all column with background colour except Null values...so is not pretty...
    If I add custom numeric format I can see 0 but not with background colour...
    I add a picture:
    http://imageshack.us/photo/my-images/600/tablegk.jpg/
    Any help about it??
    Is a bug on obiee??
    Edited by: Alex1 on 04-sep-2012 4:28

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table?

    Hi,
    How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
    We have tried below methods
    1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    2) in that formula columns we have put it below case condition also ,
    Measure Column: Nom_amt --> edit formulas
    CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
    3) we have uncheked IS NULL check box in the admin tool also
    I tried above formats still it's not working for me..kindly help me on this..
    thanks in advance...
    Best Regards,
    R.Devarasu

    Hi Amith,
    I have update your suggested one,but it's working few of the rows only..remainings rows some of cells still NULL only
    Measure colmns is : Nom_SGD
    IFNULL(Nom_SGD,0.00)
    Movment : dynamic date calc by using $2-$1 oracle formula's
    Actually i am doing below things only,
    31/12/2011 31/03/2011 Movment
    Country
    India 100 -50 -150
    Singapore 200 200
    UK 1200 -1200
    USA 0.00 0.00 0.00 (here changed null as 0)
    Helpmeon this...

  • How to convert row data into columns without using pivot table?

    Hello guys
    I have a report that has several columns about sales call type and call counts
    It looks like this:
    Calls Type Call Counts
    Missed 200
    Handled 3000000
    Rejected 40000
    Dropped 50000
    Now I wanna create a report that look like this:
    Missed call counts Handled Call counts Rejected Counts Drop counts Other Columns
    200 300000000 40000 50000 Data
    So that I can perform other calculations on the difference and comparison of handled calls counts vs other call counts..
    I know pivot table view can make the report look like in such way, but they cant do further calculations on that..
    So I need to create new solid columns that capture call counts based on call types..
    How would I be able to do that on Answers? I don't have access to the RPD, so is it possible to do it sololy on answers? Or should I just ask ETL support on this?
    Any pointers will be deeply appreciated!
    Thank you

    Thanks MMA
    I followed your guidance and I was able to create a few new columns of call missed count, call handled counts and call abandoned counts.. Then I create new columns of ave missed counts, ave handled counts and so forth..
    Then I went to the pivot view, I realized there is a small problem.. Basically the report still includes the column "call types" which has 3 different types of call "miss, abandon and handled". When I exclude this column in my report, the rest of the measures will return wrong values. When I include this column in the report, it shows duplicate values by 3 rows. It looks like this:
    Queue name Call types Call handled Call missed Call abondoned
    A Miss 8 10 15
    A Handled 8 10 15
    A Abandoned 8 10 15
    in pivot table view, if I move call type to column area, the resulted measures will become 8X3, 10X3 and 15X3
    So is there a way to eliminate duplicate rows or let the system know not to mulitply by 3?
    Or is this as far as presentation service can go in terms of this? Or should I advice to provide better data from the back end?
    Please let me know, thanks

  • Performing a specific calculation in a pivot table with BI Publisher 10g

    I am using BI Publisher 10g and new on it and I need to integrate a specific calculation measure in a pivot table
    The logic uses two measures that already exist in the report (Demand & PAB) and the required calculation is represented by a new measure/row (Calculated). The pivot time is in weeks
    Week w0     w1     w2     w3     w4     w5 .....
    Demand     d(w0)     d(w1)     d(w2)     d(w3)     d(w4)     d(w5) .....
    PAB     p(w0)     p(w1)     p(w2)     p(w3)     p(w4)     p(w5) .....
    Calculated     c(w0)     c(w1)     ....     ....     ....     c(w5) .....
    If p(w0) < d(w1) --> then c(w0) = p(w0) / d(w1)
    If not
    If p(w0) < d(w1) + d(w2) --> then c(w0) = p(w0) / ( d(w1) + d(w2) ) * 2
    If not
    If p(w0) < d(w1) + d(w2) + d(w3) --> then c(w0) = p(w0) / ( (dw1) + d(w2) + d(w3 ) ) * 3
    If not
    etc .... Same logics apply for c(w1) and so on
    Is such calculation logic achievable in Bi Publisher ? If yes, how would you do it ?
    Thanks for your time and support on this
    Regards, Samir
    Edited by: skaroui on 02-Mar-2012 05:50
    Edited by: skaroui on 02-Mar-2012 06:02
    Edited by: skaroui on 02-Mar-2012 06:12

    Can you use the logic that you specified in the data model (query) to generate the required data and then use it in the pivot table? That would be the easiest way to do it. Tweaking the code to include the conditional logic/calculated measures is not going to be straightforward..
    Thanks,
    Bipuser

  • 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

  • Wrong value with calculated item in pivot table

    I have a report with 4 columns:
    First Column are Department Dimension
    Second Column is Actual value
    Third Column is Previous value
    Four Column is: ((Actual Value-Previous Value)/Previous Value))*100 that called Var
    Then I do a pivot table and I have new calculated item: Department1/Department2 and I have wrong value in four column:
    Department----------------------------------Actual-------Previous------Var
    Dept1------------------------------------------18503--------16308--------13,5
    Dept2-------------------------------------------3758---------3518----------6,8
    (Calculated Item: Dept1/Dept2)--------4,92---------4,64------------*2* <---- This value is wrong...and it has to be: 6,03
    Is possible to get the correct value???
    Thank you very much!

    hi,
    Create a logical column with ur calculation formula and make it as default agg rule in rpd and answers change it to server determined/server complex agg.I did the same it was working fine for me!!
    Check this link
    http://books.google.com/books?id=OnbYrkWa4RsC&pg=PA74&lpg=PA74&dq=%22server+complex+aggregate%22&source=web&ots=qxrpaFXmo2&sig=CxLOemzcOlvIiaQ_sQD4fPQotdM&hl=en&sa=X&oi=book_result&resnum=5&ct=result#v=onepage&q=%22server%20complex%20aggregate%22&f=false
    thanks,
    saichand

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

  • Move position of calculated item in pivot table

    Hi experts,
    I have done the pivot table in the table above:
    http://www.2shared.com/photo/MB3J5caU/image1.html
    The item sum 2005-2006 is the sum of the value of commission amount for the years 2005 and 2006. I need to move this item after the value 2006, but i have not idea about how can i do this. By default it is dispayed at the end of the values.
    Any ideas?
    Thank you!!!!!!!

    Hi User,
    1. Did you created any dummy column for the calculation purpose ?
    Method1: Create a dummy column in criteria - in the Edit Forumale (write Sum(commission 2005 + commission 2006) ).
    Already you have column's Comissions 2005 , comissions 2006 in criteria.
    Now simply, move the Newly Created Dummy column in the criteria after/before as per ur requ. value 2006. ( By Dragging it )
    2. If you have created the column sum2005-2006 in the pivot table.
    Method2: I think you have value 2005 and value 2006 , sum 2005-2006 columns in pivot table.
    In the pivot table, you can view 'measures' area where you will find value 2005, value 2006, sum 2005-2006 columnn's.
    Simply, move the sum 2005-2006 columns in b/w value 2005 and value 2006 columns ( by dragging and dropping it )
    Thank you.
    Edited by: 831909 on Feb 28, 2012 6:10 AM

  • Some calculation issues in Pivot table

    Hi all,
    I am using OBIEE 10.1.3.4.1
    We have one requirment like this:
         Product:1,2                         
         Month     Product     Region     District     Sales     Percent
         201010     1     China     Shanghai     200000     25.00%
              1     China     Beijing     200000     25.00%
              1     India     Bangalore     200000     25.00%
              1     US     Chicago     200000     25.00%
         201010 Total               800000     *33.33%*
         201011     1     China     Shanghai     400000     25.00%
              1     China     Beijing     400000     25.00%
              1     India     Bangalore     400000     25.00%
              1     US     Chicago     400000     25.00%
         201011 Total               1600000     *66.67%*
         201010     2     China     Shanghai     500000     31.25%
              2     China     Beijing     500000     31.25%
              2     India     Bangalore     500000     31.25%
              2     US     Chicago     500000     31.25%
         201010 Total               2000000     *100.00%*     
    We want to use the pivot table to achieve this, but all total would be show 100%, so how to achieve the bold part?
    like: product 1:201010 total + 201011 total =100%
    product 2: 201010 total =100%
    Did someone meet this before and how to achieve it? if yes, Please kindly give me some clues about this.
    Regards,
    Anne

    The problem is with the  Percentage cell for Total. (18/60)*100 = 30% and it should not be 100. In pivot table properties i had used summation after that is why it is summing. If i create a new table , I can get the correct Total row values but those will be in separate view as shown below. Is there way to club those to analysis into one ? Thanks, Sushil
    Cat    Value       Total Value     Percentage
    A              8          10            0.8
    B            10           50          0.2      
    Value  Total Value    Percentage       
    18        60      0.3

  • Row level Tax Calculation

    Hi,
    I have to calculate the row level tax in following query.
    SELECT T0.[DocEntry], T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[LineNum], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[LineTotal], T1.[VatSum], T1.[GTotal], T1.[TaxCode],
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and stacode='BED10' and DocEntry=T1.DocEntry) as ' ED 10% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=T1.DocEntry) as 'Cess 2% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=T1.DocEntry) as 'HSCess 1% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST2' and DocEntry=T1.DocEntry) as ' CST 2% (Rs.) '
    FROM OINV T0  LEFT JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry LEFT JOIN INV4 T2 ON T0.DocEntry = T2.DocEntry AND T1.LineNum = T2.LineNum WHERE T0.[DocEntry] >=[%0] AND  T0.[DocEntry] <=[%1] AND T0.DocType='I'
    GROUP BY T0.[DocEntry], T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[LineNum], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[LineTotal], T1.[VatSum], T1.[GTotal], T1.[TaxCode], T1.[DocEntry]
    ORDER BY T0.[DocEntry], T0.[DocNum], T0.[DocDate], T1.[LineNum]
    Regards,
    Datta Kharat

    Hi Datta........
    Try this......
    SELECT M.DocEntry, M.DocNum AS 'AR Inv. #', M.DocDate as 'Date', L.ItemCode, L.Dscription, L.Quantity, L.TaxCode, M.CardName as 'Customer Name',M.NumAtCard as 'PO No. & Dt.',
    L.LineTotal as 'Base Amt.(Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and stacode='BED10' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' ED 10% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and stacode='BED4' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' ED 14% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry And LineNum=M.LineNum) as 'Cess 2% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry And LineNum=M.LineNum) as 'HSCess 1% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and stacode='VAT4' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' VAT 4% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and stacode='VAT5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' VAT 5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and stacode='VAT12.5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' VAT 12.5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST2' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 2% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST4' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 4% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST12.5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 12.5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=5 and stacode='ST10' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' ST 10% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=6 and stacode='Cess_ST2' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' Cess_ST 12.5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-10 and stacode='HSC_ST1' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' HCS_ST 12.5% (Rs.) ',
    (Select Sum(LineTotal) From INV3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
    M.DocTotal as 'Total (Rs.)',U.Dscription, U.ChapterID
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    LEFT OUTER JOIN OITM S ON L.ItemCode = S.ItemCode
    LEFT OUTER JOIN OCHP U ON S.ChapterID = U.AbsEntry
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND M.DocType='I'
    GROUP BY
    M.DocNum,M.DocDate,L.ItemCode, L.Dscription, L.Quantity, L.TaxCode, M.CardName,M.NumAtCard,L.LineTotal,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,U.Dscription, U.ChapterID
    ORDER BY
    M.DocNum,M.DocDate,L.ItemCode, L.Dscription, L.Quantity, L.TaxCode, M.CardName,M.NumAtCard,L.LineTotal,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,U.Dscription, U.ChapterID
    Regards,
    Rahul

  • How to perform row level changes in a region of table type

    Hi Gurus,
    I am having a region of type table. In this table I have added a details section. In the details section I want to display an item only when its not null. So I have changed the code in controller to make the render as false for this field when it is null. But this is applied to the item present in all the rows in the table.
    For example: If there are two rows in the table and first has some value in X item while second has null value for the same item. Then both the rows do not show the item X (render is set as false by controller).
    Is there any way to have the item visible in first row and invisible in second row?
    Thanks,
    Manish

    You have to go for SPEL binding. Create a transient attribute in the same VO of the table and set the value of the each row to true or false depending on the value of the attribute of the first, say using decode statement ( DECODE(firstattr, null, false, true)) and then bind this attribute to the RENDERED_ATTR attribute of the second item using SPEL binding. Please refer Dynamic User Interface section of the Chapter 4 of OA Framework Dev. Guide.
    Regards,
    Guru.

  • Rank on column-level Grand total column in pivot table  -  Need help

    Hi ,
    I have developed the report, which is having a pivot view. In pivot view i have a column level grand total. I need to apply the rank for the grand total column..
    will that be possible.. if possible let me know..
    Thanks
    Kishore

    MAY BE IT IS NOT POSSIBLE IN PIVOT VIEW< AS WE DONT HAVE FORMULA EDIT OPTION FOR COLUMNS IN PIVOT VIEW.......
    Thanks & Regards
    Rushi

  • How can i create Level Based Hierarchy using multiple logical table.

    Hi All,
    in my use case i have two master logical table.
    Division_Mst(divncd,DivnName)
    Department_Mst(deptcd,DeptName)
    and one logical table which contain both column Header (divncd,deptcd)
    and fact table detail where one measure column(empcd) using aggregation count on it.
    so i want to create levelbased hierarchy like this.
    DivnName
              |------DeptName
    which are come from(Division_Mst,Department_Mst) .
    so user can see no of employees division wise and drill down to Department wise.
    How can i achieved this?
    thanks
    Manish

    Check out Shay's blog https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-fora
    Timo

Maybe you are looking for