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

Similar Messages

  • Powerpivot excel pivot-tables with multiple rows (problem expand / collapse)

    Hello, 
    I made a pivot table with powerpivot so I get kind of data: 
    The problem I have is that when I reduced the city of Bordeaux for example, given this city are reduced both that really interests me as the other non-company (all cities Bordeaux are reduced). 
    I would like to know how to get it is there that the city which interests me is reduced?

    Hi,
    As I have no idea of your PowerPivot data. And I have a litter confused about 
    'the city which interests me is reduced' .
    Did you want to get the city whose volume(maybe sales volume) is reduced than last year ?
    If so,I suggest you create a calculated column in PowerPivot to get the YTD of previous year using DAX. then in pivot table you can use this dimension to do a filter.
    http://www.powerpivotblog.nl/get-the-ytd-of-same-period-last-year-using-dax/
    If I misunderstand you, please let me know. And if it is convenient for you, please share your workbook here.
    Wind Zhang
    TechNet Community Support

  • Pivot Tables in BI Publisher

    When including multiple Criteria in the "Rows" section of Pivot Table we get a desired format of Pivot Table in BI Analytics Answers. However, when creating a Pivot Table in a BI Publisher Template, Adding multiple measures in "Rows" results in the creation of duplicate rows.
    For example, the desired format is as follows:
    https://docs.google.com/spreadsheet/ccc?key=0AisK8m4TPhzKdDMzeDhfUjBZNTF5NWhleEEtX3piLXc&hl=en_US#gid=0
    this appears in BI Analytics Answers.
    However, when this table is made in BI Publisher Template, the format is as follows:
    https://docs.google.com/spreadsheet/ccc?key=0AisK8m4TPhzKdFlDQjBGU0NORWltNXp3STE1WTJZUVE&hl=en_US#gid=0
    Please help on how to obtain a pivot table in BI Publisher in the desired format.
    Regards

    While making Pivot Tables in RTF, make the rows "inline" rather than "outline".

  • Add additional DESC column at right side of pivot table in bi publisher

    ARABIC DESC
    India
    UAE
    Total
    English DESC
    QUANT_DECIMAL
    VALUE_DHS
    QUANT_DECIMAL
    VALUE_DHS
    QUANT_DECIMAL
    VALUE_DHS
    0
    0
    0
    0
    0
    0
    اجر
    4
    4
    23
    5619
    27
    5623
    ABC
    اجر
    0
    0
    10
    3510
    10
    3510
    CDF
    ملابس
    0
    0
    14
    772
    14
    772
    XYX
    جالية
    0
    0
    25
    2020
    25
    2020
    EJB
    Total
    4
    4
    72
    11921
    76
    11925
    please help me to add another column at right side of pivot table as marked in blue.
    1st column indicates in arabic desc and my client want english desc at right side of pivot table
    country is group by as INdia and UAE.
    Please help me to display the above report in pivot table in BI Publisher;
    Thanks
    Naveen

    Naveen,
    Do you have that column in the database?
    Thanks,
    Sasi Nagireddy..

  • Disabling auto sort of rows for Pivot Tables in BI Publisher

    is there a way to avoid the Pivot table in BI Publisher from sorting your data and just display the rows in the order retured from the data model ? By default it is sorting the data in asc order. Thanks !

    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]

  • Pivot table with variables columns

    I need a helo to pivot table with variable columns,
    I have a pivot table :
    SELECT a.*
    FROM (SELECT codigo_aluno,nome_aluno , id_curso,dia FROM c_frequencia where dia like '201308%') PIVOT (sum(null)   FOR dia IN ('20130805' ,'20130812','20130819','20130826')) a
    but I need to run the select with values for dia , getting from a other table :
    SELECT a.*
    FROM (SELECT codigo_aluno,nome_aluno , id_curso,dia FROM c_frequencia where dia like '201308%') PIVOT (sum(null)   FOR dia IN (
    select dia from v_dia_mes )) a
    thank you

    The correct answer should be "Use the Pivoted Report Region Plugin".
    But, as far as I know, nobody has created/posted that type of APEX plugin.
    You may have to use a Basic Report (not an IR) so that you can use "Function returning SELECT" for your Source.
    You would need two functions:
    One that dynamically generates the Column Names
    One that dynamically generates the SELECT statement
    These should be in a PL/SQL Package so that the later can call the former to ensure that the column data matches the column names.
    i.e. -- no 'SELECT *'
    MK

  • Drill Down in Pivot Table with item on page level

    Hi,
    I've got a pivot table with Chart next to it. The chart is a separate view, I did not use the 'Chart pivoted results' option.
    My pivot table has one Page Level item being the Month Name.
    I now have the strange behavior that drilling down on the Pivot table elements gives me No Results as my filter would be too restrictive. The problem is with the 'Month Name'. Removing this item from the filter shows the correct data. When I use the chart next to my data to do the drilling I encounter no problems. This is because this way the restriction on the month name is not added when drilling.
    Has anybody encountered this behavior before and knows of a way to solve this.
    Thanks for your advice,
    Kris

    My query looks like this :
    SELECT TO_NUMBER (TO_CHAR (t1601.datum_prestatie, 'MM'), '99') AS c3,
    t1584.description AS c4, t1497.project_group AS c5,
    t1497.project_desc AS c6, t1497.project_code AS c7,
    CONCAT (CONCAT (t2241.firstname, ' '), t2241.lastname) AS c8,
    t2254.employee_number AS c9, t1601.duur AS c11,
    t1601.datum_prestatie AS c12
    FROM t_projects t1497 /* Dim_PROJECTS */,
    t_organization t1579 /* DimX_ORGANIZATION_Project */,
    t_organization t1584 /* DimX_ORGANIZATION_Project_Parent */,
    t_employees t2241 /* DimA_EMPLOYEE_Prestatie */,
    t_prestaties t2254 /* DimA_PRESTATIE_Project */,
    t_prestaties t1601 /* Fact_PRESTATIES */
    WHERE ( t1497.business_domain_code = t1579.department_code
    AND t1497.project_code = t1601.project_code
    AND t1497.project_code = t2254.project_code
    AND t1579.parent_department = t1584.department_code
    AND t2241.employee_number = t2254.employee_number
    AND t1584.description = 'Specialized Technologies'
    AND t1497.project_group = 'SUPP AP TM'
    AND TO_NUMBER (TO_CHAR (t1601.datum_prestatie, 'MM'), '99') = 3
    The last row being a check on the month number.
    At the same time in OBIEE I get this :
    No Results
         The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
         Divisie is equal to Specialized Technologies
    and      Month is equal to 3
    and      Project Group is equal to SUPP AP TM
    and      Month Name is equal to Mar
    The physical query doesn't even show the restriction on Month Name which makes it even more spooky...

  • Excel Pivot Table with Date Hierarchies - query performance degradation

    For the sake of this explanation, I’m going to try and keep it simple. Slicing the data by additional dimensions only makes the issue worse. I’ll keep this description to one fact table and three dimensions. Also, I’m fairly new to SSAS Tabular; I’ve worked
    with SSAS Multidimensional in the past.
    We’ve got a fact table that keeps track of bill pay payments made over time. Currently, we only have about six months of data, with the fact row count at just under 900,000 rows. The grain is daily.
    There is an Account dimension (approx. 460,000 rows), with details about the individual making a payment.
    There is a Payment Category dimension (approx.. 35,000 rows), which essentially groups various Payees into groups which we like to report on: Automobile Loan, Mortgage, Insurance, etc.
    There is the requisite Date dimension  (exactly 62093 rows-more days than we need?), which allows visibility as to what is being paid when.
    Using this DW model, I’ve created a SSAS BISM Tabular model, from which Excel 2010 is ultimately used to perform some analysis, using Pivot Tables. In the tabular model, for easier navigation (doing what I’ve always done in SSAS MultiDimensional), I’ve created
    several Date Hierarchies, Year-Month, Year-Quarter-Month, etc.
    There are currently only two measures defined in the Tabular model: one for the “Sum of PaymentAmount”; one for the “PaymentsProcessed”.
    OK, in Excel 2010, using a Pivot Table, drag the “Sum of PaymentAmount” measure to the Values section, next to/under the PivotTable Field List. Not too exciting, just the grand total of all Payments, for all time.
    Drag the “YearMonth” hierarchy (from the Date dimension) to the “Column Labels” section. After expanding the year hierarchy to see the months, now the totals are for each of the months, for which we have data, for June through November, 2013.
    Drag the “PaymentCategory” (from the Payment Categories dimension) to the “Report Filter” section. Filter accordingly: We just want to see the monthly totals for “Automobile Loans”.
    Now, some details. Drag the “AccountSK” (hiding the actual account numbers) to the “Row Labels” section. This shows all accounts that have made Automobile Loan payments over the last six months, showing the actual payment amounts.
    So far, so good. Remember, I’m using a Date Hierarchy here, in this case “YearMonth”
    Now, if any of the other attributes on the Account dimension table, say “CreditScore”, or “LongName”, are subsequently dragged over to the “Row Lables” section, under the “AccountSK”, the results will never come back, before timing out or by giving up and
    pressing ESCape!
    If this exact scenario is done by removing the Date Hierarchy, “YearMonth” from the “Column Labels” and replace it with “Year” and “MonthName” attributes from the Date dimension, these fields not being in any sort of hierarchy, adding an additional “Account”
    attribute does not cause any substantial delay.
    What I’m trying to find out is why is this happening? Is there anything I can do as a work around, other than what I’ve done by not using a Date Hierarchy? Is this a known issue with DAX and the query conversion to MDX? Something else?
    I’ve done a SQL Profiler trace, but I’m not sure at this point what it all means. In the MDX query there is a CrossJoin involved. There are also numerous VertiPaq Scans which seems to be going through each and every AccountSK in the Account dimension, not
    just the ones filtered, to get an additional attribute (About 3,600 accounts which are “Automobile Loan” payments.).
    Any thoughts?
    Thanks! Happy Holidays!
    AAO

    Thanks for your reply Marco. I've been reading your book, too, getting into Tabular.
    I've set up the Excel Pivot Table using either the Year/MonthName levels, or the YearMonth hierarchy and then adding the additional attribute for the CreditScore.
    Incidentally, when using the YearMonth hierarchy and adding the CreditScore, all is well, if the Year has not been "opened". When this is done, I suspect the same thing is going on.
    From SQL Profiler, each of the individual MDX queries below (formatted a bit for readability).
    Thanks!
    // MDX query using separate Year and MonthName levels, NO hierarchy.
    SELECT 
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    CrossJoin(
    {[Date].[Year].[All],[Date].[Year].[Year].AllMembers}, 
    {([Date].[MonthName].[All])}
    ,[Date].[Year].[Year].AllMembers, [Date].[MonthName]
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON COLUMNS, 
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    CrossJoin(
    {[Accounts].[AccountSK].[All],[Accounts].[AccountSK].[AccountSK].AllMembers}, 
    {([Accounts].[CreditScore].[All])}
    ,[Accounts].[AccountSK].[AccountSK].AllMembers, [Accounts].[CreditScore]
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON ROWS  
    FROM [PscuPrototype] 
    WHERE ([PaymentCategories].[PaymentCategory].&[Automobile Loan],[Measures].[Sum of PaymentAmount]) 
    CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
    // MDX query using separate YearMonth hierarchy (Year, MonthName).
    SELECT 
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    {{DrilldownLevel({[Date].[YearMonth].[All]},,,INCLUDE_CALC_MEMBERS)}}, 
    {[Date].[YearMonth].[Year].&[2013]},,,INCLUDE_CALC_MEMBERS
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON COLUMNS,
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    CrossJoin(
    {[Accounts].[AccountSK].[All],[Accounts].[AccountSK].[AccountSK].AllMembers}, 
    {([Accounts].[CreditScore].[All])}
    ,[Accounts].[AccountSK].[AccountSK].AllMembers, [Accounts].[CreditScore]
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON ROWS  
    FROM [PscuPrototype] 
    WHERE ([PaymentCategories].[PaymentCategory].&[Automobile Loan],[Measures].[Sum of PaymentAmount]) 
    CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
    AAO

  • 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

  • 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

  • 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

  • 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

  • Pivot tables with column selector - navigation?

    Hi
    Just hoping someone can help. We maintain a large number of dashboards and would like to move to streamlining them by combining reports using column selectors. However when we have pivot table reports where the column selector on the rows are selectable on up to 5 different fields, but the pivot columns are split by one specific field, the navigation reports won't filter on the column headings. It will filter on the rows which can change between the various column selector options.
    For example we have:
    5 columns (5 types of application)
    The rows are either: advisor, status of app, month received, age of app, world region etc...
    The fact is # of apps
    This navigates to a list report which should prompt off the various fields in the column selector and the pivot table column headings (all are prompted) but it just ignores the type of application field and only prompts off the rows.
    Is it possible to have it prompting off both like a normal pivot table does?
    Sorry if that's not clear.
    Regards
    Edited by: Nefertare on 15-Jun-2011 05:47

    user12104265 wrote:
    ''||Entity."Ent"||''No need of " before & after Report2
    FYI: goto col properties -> data format -> override -> select 'HTML' from LOV
    Regards,
    *Raghu*

Maybe you are looking for