Calculated rows

Hi All,
I am trying to create a simple report in obiee 11g dashboard. I created the National column through selection steps ( Region1+ Region2 + Region3).I am thinking how to create the calculated measures ( B%). Do we need to create this measure in rpd? or is it possible to create this calculation in obiee 11g answers.The new calculated item can be created from one particular table column only like region or type.
Thanks,
Uday
Type Region1 Region 2 Region 3 National
A 40     10          30     80
B 10     20          40     70
Total 50     30          70     150
Regional Total % of 50/150 30/150 70/150
Edited by: 929521 on Jan 8, 2013 11:46 AM
Edited by: 929521 on Jan 8, 2013 11:46 AM
Edited by: 929521 on Jan 8, 2013 1:47 PM
Edited by: 929521 on Jan 8, 2013 2:01 PM

Hi Anitha,
I am very much grateful for your reply.
Do we apply this formula in answers in the new columns. I already created the emp_count measure in rpd.
filter ("emp"."emp_count using "Region"."Region_name" in ('r1','r2','r3')), (filter ("emp"."emp_count using "Region"."Region_name" in ('r1','r2','r3'))*100)/sum(filter ("emp"."emp_count using "Region"."Region_name" in ('r1','r2','r3'))
{code}
Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Java.sql.SQLException: while calculating row count: Unexpected exception :

    I am working with JDBC that is connected to MS Access 2003 file.
    I wrote and tested in MS Access following query and all it is working well. If I write this query and execute it is working well.
    pstm = DBConnect.prepareStatement(
    "SELECT Parameter.Name, Parameter.id FROM " +
    "(ParameterGroupMember INNER JOIN ApplicationReadsParameter ON " +
    "ParameterGroupMember.Member_Parameter_id = ApplicationReadsParameter.Parameter_id)" +
    "INNER JOIN Parameter ON ApplicationReadsParameter.Parameter_id = Parameter.id " +
    "WHERE (ParameterGroupMember.Group_Parameter_id=40) " +
    "UNION ALL SELECT Parameter.Name, Parameter.id FROM " +
    "Parameter INNER JOIN ApplicationReadsParameter ON " +
    "ApplicationReadsParameter.Parameter_id=Parameter.id WHERE (Parameter.id=40); ");
    rs = pstm.executeQuery();
    When I use code, that sets parameters in the statement it is firing following exception
    java.sql.SQLException: while calculating row count: Unexpected exception : 1
    at sun.jdbc.odbc.JdbcOdbcResultSet.parameterQuery(JdbcOdbcResultSet.java:6417)
    at sun.jdbc.odbc.JdbcOdbcResultSet.calculateRowCount(JdbcOdbcResultSet.java:6336)
    at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdbcResultSet.java:155)
    at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcOdbcStatement.java:424)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:93)
    pstm = DBConnect.prepareStatement(
    "SELECT Parameter.Name, Parameter.id FROM " +
    "(ParameterGroupMember INNER JOIN ApplicationReadsParameter ON " +
    "ParameterGroupMember.Member_Parameter_id = ApplicationReadsParameter.Parameter_id)" +
    "INNER JOIN Parameter ON ApplicationReadsParameter.Parameter_id = Parameter.id " +
    "WHERE (ParameterGroupMember.Group_Parameter_id=?) " +
    "UNION ALL SELECT Parameter.Name, Parameter.id FROM " +
    "Parameter INNER JOIN ApplicationReadsParameter ON " +
    "ApplicationReadsParameter.Parameter_id=Parameter.id WHERE (Parameter.id=?); ");
    pstm.setInt(1, 40);
    pstm.setInt(2, 40);
    rs = pstm.executeQuery();
    Further I found that the problem is with the setting of the second parameter in the statement. Is there different way how to set the second parameter if union is used?
    Thanks and regards,
    Jan

    Jan.Hv wrote:
    I am working with JDBC that is connected to MS Access 2003 file.
    Use code tags when you post code.
    I wrote and tested in MS Access following query and all it is working well. You mean it works in MS Access. Not that it works in java.
    >
    pstm = DBConnect.prepareStatement(
    "SELECT Parameter.Name, Parameter.id FROM " +
    "(ParameterGroupMember INNER JOIN ApplicationReadsParameter ON " +I STRONGLY suggest that rather than putting spaces at the end of each part put it at the beginning. It makes it much easier to get it right.
    I also suggest formatting the code. There are various ways.
            // Wrong
            String sql = "select x, y z "
                             + "from table1 t1, idtable idt"
                             + "where t1.tim=idt.tim "
                             +  "and t1.book = idt.book";
            // Right (spaces) - one way to format
            String sql = "select"
                             + "         x, y z"
                             + " from table1 t1, idtable idt"
                             + " where"
                             + "          t1.tim=idt.tim"
                             + "          and t1.book = idt.book";Your code is in fact missing a space. No idea if that is a problem or not.
    Remove the semicolon from the end.
    PRINT the sql before you use it, copy/paste and use that string in MS Access (replace the ?) to see if it work.
    Further I found that the problem is with the setting of the second parameter in the statement. Is there different way how to set the second parameter if union is used?The MS Access ODBC driver isn't really great for actually reporting errors correctly. So usually any error means something is wrong and it is up to you to figure out the exact problem.

  • Auto calculation row, work around for mixed calc methods?

    I have a problem with an auto calculation row. One of the columns in the report is a percentage so I want the total row to calculate using a column formula, instead of the Auto Calculation Row calculation method setting.
    We're using the auto calculation row as a way to churn through many Entity members, displaying financial totals for 4 Account category groupings for each Entity member.
    For each Entity, those 4 rows display the data they're supposed to, and the auto calc row generates the 'Total', which is the calculation method it is set to do.  With 2 columns in play, it works like this:
    A1 through A4 display data, and are summarised in [A][Total Row]
    B1 through B4 display data, and are summarized in [B][Total Row]
    An updated requirement for a % column came up, and now we're trying to get that to display properly in column [C]. 
    [C] is created as a formula column
    The formula is set to [B]/[A], and formatted to display 0.01 precision
    We expect each row to use this formula, and for rows 1 through 4 it does.
    However, for [Total Row], it does not calculate [B]/[A]... instead it calculates [C][1]+[C][2]+[C][3]+[C][4]
    This makes sense in terms of what the 'auto calculation row' is designed to do, or as to how it is explained in FR documentation.
    The calculation method is set to 'Total', so it just adds up all of the data.
    But we're looking for a combination of settings or a work-around that permits the Auto Calculation row feature to be used with mixed calculations as I've described.
    We're on FR 11.1.2.362
    Thanks
    Troy

    gofer wrote:
    Hi osgood, thanks for getting back, thanks for that suggestion, I think that's a nice way of going about it. The form is working great with the calculation but I still can't get it to work on the reply email back to the site.
    This is what I've used in the PHP form;
    $freight = $_POST['PROD_freight_1'];
    $totalcost = ($chardonnay_2011_bottles * 20 + $chardonnay_2011_cases * 204) + ($pino_gris_2011_bottles * 21 + $pino_gris_2011_cases * 228) + ($sauvigon_blanc_2011_bottles * 20 + $sauvigon_blanc_2011_cases * 204) + ($riesling_2012_bottles * 20 + $riesling_2012_cases * 204) + ($pinot_noir_2009_bottles * 25 + $pinot_noir_2009_cases * 250) + ($PROD_freight_1);
    This the code for the reply back to the site;
      \n selection \n $PROD_freight_1
    Cheers
    The variable should be:
    + ($freight);
    and
      \n selection \n $freight
    Does that work?

  • Easy Cost Planning: Calculation Row (Business Process) in Cost Model Derivation Rule

    Hi All,
    The Requirement:
    Using the Cost Model I am able to do up to Sub-Total Value.  I tried with Calculation Row (Business Process) in the Cost Model Derivation Rule, but could not succeed. 
    I tried with Base Planning Object, but the formulas are different for other scenarios.  Which require 5 to 6 Base Planning Objects are required to be created to get the total amount for a single line item, in the construction project there will be more than 10,000 line items and it is very difficult to maintain the data and also it is time consuming.
    Can you suggest me, how to map the requirement?
    Best Regards,
    K. Rajendra Prasad Rao

    You need to check the following for the material cost to appear in network costing:
    1. Check whether costing variant is assigned to the network or not.
    2. Check whether costing relevancy indicator is checked in material component assigned to the network.
    3.  If costing variant exists, check the valuation variant and strategy sequence for material valuation.
    4. Go to the material master and see whether price is mentioned  or not.
    I would suggest you to use Network costing, Also note network costing are recorded in Co version '0' so if you have maintained your ECP for '0' version, there is a chance of both the costing getting added up.
    Edited by: Ahmed Rifaee on Mar 28, 2010 10:10 PM

  • Show Calculated Row/Field on Chart

    I have a table which shows 3 rows and 2 columns and a sum row at the end. I have turned it to a chart I find the 3 rows on x-axis. My question is it possible to show the sum/ calculated row also as an element on the charts x-axis.
    Example
    Col1----
    > Col2
    Gross Sales----
    > 4
    Discount----
    > 1
    Return----
    > 1
    Sum (Net Sales)----> 2 (4-1-1)
    When I turn this table to a chart I get the 3 rows (gross sales, disc, ret) on the x-axis. Is it possible to get the 4th calculated row on the x-axis of the chart .?
    Thanks & Regards
    Ishaq
    Edited by: Ishaq Baig on Jun 21, 2010 4:34 PM

    One trick that has worked well for me in the past is to create a union query with a dummy value for the Total. So you get this:
    select Y, sum(Z) from tables
    union
    select 'Total', sum(z) from tables
    This creates data in four rows, rather that treating your total as a sum it becomes part of the data. Then you can chart it.

  • Calculating Row wise %

    Hi Experts,
    I am unable to find a solution on calculating row wise percentage.
    My requirement goes like this
    CUSTOMER---------VALUE----------------PERCENT
    CUSTA------------------7--------------------(7/21)*100
    CUSTB------------------5--------------------(5/21)*100
    CUSTC------------------9--------------------(9/21)*100
    TOTAL-----------------21
    I am unable to do calculate the PERCENT.
    I am using a pivot view...
    Please let me know your views on how to achieve this...
    Appreciate your immediate response...
    -Thanks!

    Hello,
    go to pivot view,
    Duplicate the VALUE column in measures block. Now you find 2 columns with the same name.
    And for duplicated column (the 2nd one) go to More Options.. > Show Data As > Percent of > Column.
    You find automatically it calculates the % value...
    Ad if you want you can change the 2nd column heading to precise manner.

  • Abap WD ALV: Event for calculation row?

    Hi,
    i have one Abap WebDynpro ALV Component. It is possible to register an event (ON_CLICK) for Cells which are an Link_to_action for example.
    My Table:
    ID | Group | Var
    A1 | Test | 4
    A2 | Test | 5
    A3 | Dev | 4
    A4 | Dev | 6
    If i create the ON_CLICK event for the last row, which is then a link_to_action column, i can click on the numbers and the event is triggered
    Now i have a table which uses the ALV Calculation feature and the Intermediate Results for the grouping.
    My new output view is:
    ID | Group | Var
    ->---Test    9
      A1 | Test | 4
      A2 | Test | 5
    ->---Dev  10
      A3 | Dev | 4
      A4 | Dev | 6
    (It calculates the sum of the vars and groups it by the second column)
    Now I need an Event if someone clicks on the numbers in the Var Row of the intermediate results row (here: 9 and 10). How can i do this?
    If this is not possible, how can i register an event if someone expands or collapses a intermediate result row?
    Kind Regards,
    Thomas
    Edited by: Thomas Rodemer on Oct 9, 2008 3:30 PM
    Edited by: Thomas Rodemer on Oct 9, 2008 3:30 PM

    Hi,
    Is the DDLBK is filled with support function? if yes then look if you can enhance the method by post method exit etc..
    Thanks,
    Chandra

  • Can we put calculated row in Chart

    Hi experts
    we have calculated one calculated item in pivot view. Now we want to show this calculated item in our chart. So how can we achieve it.
    Thanks in advance
    Regards
    Frnds

    Hi...
    You need to close the threads if answered, for future reference to everybody

  • Sum calculated rows and columns

    I have written a SQL report to count the number of offenses by levels of disciplinary actions.  Now I want to total
    the counts for the rows and columns.  How do I do this? Below is my code.  It produces column headings with counts.  Ie.
    Offense Description   Level I  Level II  Susps Terms
    2 Minor Violations      0         1       
    0    0  
    SELECT
    UPPER(DESCRIPTION) as OFFENSE,
    SUM(CASE
    WHEN OUTCOME = 'LEVEL I'
    THEN 1
    ELSE 0
    END) as LEVELI,
    SUM(CASE
    WHEN OUTCOME = 'LEVEL II'
    THEN 1
    ELSE 0
    END) as LEVELII,
    SUM(CASE
    WHEN OUTCOME = 'SUSPEND'
    THEN 1
    ELSE 0
    END) as SUSPEND,
    SUM(CASE
    WHEN OUTCOME = 'TERM'
    THEN 1
    ELSE 0
    END) as TERM
    FROM
    PAGRDI
    Where
    R_DATE >= '2014-01-01' and R_DATE <= '2014-01-31'
    Group by
    DESCRIPTION
    Order by
    OFFENSE

    Hi Wildcatgirl,
    According to your description, you have used T-SQL to get the counts for different OUTCOME. Now you want to get the total for each OFFENSE and OUTCOME. Right?
    In this scenario, since you have already get those counts with T-SQL query, so in your dataset it will have data fields below: OFFENSE, LevelI, LevelII, SUSPEND, TERM. We just need to drag these data fields into a table, add a column at the end of the table
    and use expression to sum the counts for different OUTCOME. Then we can add a total for the detail row. We have tested this scenario in our local environment. Here are screenshots for your reference:
    Reference:
    Tables (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • 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

  • If / then calculation based on dropdown list value in repeating row

    Hello
    I am new to Livecycle. I have created a repeating row in a form. The last field in the repeating row is a numeric field that = the product of two previous fields in the row (NumericField1 *  Numeric Field2). I also have a DropDownList1 near the beginning of the row (third column) that contains variable categories for that calculation row, e.g. Advertising, Office Supplies, Entertainment. I would like to create numeric fields in the form (perhaps in a footer row?) that contain sums of the subtotals of each row, depending on the category selected in DropDownList1. In other words I need to create a subtotal field for all calculations beginning with the category of Advertising, another for Office Supplies, another for Entertainment.
    From what I understand I need to list the variables first, then create an if/then calculation but I am not sure about the steps involved in creating the script.
    df

    NumericField3 is the name of the field containing the product of NumericField1 * NumericField2. I have created a NumericField8 in the form with the following calculation in FormCalc:
    if(Table1.Row.DropDownList1.rawValue == "ADVERTISING") then
    sum(Table1.Row[*].NumericField3)
    end if
    That's not helping. I think I need to designate variables before the if/then script, yes? Would I need to use a resolve command, a getfield command, or . . .? Can anyone help?
    Thanks, in advance,
    df

  • Custom total rows in crosstab

    Hi,
    I would like some feedback as to whether the following is possible (or not) using BI Beans.
    Requirement Summary:
    To insert a number of custom calculation rows in a crosstab that are based on calculations of values in dimension-member rows.
    Requirement Detail:
    I have Income, Direct Expenses and Indirect Expenses as three dimension members on the ROW_EDGE axis of my crosstab. Note that these are not measures - they are categories of transactions appearing as dimension members at a certain level of a dimension hierarchy.
    I wish to insert three custom calculation rows at the bottom of the crosstab:
    (1) Income - Direct Expenses
    (2) Direct Expenses + Indirect Expenses
    (3) Income - Direct Expenses - Indirect Expenses
    I have looked at the TotalStep class, but it looks like this will only perform aggregate functions across all dimension members rather than selected ones. It also looks like only one TotalStep is allowed for each query.
    Any help is very much appreciated.
    Many thanks,
    Peter

    I have similar requirements in my project. I have used models in Analytic Workspace. It will work. However it depends on whether you are using ROLAP or MOLAP. If you have not gone into that area, you have to be prepared to do a bit of reading.
    Wilson

  • Auto calculation issue

    Hi,
    I have a problem with an auto calculation row. One of the columns in the report is a percentage so I don't want the calculation to sum but to calculate with the column formula. Is it possible to achive this?
    I'm using FR 9.3.1.
    Thanks

    Please try to change the formula option used at that cross cell to use the column formula.
    Try this
    Thanks

  • Calculate row in report editor

    Hi everyone,<BR><BR>I am trying to create a calculation in Hyperion Essbase Report Editor by using { CALCULATE ROW "newRow" [ columnNo ] = expression } but it is not working. What I try to do is for example from Sample: Basic database I am trying to create a new row called "new total" which is total of colas + fruit soda. so I put { CALCULATE ROW "new total" = colas + fruit soda } and it didn't work. Can anybody tell me how can I make this work?<BR>Thanks in advance.<BR>

    It has been a long time since I did this, but check out {PRINTROW}. There are a number of interrelated commands for calculating and printing new rows. From the tech ref:<BR><BR>{ PRINTROW "rowName" }<BR><BR>"rowName" Character string, enclosed by quotation marks, which designates a previously declared calculated row. When the command is issued, the designated row is printed immediately in the report. <BR>

  • SSRS 2008 - Matrix subtotals in rows (like in Excel)

    Hello guys,
    I have to develop report in following structure:
    My best shot so far was creating matrix, but I don't know how to add the subtotal rows which are calculated as one row values divided by another.
    Source data snippet:
    Row Number
    Column 1
    Column 2
    21
    1
    2
    22
    3
    2
    23
    6
    6
    24
    9
    6
    Desired output in report:
    Row Number
    Column 1
    Column 2
    21
    1
    2
    22
    3
    2
    23
    6
    6
    Row no. 23/Row no. 22
    2
    3
    24
    9
    6
    Row no. 24/Row no. 22
    3
    3
    I was able to create matrix with Row Number but cannot figure out how to add rows with subtotals as showed above.
    Any suggestion would be greatly apprecited.
    Roy

    Hi Roy,
    According to your description, you want to create some calculated rows, which stores the previous row value divided by a specified row value.
    In Reporting Service, we can use matrix to group data by multiple fields or expressions in row and column groups. But it’s impossible to add a data row directly between two row groups. In this scenario, it’s also impossible to get the value of a specific
    data row. So we can never make a data row divided by another data row. By the way, even you could add a row, when you use rownumber() function, the row number will increase with the added row. So your requirement can’t be achieved currently.
    Reference:
    Matrices (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

Maybe you are looking for

  • Installing office 365 Home edition on a different hard drive than windows (C:\)

    Hi everyone. I recently got an invite from a familymember to install office 365, which is great. What's not so great is that it is not possible to customize the installation and install office on a different drive than windows. - I am using Windows 8

  • FTP Adapter ORABPEL-11407 Connection closed error.

    Hiiii friends I have configured the connection factory for FTP Adapter (not defined any connection pool). My BPEL process poll the ftp location to get the file. But no bpel instance is getting generated and domain.log shows the following error. Can y

  • Screen Saver System Preferences layout issue on Yosemite

    Hi, After a clean install (first formatted and installed from a clean bootable USB-stick (so a really clean install)), the Screen Saver System Preferences shows a glitch after activating the Photos App (I think). I checked every step in the process a

  • File Batching in OSB

    Hi , I have a requirement in OSB project where I need to merge files before sending it to target application. For some reason we prefer not to maintain either queue/directory/file server to save incoming files. Target application will poll the final

  • [basiljs] set text properties of overflow text

    When i change the pointSize or any other propertie then only the text that is visible get's changed. The text in the overflow is not. How can i effect all text? #includepath "~/Documents/;%USERPROFILE%Documents"; #include "basiljs/bundle/basil.js"; f