Accessing the field values in different fields for calculation

Hi,
I am creating a report in which I have used breaks for grouping the  customers by their category. I have used summary on the amount field to calculate the sum in the individual category and also for total amount.
Now, I also want to add an column which could display the percentages of individual contributions.
So, its like I have to write a query accessing the total percentage, categorized percentage and individual amount.
My question: How can I access the various fields values in the query of some other field specifically sum and total sum( because it shows the sum([Amount]) for category sum and total sum both)
-BOBJuser

Hmmm, I assume you are talking about WebIntelligence here...
Ok, so let's go: you can access every "object" in the report simply by it's name. Every cell contains either a constant value (e.g. some text) or a formula, the simplest one can be just the value of an "object" from the query.
There is a formula bar on top which you can activate, where you can easily see the content of a specific cell and also copy/paste the formula from the cell, as well as access all the built-in functions.
WebI has a built-in calculator which works very similar to a "micro" olap engine, so you can access every sort of aggregate (of a measure) via a correspondig formula, irrelevant in which cell you are using it.
Nevertheless, there is a "computation context" which depends on the place where you put the formula, e.g. summary row, detail row, etc.
for more info: see the manual )
hth, Walter

Similar Messages

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • How to Check the total value of a field

    Hi,
    I want to check the total value of a field (this total is obtain by using property of that field thru personalization).
    that means , in a table 3 columns are there (col 1, col2 & col3). I personalized the total property as true for col3.
    now i'm getting the total for that field.
    I want to check that total whether it crossed 100 or not.
    How to do this?
    Thanks in advance,
    SAN

    Hi San,
    You can achieve by using OATotalRowBean, search for OATotalRowBean in this forum you should be able to get some sample code.
    public class OATotalRowBean
    extends TotalRowBean
    implements OAWebBean, OAWebBeanConstants
    A special row rendered at the bottom of a table which lets users see totals for columns which are designated for summing.
    Note The total is calculated and displayed only for visible rows.
    When you indicate that you want to total one or more columns, the OA Framework creates an OATotalRowBean and designates it as the columnFooter named child of the OATableBean. If the OATableBean is also configured to insert rows (so it has an "Add Another Row" button), then the total bean becomes an indexed child of the add table row bean (see OAAddTableRowBean), which the OA Framework in turn designates as the table's columnFooter object.
    If you need to access the table's column footer object for any reason, call the OATableBean's getColumnFooter() method. If row insertions are enabled, this method returns an OAAddTableRowBean; otherwise it returns an OATableRowBean.
    For detailed information about creating and working with tables, see OA Framework Developer Guide: Tables.
    With regards,
    Kali.
    OSSi.

  • Can JVM security policy be modified to access field values of private field

    Can JVM security policy be modified to access field values of "private" field in a Class?

    See http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html#ReflectPermission.
    Note that you will have to use reflection to access the fields once the security policy allows you to supress the access controls.
    Chuck

  • Show Field Values if other Field Value Different

    Hey,
    I am using TOAD for Oracle 10.5. There is a select statement that is not populating requested results.
    Data:
    JOB                    SAL
    PRESIDENT             5000
    MANAGER               2850
    MANAGER               2450
    MANAGER               2975
    ANALYST               3000
    ANALYST               3000
    CLERK                 800
    CLERK                 1100
    CLERK                 950
    CLERK                 1300
    SALESMAN             1600
    SALESMAN             1250
    SALESMAN             1250
    SALESMAN             1500Select Statement
    SELECT JOB, SAL
       FROM  EMP
       WHERE JOB IN (
                   SELECT JOB
                    FROM EMP
                    GROUP BY JOB
                    HAVING COUNT(*) > 1)
                    ORDER BY JOB;Once select statement executed only JOB = PRESIDENT record is removed, not results needed.
    JOB                    SAL
    MANAGER               2850
    MANAGER               2450
    MANAGER               2975
    ANALYST               3000
    ANALYST               3000
    CLERK                 800
    CLERK                 1100
    CLERK                 950
    CLERK                 1300
    SALESMAN             1600
    SALESMAN             1250
    SALESMAN             1250
    SALESMAN             1500Correct Data, JOB values PRESIDENT and ANALYST records should not appear.
    PRESIDENT does not appear but the ANALYST value shows because the statement
    is producing duplicate JOB values. I would like to show records only if the JOB values have
    different SAL values, not duplicate JOB values. Only if the SAL value is different based on JOB.
    JOB                    SAL
    MANAGER               2850
    MANAGER               2450
    MANAGER               2975
    CLERK                 800
    CLERK                 1100
    CLERK                 950
    CLERK                 1300
    SALESMAN             1600
    SALESMAN             1250
    SALESMAN             1250
    SALESMAN             1500I hope someone can help me out on this one.

    Hi,
    COUNT (*) tells how many rows are in a group. It has nothing to do with any values in any columns.
    I think you want COUNT (DISTINCT sal) in this case. It will tell you how many different values of sal are in the group.
    SELECT JOB, SAL
       FROM  EMP
       WHERE JOB IN (
                    SELECT JOB
                    FROM EMP
                    GROUP BY JOB
                    HAVING COUNT (DISTINCT sal) > 1          -- Changed
       ORDER BY JOB;Edited by: Frank Kulash on Dec 9, 2010 10:34 AM
    Added example.

  • Pass javascript field value to  ABAP field value

    Hi all,
          how can i Pass javascript field value to  ABAP field value  and utilise that value within layout.

    since you are new here, may i suggest you to search the forum, before posting a question. This has been discussed many times here.
    to set a js variable value to a ABAP variable value, you cannot do it on the client side, your page has to go for a server rountrip so that the value can be set into a ABAP variable.
    for this we generally follow the approach of setting the js variable value to a hidden html element (input type=hidden) and submit the form, and then in oninputprcessing retrieve the value from the form field and set it to a ABAP variable.
    Regards
    Raja

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • To get the count of records and able to access the column value in a single

    Hi
    Is there any way to get the number of records in the query and access the column values
    e.g
    select count(*)
    from
    (SELECT department, COUNT(*) as "Number of employees"
    FROM employees
    WHERE salary > 25000
    GROUP BY department ) a
    This wil only get the Count, if i want to access each row from the inline view how can i do that.

    Your question is not clear.
    Are you looking for total record count as well as count by department ?
    Something like this?
    SQL>
    SQL> with temp as
      2  (
      3  select 1 dept ,10000 sal from dual union
      4  select 1 dept ,25100 sal from dual union
      5  select 1 dept ,30000 sal from dual union
      6  select 1 dept ,40000 sal from dual union
      7  select 2 dept ,10000 sal from dual union
      8  select 2 dept ,25100 sal from dual union
      9  select 2 dept ,30000 sal from dual union
    10  select 2 dept ,40000 sal from dual )
    11  select count(*) over( partition by 1 ) total_count,dept,
    12  count(*) over(partition by dept) dept_cnt  from temp
    13  where sal>25000;
    TOTAL_COUNT       DEPT   DEPT_CNT
              6          1          3
              6          1          3
              6          1          3
              6          2          3
              6          2          3
              6          2          3
    6 rows selected
    SQL>

  • My ipod nano will turn on and play but the viewing screen goes out and I cannot access the information to select different playing options. Any suggestions?

    My ipod nano will turn on and play but the viewing screen will not come on and I cannot access the information to select different playing options. It glows white background light then goes dark for the entire time I am using it. Any suggestions?

    I had the same problem.  Someone here told me to make sure my earbuds were in securely.  Push until they click in place.  It solved the problem.  The music still plays even though the screen goes to sleep.  Hope this helps.

  • I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    This is most probably because the Periodicity input value has been configured as "Required" and no value has been input for it.
    Please enter a value and try to re-run Quick Pay.

  • My itunes library was on my PC.  About two years ago I switched it to my Seagate server/hardrive. (itunes-preferences-advanced-change library). Last summer (2012) I bought a macbook, which seems to access the seagate server hard drive fine for word docs,

    My itunes library was on my PC.  About two years ago I switched it to my Seagate server/hardrive. (itunes-preferences-advanced-change library). Last summer (2012) I bought a macbook, which seems to access the seagate server hard drive fine for word docs, excel spreadsheets,etc. It also seems to have started its own library which is not complete. My PC died this summer (I still have it though).
    Now when syncing any of the multiple devices (ipods,ipads, iphones) that we have with my mac book, itunes states that "an error occurred" or the "app cannot be found".  Itunes wants me to erase the device and sync with my macbook. The message "The iPhone “Renee’s iPhone” is synced with another iTunes library on “Renee PC”. Do you want to erase this iPhone and sync with this iTunes library? An iPhone can be synced with only one iTunes library at a time. Erasing and syncing replaces the contents of this iPhone with the contents of this iTunes library."appears.
    Any assistance would be greatly appreciated.
    Renee

    u can give try to using external enclosre and backup ur files. I hope u will get files back. or using external enclosre with ur hdd boot into Linux and try to mount ur harddisk.
    there are multiple no of tutorial to mount apple partion in Linux.

  • After login but before I can access the internet I get a request for my login password so that - aosnotifyd - can access my login key chain. How can I get it to remember my password?

    After login but before I can access the internet I get a request for my login password so that - aosnotifyd - can access my login key chain. How can I get it to remember my password?

    Rephrase your question. Do you mean you keep getting login key chain errors?

  • When i try to convert from PDF to word it says "an error occurred while trying to access the system". I've paid for this what is going on?!

    When i try to convert from PDF to word it says "an error occurred while trying to access the system". I've paid for this what is going on?!

    Hi,
    I have the same problem. Here is the screenshot of the error and I am using Windows 7 and Adobe Reader XI version 11.0.10.

  • How to access the pre-delivered XI Integration Content for APO ,SCM or CRM

    Guys,
    Do anyone know how to access the pre-delivered XI Integration Content for APO ,SCM or CRM and load onto the XI server.
    Any inputs in this direction is appreciated.
    Thanks, -Vara.

    Hi VaraPrasad,
    you can try:
    1. https://websmp204.sap-ag.de/swdc
    2. Search for all Categories
    3. type: XI content
    then unpack and the easiest way is to import with the file system:
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/5e56006c17e748a68bb3843ed5aab8/content.htm
    and you have the content on your XI
    Regards,
    michal

  • How to Access the Return Value of a Function

    Hi,
    How do I access the return value when calling an Oracle function from .NET using Oracle.DataAccess.Client? The function returns an integer of 0, 1 or 99.
    Dim db_command_oracle As New OracleCommand()
    db_command_oracle.Connection = db_connection_oracle
    db_command_oracle.CommandType = CommandType.StoredProcedure
    db_command_oracle.CommandText = "swsarsi.import_appointments"
    Dim ret_value As New OracleParameter()
    ret_value.OracleDbType = OracleDbType.Int32
    ret_value.Direction = ParameterDirection.ReturnValue
    ret_value.Size = 2
    ret_value.OracleDbType = OracleDbType.Int32
    db_command_oracle.Parameters.Add(ret_value)
    Dim IN_student_id As New OracleParameter()
    IN_student_id.OracleDbType = OracleDbType.Varchar2
    IN_student_id.Direction = ParameterDirection.Input
    IN_student_id.Size = 10
    IN_student_id.Value = student_id
    db_command_oracle.Parameters.Add(IN_student_id)
    db_command_oracle.ExecuteNonQuery()
    messagebox.show(ret_value) ?????

    Your ODP.NET code looks correct. What error are you seeing?
    One thing that will definitely generate an error is that .NET message boxes require that strings be displayed. ret_value is a parameter object. You need to access its value and convert it to a string. At a minimum, you need to change that.

Maybe you are looking for