Aggregation displays wrong value

Hi,
OBIEE 11.1.1.5
I have 3 columns, Column1,Column2,column3
based on 3 columns,I have done agregation like below
a=column1*column3 (result comes correct)
b=column2*column3 (result comes correct)
c=a/b (result wrong)
Something like this i have used : (column1*column3)/(column2*column3)
can i know why it comes wrong

Bernhard,
I must correct what I said in the last post. The correct statement is: When a region is rendered, the items in that region obtain their values and those values are also copied to session state. They can be referenced on the page after that point. What is inconvenient is that after an automatic row fetch process has already executed, e.g., before header, you can't reference the associated items to obtain the fetched values until after the items are assigned values during the rendering step. That's what we hope to fix.
Thanks,
Scott

Similar Messages

  • Cost in document currency is displaying wrong values

    Hi Experts,
    We have observed for some of the documents in VF03, cost is coming wrong.
    Scenario :
    When we are going to VF03 screen Cost in document currency is some value, when we click on the material and go to condition tab and then come back to previous screen, Cost in document currency is some other value.
    For Ex : For Billing Document A, intially Cost - 1000 when we clikc on the material and go to condition table and then come back, then the cost - 500.Document type is Z document type. For only some documents we are getting this kind of error.
    Kindly help me on this.
    Thanks and Regards,
    Zakir Appas A

    Hi kavi,
    Purge your cache in rpd and try to see the grand total once again. For me data is displaying properly now.

  • Aggregation calculates wrong values

    Hi everyone,
    I have added a new view in the database which i connected in the physical layer in the repository. 3 keys and 1 value.
    When in the BMM i put the default aggregation rule to SUM.
    In OBI this shows the correct value for the measure without any dimension columns.
    - Row 1: 303.
    When i add an extra column which gives me a schoolname it still shows the correct value. Now it looks like:
    - Row 1: (Schoolname) | 101
    - Row 2: (Schoolname) | 202
    However when i add a schoolyear (e.q. value would be like 2008 - 2009) it shows:
    - Row 1: (Schoolname) | 2008-2009 | 7056
    - Row 2: (Schoolname) | 2008-2009 | 6262
    I've tried all sorts of things to solve this for days but it just won't work.
    Naturally i thought i made a mistake in the physical layer with wrong joins or something. I removed and relay these in different ways multiple times and it doesn't work.
    Does anyone know what could be the problem?
    Ps: I did receive multiple OBI errors containing some info about SQXEREExprAggegrate a week ago.. don't know if this is related to it.

    Thanks for the info, i see what you're talking about. This stengthens my suspicion that the problem is LrlJaar. It's the only table that could mess it up and perhaps i missed a join somewhere. Or might i overlook something here?
    -------------------- Sending query to database named School (id: <<46620>>):
    WITH
    SAWITH0 AS (select sum(case when T6904."Schoolgroep Score Eind" >= 0 and T6904."tts_nr" in (8, 110) and T6904."jgr_nr" in (4, 6) then 100 when T6904."Schoolgroep Score Midden" >= 0 and T6904."tts_nr" in (8, 110) and T6904."jgr_nr" in (4, 6) then 1 else 0 end ) as c1,
    T2544."naam" as c2,
    T432."sjr_oms" as c3
    from
    "LrlJaar" T403,
    "Schooljaar" T432,
    "School_Details" T2544,
    "School" T415,
    "vw_Irapportage" T6904
    where ( T403."sch_nr" = T6904."sch_nr" and T403."sjr_nr" = T432."sjr_nr" and T403."sjr_nr" = T6904."sjr_nr" and T403."jgr_nr" = T6904."jgr_nr" and T415."sch_nr" = T6904."sch_nr" and T415."sch_brin_code" = T2544."brincode" and T2544."naam" <> '' )
    group by T432."sjr_oms", T2544."naam")
    select distinct SAWITH0.c2 as c1,
    SAWITH0.c3 as c2,
    SAWITH0.c1 as c3
    from
    SAWITH0

  • BEx Displays Wrong Values After Reloading InfoCube

    I am very new to all of this, so there is a good chance I have just done something stupid.  I have an InfoCube in which I deleted all of the data, and then reloaded it with corrected data from the PSA.  If I look at the raw data in the InfoCube, it looks fine.  If I run a query with either BEx Analyzer or BEx Web Analyzer, key figure data is doubled, as are the result rows.  I believe it has to do caching for that particular Query, because I can create a new one and it will display the data correctly.  Does anyone have any ideas what might be causing this to happen? Or how to clear out the cache?
    Thanks

    Well, by the time I got back to look at it, it was working fine.  Which told me it was related to caching.  So I decided to recreate it.  In order to do this, I cleared out the request from the InfoCube, and then went and modified a few rows in the PSA.  After the DTP, I once again checked the Query and it was wrong.  I first checked the Request IDs, and I only had the new one.  I then went into RSRT and deleted just the cache for that query.  After that, the query was working again!  Thanks for your help. 
    Now my questions are how long does it take for the cache to recycle, and what actions can prompt it to recycle (such as changing the query)?

  • Clstr display wrong value

    Hi,
    ( Payroll is already posted. I need solution bec..from next payroll onwards it shows correct values)
    /552 State Net  Subs Adjustment =  500.00
    is not display in pay slip. But it  add in cluster table.
    What to do? to get proper values.
    Pl give sugg.

    Hello,
    This query is really not clear. /552 is basically sum of /551 of retro periods processed during payroll run of current period - with a reverted sign. It will be included in bank transfer (/559) or cash payment (/557) wage types. Usually these wage types are posted. So /552 may not be configured for posting. Depends on configuration.
    Independent of posting, it will always be part of cluster (RT cluster table).
    Hope this helps. If not, pl explain the query in more detail.
    Best Regards,
    Biraju

  • Display Wrong values in a Circular Queue

    Hi i did a test for the Circular Queue but get weird values . must i do some sort of casting ?
    The output of test is State of Data structure is [RingBufferNode@1a758cb, RingBufferNode@1b67f74, RingBufferNode@69b332]
    instead of [string1,string2,string3]
    class Test  {
      public static void main (String args[])  {
        TradQueue s1 = new LinkedQueue ();
          s1.enqueue ("string1");
           s1.enqueue ("string2");
            s1.enqueue ("string3");
         String a = s1.front().toString();
         System.out.println("State of Data structure is " + s1); LinkQueue Class
    class LinkedQueue implements TradQueue {
    RingBufferQueue elemdata = new RingBufferQueue();
      public LinkedQueue ()  {
      public void enqueue (Object o)  {
        elemdata.addLast (o);
      public void dequeue ()  {
        elemdata.removeFirst ();
       public Object size(){
      return elemdata.size ();
      public Object front ()  {
        return elemdata.getFirst ();
      public boolean isEmpty ()  {
        return elemdata.size() == 0;
      public String toString ()  {
       boolean firstelt = true;
        String result = "[";
        for (Enumeration elts = elemdata.elements();  elts.hasMoreElements(); )  {
          if (!firstelt)
            result += ", ";
          firstelt = false;
          result += elts.nextElement ();
       result += "]";
       return result;
      public Enumeration elements ()  {
        return elemdata.elements();
    }RingBufferQueue Class
    public class RingBufferQueue implements Queue {
    //private RingBufferNode [] a = new RingBufferNode [5];
    private Object [ ] RingBufferNode = new RingBufferNode [5];
          * initialize an empty ring buffer queue
         public RingBufferQueue () {
              firstFree = new RingBufferNode(firstFilled);
              firstFilled = firstFree;
              firstFree.next = firstFree;
         private RingBufferNode firstFree, firstFilled;
          * Determines whether the collection is empty
          * @return true if the collection is empty
         public boolean isEmpty() { return firstFilled == firstFree; }
          * Determines number of elements in collection
          * @return number of elements in collection as integer
         public int size () {
              int count = 0;
              RingBufferNode p = firstFilled;
              for (; p != firstFree; p = p.next) count++;
              return count;
          * Yields enumerator for collection
          * @return an <code>Enumeration</code> that will yield the elements of the collection
          * @see java.util.Enumeration
              public Enumeration elements () { return new RingBufferEnumerator(); }
          * add a new value to end of the collection
          * @param value element to be inserted into collection
         public synchronized void addLast (Object val) {
              if (firstFree.next == firstFilled)
                   firstFree.next = new RingBufferNode(firstFree.next);
              firstFree.value = val;
              firstFree = firstFree.next;
          * access the first value in collection
          * @return element at front of collection
          * @exception java.util.NoSuchElementException no matching value
         public Object getFirst () {
              if (firstFilled == firstFree) throw new NoSuchElementException();
              return firstFilled.value; }
          * remove first value in collection
          * @exception java.util.NoSuchElementException no matching value
         public synchronized void removeFirst () {
              if (firstFilled == firstFree) throw new NoSuchElementException();
              firstFilled = firstFilled.next;
    private     class RingBufferEnumerator implements Enumeration {
    private RingBufferNode ptr;
    public RingBufferEnumerator () {
    ptr = firstFilled;
    public boolean hasMoreElements(){
    return ptr != firstFree;
    public Object nextElement () {
    Object result = ptr.value;
       return ptr = ptr.next;
    class RingBufferNode {
         public Object value;
         public RingBufferNode next;
         public RingBufferNode (RingBufferNode n)
              { next = n; }
    }

    can i ask 1 more question ?
    im having problems declaring the size of the ring buffer queue, is my method below correct ? Because i tried enqueue more than 5 objects and it still seems fine to me. Is there another method of declaration ? please advice.
    private Object [ ] RingBufferNode = new RingBufferNode [5];
    Your container is backed by a linked list data structure, there is no need for an array. And as far as I can see, you never use that array try commenting out the array deceleration, most probably your code would work just fine.

  • DB Enterprise Manager displays wrong values

    Hi,
    I modified the size of db_recovery_file_dest_size from 10GB to 15GB and manually deleted the archive log files (size 9.7GB) from destination and also restarted the DB. Even then the enterprise manager displays the free space as only 5GB instead of 15GB.
    Please provide suggestions.
    DB version: 10.2.0.2.0
    Regards,
    Ashraf

    Thanks for the tips - but:
    I never deleted the archivelogs - I increased the db_recovery_file_dest_size parameter - this is on ASM so the RMAN backups clear the archive logs after the backup. So there's > 40GB free, but OEM doesn't see that - even on the Individual Metric screen it thinks it's 90% full when it's more like 5%.
    This isn't dbconsole, is it? It's grid control... I don't know if that matters, but it has been restarted - the RAC DB has also been restarted.
    I really don't want to drop and re-add the target - this is a production instance and has a number of jobs associated with it.
    Is there a way to clear the alert and have it re-check?

  • Webi displays null and wrong values after BW upgraded to SP6

    Hi,
    Webi report retrieves blank values after BW Backend upgraded to SP6.
    We were on SAP EHP 1 for SAP Net Weaver 7.0 and SP4. On the BO side we are on BO XI R/3 FP 2.1.
              Once we add new filters to a simple webi query the webi displays the null values for the characteristics which already exist in the report and more ever wrong values displayed for few columns. We have checked the MDX query in BW by using 'MDXTEST' and the results are good.
            It looks like that it is a rendering issue in Webi side and exactly no idea...
    Can anybody know how to fix the issue or any SAP notes exists for resolving this?
    Thank you,
    Regards,
    Satya

    Hi Ingo,
    We are also facing the same issue that satya is facing.
    We have developed the reports in BO XI 3.1 SP2 FP2.1 and SAP BW 7.01 EHP1 which was running correctly and showing the right result.
    But we upgraded the BW system to SAP BW 7.01 SP6 and check the WebI reports which was showing the unexpected results. ( instead of n rows it shows only 1 row for any query without dimension values)
    So we upgraded the BO sys to BO XI 3.1 SP2 FP 2.6 and checked the result but no luck with that also.
    The workaround i found is i must need to add the Node objects from the universe in the Query which are also used in the query filter of Web Intelligence. But this is not reliable as we need to change all the developed queries.
    We have also tried to perform the things shown in the notes but no MDX trace is enabling.
    Please let me know if there is any other solution.

  • Entering a Value and Tabbing out of af:inputListOfValues displays the wrong value

    Good morning. I am having an issue with the autosubmit and tabbing out of af:inputListOfValues in my code.
    Problem: When I type in a valid value and tab out of the field, it ignores the value I entered and displays whatever the first list in the query result instead regardless of the value I typed.
    My code snippet. What it does is simply an LoV search of Employee No attached to an entity attribute and depending on selection, it will display the Employee Name within the page. (it also retrieves a table view depending what employee number was entered)
    <af:inputListOfValues id="empNoId"
                 popupTitle="Search and Select: #{bindings.EmpNo.hints.label}"
                  value="#{bindings.EmpNo.inputValue}"
                  label="#{bindings.EmpNo.hints.label}"
                  model="#{bindings.EmpNo.listOfValuesModel}"
                  required="#{bindings.EmpNo.hints.mandatory}"
                  columns="#{bindings.EmpNo.hints.displayWidth}"
                 shortDesc="#{bindings.EmpNo.hints.tooltip}"
                   binding="#{workLocationBean.txtEmpNo}"
                  partialTriggers="id1"
                 valueChangeListener="{bean.onEmpNoChange}"    
                 autoSubmit="true">
            <f:validator binding="#{bindings.EmpNo.validator}"/>
      </af:inputListOfValues>
    Other things to note:
    When I enter a valid employee number and click anywhere in the page (not TAB), it behaves correctly.
    I have been trying to figure this out for days. Even my valueChangeListener gets the wrong value (when I do System.out) when I tab out so I am not sure where to catch it and replace it with the correct value.
    Thank you.

    This usually happens when primary key is not set in view object used by LOV.
    Dario

  • Exception Aggregation (Average) displaying incorrect values after EHP1 Upgr

    Hi All,
    Exception Aggregation (Average) displaying incorrect values after EHP1 Upgrade in our BW system
    We have recently upgraded the system to EHP1. After the upgrade some of the queries where we are using Exception Aggregation (Average) started giving the incorrect values.
    Eg. We are displaying three Key Figures KF1, KF2 and KF3 (=KF1 %A KF2) against Store Hierarchy. In KF3 we are using Exception Aggregation (Average) on a characteristic 0PLANT.
    There are 14 rows against 0PLANT and out of those 2 rows are blank for KF1, so for KF3. When it is calculating the average of these key figures its dividing the total value by 12 instead of 14 which is not correct in our case. Earlier it was dividing the total by 14.       
    So in this case 'Average' and "Average of all values <>0" are behaving the same way.
    Kindly provide some inputs on this.
    Best Regards,
    Sachin Verma
    +44 7506740018

    Hi,
    Thanks for viewing the thread. And happy to let you know that the issue was resolved.
    The solution was:
    Two formulas (local) were created, one including the formula variable with replacement path for ZD1, with exception aggregation on ZD1, and the other with formula variable with replacement path for ZD2, with exception aggregation on ZD2. Both these formulas are hidden.
    Another formula (local) was created for u2018time takenu2019 = formula with ZD1 u2013 formula with ZD2, with exception aggregation total on u2018ZDOCNOu2019.
    For the second instance, when one requires exception aggregation on records that has multiple values for keys, a nesting of formulas can be done displaying only the ones required.
    For e.g. a formula with exception aggregation on say characteristic u2018item no.u2019 can be hidden, and included in another formula for exception aggregation on characteristic u2018document no.u2019. This is a typical case where one can achieve calculation before aggregation for a calculated key figure, formula or a counter.
    Hope it might help someone, and saves time and effort for a similar issue posted.
    Also would like to keep this thread open for exploring better solutions.   
    Regards,
    Vijay

  • Asset explorer -Wrong value displayed after retirement of an asset.

    Hi All,
    We have posted a settlement from AUC to Assetas 30.11.2009 .The amount settled is a negative amount (-100) .The asset value  is  for ex : Rs100 and after settlement the asset value is Rs 90.
    Then we had made retirement to that asset  of Rs 10(positive value) using tcode FB01 and TTY 20A.Then the asset value should reflect as Rs 100 again.
    I am not sure why the system now displays asset value as Rs 100 +Rs 10(retirement - positivevalue) = Rs 110 as asset value.
    However system should do Rs100 +(Rs -10) +Rs10=Rs100 as asset value in asset explorer.However it displays amount as Rs 110.
    Please advice where do i correct to get the values displayed correctly in asset explorer.
    Regards
    Rekha

    hi
    first implement notes 988238, then please recaculate the values.
    Blaz

  • Document Summary, wrong values displayed for not persistent prompt

    Some prompt values displayed on the document summary portion of the document properties area are displaying incorrect values.
    It looks like non persistent prompts are showing the  value of the prompt listed just before the non_persistent prompt, instead of the value entered by the user.
    eg: persistent prompt 'enter code', user enters 1234
    non persistent prompt 'enter date', users enters 1/2/2008
    display in document summary:
    code - 1234
    date  - 1234
    Is this a known issue with Webi? I imagine it is not an issue with the report, but if so, please let me know if there is something I can do to correct it.
    Thanks!

    HI Nilanjan,
    Thanks for your suggestions but i do not have any data in Apshell to test if it is being displayed correct or not.
    Please advice me further.
    Regards,

  • Displaying the value of an variable on the stage

    I have managed to display the values contained in string variables on stage, and I am happy with that, however when I wish to display the value of an int and convert it to a string as one is supposed to do the output to the stage just calls it [class int] and does not give its value. any suggestions?
    My rogram contains a stage at frame 1 which displays a word. The user must input a word. Frame 30 then displays the word which was displayed and the word input by the user. That all works fine. But the value of the variable NumberRight, which has been assigned to that variable will only display as [class int] without showing its value. (even though I have converet it to a string using the .to string function you see below).
    My code is as follows;
    trace( "The number correct was" + NumberRight); //This works fine in the output window and shows the value of the variable as NumberRight [class int]1 (showing the value to be 1)
    outputText.appendText("in/"+textAtIN); //this works fine displaying the word presented and word input by user as in/in
    outputText.appendText( NumberRight.toString(     )); //here lies the problem as it just displays [class int] and nothing else.
    Yes I have managed to overcome that problem it was some code on the first frame, please excuse, however, now, is there any way to remove the [class int] bit from the displays, I wish to have the results as a clear copy of the results so that they can be printed out, without [class int] all over the place?

    Hi Ned thanks for that. Yes I had accidently created blank spaces in the String() argument. (wanted to check if there was a subsequent difference in display and forgot to return them to normal ...Sorted )
    Your next suggestion has eliminated the [class int] but I get a value now of 0.
    My code on the first frame for a correct response for example is;
    function keyPressedIN(event:KeyboardEvent):void
              if (event.keyCode == 13)/*Normally,this will move straight on to the next frame-
              recording a correct response and all that that implies in terms of scores etc. But now I have re directed it to Frame 30 to check are the variables working properly*/
                        //insert code for correct responses vowels etc.
                        VowelI = VowelI+1;
                        NumberRight = NumberRight +1;
                        stage.focus = stage;
                        //There is no need to display the text box as this is a correct response.
                        pupilsResponseIN.visible = false;
                        mainText.visible = false;
                        gotoAndPlay(30);//at the moment this takes me to the display frame to check if all is ok
    On the first frame when the user say hits the Return key my code assigns the value of +1 to the variable; eg
    NumberRight=NumberRight+1;
    and the value of +1 to the value of VowelI
    VowelI=VowelI+1
    At Frame 30 the code is as follows;
    stop();
    trace( "The number correct was"+ NumberRight);
    outputText.appendText("in/"+textAtIN);
    outputText.appendText( "\n");
    outputText.appendText("Vowels Correct ="+(int(VowelI).toString()));
    outputText.appendText( "\n");
    outputText.appendText("TotalCorrect="+(int(NumberRight).toString()));
    //outputText.appendText( VowelI.toString());
    Now what I am getting  is
    in/in
    Vowels Correct = O
    Total Correct = O
    Yet the trace (output box) records the Number correct as [class int]1 
    many years ago I wrote this same program in Authorware using similar code. I am trying to re write it in FlashCS5 using ActionScript 3 and It take days to solve small problems. I notice also that If for example the user of the program makes an error and I record the error as NumberRight =NumberRight -1 the program records it as Total Correct = NaN .
    I gave up on this a few months back but I am trying again. I think there must be a better way to do this. Variables do not seem to add up or subtract for me at present. no doubt its me thats got it wrong.

  • How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel

    Hi,
    ADDT, Vista, WAMP5.0
    We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
    Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
    We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
    These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
    We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
    However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
    So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
    Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
    The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
    This issue creates a huge problem that makes our application too difficult to use.
    What are we doing wrong?
    Please help.
    Charles

    1.     Start transaction PM01, Create Infotype, by entering the transaction code.
    You access the Create Infotype screen.
    2.     Choose List Screen.
    3.     In the Infotype no. field, enter the four-digit number of the infotype you want to create.
    When you specify the infotype number, please remember to enter any leading zeros.
    4.     In the Screen Number field, enter the screen number of the list screen you want to enhance.
    5.     Choose Create.
    The Dictionary: Initial screen appears:
    6.     Create the list screen structure.
    7.     Choose Activate.
    8.     Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
    9.     Choose Create All.
    The additional fields are displayed on the list screen, however, they contain no data.
    The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
    Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
    The fields can be filled from the Pnnnn structure or by reading text tables.

  • Viewing wrong values in messageStyledtext box created by personalisation

    Hi
    I created a messageStyledText thru personalisation and the value is setting to this by calling a procedure.Please find the code below.
    String sql="BEGIN XXCHR_ACCRUAL_BALANCE_CALC(:1,:2); END;";
    oapagecontext.writeDiagnostics(this, "*** Congragulations you entered the Action" + sql , 1);
    //SSHRParams sshrParams = new SSHRParams(oadbt);
    OracleCallableStatement stmt = (OracleCallableStatement)oadbt.createCallableStatement(sql,1);
    stmt.setString(1,person_id);
    stmt.registerOutParameter(2,OracleTypes.NUMBER);
    stmt.execute();
    oadbt.commit();
    String us_pto_accrual_value = null;
    us_pto_accrual_value = stmt.getString(2);
    Issue now is : First time i login accrual balance will be displayed correctly in the text box.There is Save button in the page.For current pay period i entered a PTO value as 8 hours.Then i clicked on the save button.The accrual is not submitted so after page refreshes the same value which we have seen before shd come.But the value is coming something different.So what i have done is i tried to print this stmt.getString(2) value using diagonistics.First time it is retrieving correctly but after clicking on the save button it is assigned some wrong value.
    I closed the current IE and opened a new IE then it is showing correct values.
    Can anyone help on this issue.?
    It is very urgent.
    Thanks
    Preeti

    Hi Gaurav,
    We are just calling the procedure in the backend and we are assigning the result to the out parameter and that out parameter is assigining to a variable using getString method.
    Then we are picking the id for that and setting the value like this:
    OAMessageStyledTextBean uspto = (OAMessageStyledTextBean)pgbean.findChildRecursive("USPTOSTYLEDTEXT");
    uspto.setValue(oapagecontext,us_pto_accrual_value);
    Thanks
    Preeti

Maybe you are looking for