Sum formula not calculating sum accurately

Hie All,
In my Webi report, I've included a sum formula (Sum[actual hours]) for both rows and columns. However, the total is inaccurate for some rows/columns. Any idea why this could happen and how to resolve the issue? Thanks.

Hi Jeewan,
You can try these but i'm not sure it will work:
1. Try merge dimension on common objects.
2. Try sum(sum([actual hours]))
3. Instead of using formula you can use the sum function available in "Analysis -> Function -> Σ Sum"
4. It can be due to the projection used at universe level for this you have to access the universe and check.
5. Try dragging some compatible objects in object browser it might happens some times that data will not come correctly.
6. last one (hit and try) check the filters once.
Hope this helps,
Thanks,
Shardendu Pandey

Similar Messages

  • Formulas not calculating

    Hello, <BR><BR>My teammates and I are using Hyperion Essbase Add-In for Excel v 6.5.5.0 with Excel 2002 SP3. We've got two ranges in a template that use formulas to specify the headers in our pull. One formula uses Excel's VLOOKUP function to retrieve a value, and the other formula simply points to another cell value on a different worksheet. When we retrieve the data, the formula pointing to the other cell value displays as the formula, not the value it refers to. The VLOOKUP formula is fine.<BR><BR>Essbase options are set to Mode = Formulas - Retain on Retrieval. Is there another option I need to change?<BR><BR>Thanks,<BR><BR>DJ

    Nevermind - I found the issue was actually a cell formatting issue with Excel - not the Hyperion Add-In. <BR><BR>DJ

  • Excel formulas not calculating imported SSIS data

    I have an SSIS package that exports data to a password protected worksheet.  The SSIS package works great and all the data is in the right cells.  However, some of the cells that are protected have formulas in them that do calculations the data
    that has been imported.  The cells with formulas don't pick up the new data.  I have tried F9 and that doesn't work.  The only thing that works is to either re-enter the data manually or I can copy and paste the data right back into the same
    cells and then the formula picks up the new data.
    The client has specific formulas that they do not want to be changed.  Adding macros to the workbook is not allowed.
    How can I get the formulas to pick up the imported data?  
    This is very frustrating.  I have spent the better part of 2 months converting data from MS ACCESS to SQL, built massive queries and put together a very nice SSIS package that does exactly what I want it to do, only to get stonewalled by Excel.

    Leo,
    Some of the cells in the worksheet are un-protected to allow users to enter in values, then the cell with the formula - which are protected - updates with the results of the formula.
    For instance cell A1 is protected, cells B1 through F1 are un-protected.  Cell A1 has the formula =Sum(B1:F1)  if the user manually enters in the values 2, 2, 3, 2, 4 into cells B1, C1, D1, E1, & F1 respectively then cell A1 would update to
    2, 2, 7, 9, 13 as the numbers get entered.
    I am exporting data from a SQL table to Excel through SSIS.   So for example if I export the same values (2,2,3,2,4) to cells B1 through F1 and then open the Excel file, the values that were exported are in the correct cells, but the value in cell A1
    is blank.  
    If I then select cells B1:F1 and do a copy and past, then the formula picks up the values, and does the calculation, showing 13.
    dc

  • Sum formula for tables

    I have made the switch from MS to MAC and word to pages and so far am as happy as can be!
    Then, I go to add a sum formula to a list of numbers in a table column so that I can have a total at the bottom of the column.....AND, I can't find a way to do this in pages.
    I've searched this forum but can't find anything, so I am sure it is me and not pages that has the problem. Surely pages wouldn't leave out the ability to sum a column of numbers?

    A table is not a spreadsheet &, currently, iWork does not have a spreadsheet application. I do believe CalcService by Devon Technologies can do some basic calculations in a spreadsheet.

  • Using a sum formula with a data and text row?

    In 9.3.1 Financial reporting.
    One row is retrieving values from essbase connection and is a data row
    the second row is a fixed amount (390K) and was entered as a text row.
    The third row is the formula row that sums up row 1 and row 2
    However the total shows only the value of the data row (row 1)
    I read the doc and it doesn't say you cannot do a formula between data and text rows but it doesn't see to work. Anyone get by this without having to create a dimension to dump a fixed number in to report off of?
    JTS

    You are right on.. A text row by definition and functionality is to be considered as a text, and not as a number [Even though the text can be number based].
    Did you try something like this?
    sum(row[41],390)
    As you referred, you can always add a member in essbase DB
    Cheers
    RS

  • Web Service Connection on fresh SUM formula is zero

    I am using Xcelsius SP1.  I have a field in the spreadsheet that has the formula "=SUM(H12:H16)".  I am using a Web Service Connection to refresh the data.  Following a refresh from the web service connection the field with the SUM formula is 0.  I have discovered that ff the values in SUM range (in my case H12:H16) are identical to the refrehsed data then the formulas results willl be 0.  If one of the sum values is different from the original values then the sum formula works.  Is this a bug? Is there a work around?

    I had a problem with the data format after getting number-values from my web-service, because every number-value I got was not a number - it was a string.
    so I had to convert all the data in Excel from string to number values. after that everything works fine for me.
    you could try that out....

  • What formula for finding sum of Time from cells in a row?

    Is there a template on Numbers or a simple Sum formula that i can use to add hours and minutes worked so that a cell will show total number of hours and minutes worked in a day? Thanks.

    In its bare form, the required formula would be :
    =(timeOut1-timeIn1)+(timeOut2-timeIn2)+(timeOut…-timeIn…)
    this said, you must understand that Numbers has no time items.
    It has date_time ones and, if it's Numbers '09, it has duration ones.
    A cell whose format is defined to display only a time value contains always a date component.
    Near the safari window in which I am writing is a Numbers document.
    If I type 13:58:20 in cell B2, the app starts displaying 13:58 because the contents parser which is in Automatic mode recognized that my entry was resembling to a time one. So it « decided » to display only the hours and minutes of the time component.
    If I enter the Cells Inspector and define the format to date time displaying the date and the time (with seconds), I get: 2012-04-12 13:58:20
    If the process whose start was just typed is supposed to end at 18:26, I may repeat the already described process to C2 but as quite everybody knows in this Discussions forum, I'm lazy.
    So, I select every cells supposed to receive a time value and define, temporarily, their format to date_time displaying date, time with seconds. This way I will not have to repeat that for every entry.
    In C2, I type 18:26.
    The app displays : 2012-04-12 18:26:00
    Leaving space for two other tasks, in H2, I type =C2-B2
    As I am running Numbers '09, I get 4h 27m 40s which is a duration value.
    Now, we will assume that the start time remains unchanged but that the task will end tomorrow at 5:55
    If I type this value immediately in C2, the cell will contain 2012-04-12 05:55:00 and H2 will contain -8h 3m 20s which is certainly not what you want to get.
    If I wait tomorrow before typing this end time in C2, the cell will contain 2012-04-13 05:55:00 and H2 will display the wanted value : 15h 56m 40s.
    CAUTION : the application made no error, it just did exactly what I wanted it to achieve.
    Third case, I decide to type the start and the end time when the task isfinished, say on 2012-04-14,
    B2 will contain : 2012-04-14 18:26:00
    C2 will contain : 2012-04-14 05:55:00
    and one more time we will get the infamous -8h 3m 20s which is certainly not what you want to get.
    So, it's clear that a more sophisticated formula is required.
    Here I will describe the one which I use. I guess that other helpers will describe other ones. It's the rule of the game.
    I use the function TIMEVALUE.
    =(TIMEVALUE(C2)-TIMEVALUE(B2)+IF(TIMEVALUE(C2)>TIMEVALUE(B2),0,1))*24
    which will return the durations expressed in decimal hours.
    This formula is OK as long as the task duration isn’t longer than 24 hours.
    If a task duration may be greater than 24 hours, the best scheme would be to enter full date_time values.
    For several tasks, the formula would be :
    =(TIMEVALUE(C2)-TIMEVALUE(B2)+IF(TIMEVALUE(C2)>TIMEVALUE(B2),0,1)+TIMEVALUE(E2)- TIMEVALUE(D2)+IF(TIMEVALUE(E2)>TIMEVALUE(D2),0,1)+TIMEVALUE(G2)-TIMEVALUE(F2)+IF (TIMEVALUE(G2)>TIMEVALUE(F2),0,1))*24
    Yvan KOENIG (VALLAURIS, France) jeudi 12 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Summarizing Three (3) Formulas (When Using "Sum" Within Each Formula)

    I'm getting an error (i.e. 'This field cannot be summarized.") when
    trying to summarize three (3) formulas.  I figured out that it is
    probably because that there is a "Sum" in each formula.  I need totals
    only for specific officers (not all officers). Can someone tell me how
    to accomplish this ?  Thanks  ! ! !
    Formula #1
    NumberVar PeteTotal;
    PeteTotal := 0;
    If = "Pete"  And
       <> ["5001", "5030", "5031", "5032"] Then
       PeteTotal := Sum (, )
    Formula #2
    NumberVar MikeTotal;
    MikeTotal := 0;
    If = "Mike"  And
       <> ["5001", "5030", "5031", "5032"] Then
       MikeTotal := Sum (, )
    Formula #3
    NumberVar TonyTotal;
    TonyTotal := 0;
    If = "Tony"  And
       <> ["5001", "5030", "5031", "5032"] Then
       TonyTotal := Sum (, )
    Formula #4
    NumberVar AllTotals;
    AllTotals :=0;
    AllTotals := Sum(@PeteTotal, @MikeTotal, @TonyTotal)

    I got zeros . . .  below is the code  . . .  do you see anything wrong ?
    Formula #1
    NumberVar Total;
    Total := 0;
    Whilereadingrecords;
    If in ["Pete","Mike","Tony"]  And
       in ["5001", "5030", "5031", "5032"] Then
       Total :=
    Else
    0;
    Formula #2
    NumberVar GroupTotal;
    GroupTotal := 0;
    GroupTotal := Sum({@Formula #1});

  • Sum formula doesn't change when add row

    This question is about Numbers.  I have a column of numbers with a sum cell at the bottom of the column.  Sometimes I need to insert a row at the very bottom of the column, just above the cell with the Sum formula.  I then need to tweak the sum formula to include that added row; however, if I add a row in the middle of the column, the sum formula automatically changes to include that added row. 

    Hi c,
    Numbers will automatically adjust the formula if all body cells above the added cell have the same formula, or if the added cell is within the range specified in the formula.
    In the middle of the column, the second is true. At the end of the column, the added cell is outside the range specifired in your formula, and there is at least one regular cell above that does not contain the same formula.
    Use one or more header rows at the top of the table for your labels. Use a Footer row to hold the SUM formula. Place the SUM formula in the Footer row, using =SUM(B) for example to SUM the values in all of the body cells in column B.
    Regards,
    Barry

  • How to sum a complexly calculated variable or something capable of doing it

    Hi
    I'm working on a report (RTF) that need to sum a complex calculated value within a group.
    The value is from a set of code like below:
    ---Code Start---
    var temp1
    If xmlfield1 = ''
    temp1 = xmlfiled2 * xmlfield3 / 100
    Else
    temp1 = xmlfield4
    End
    var temp2
    temp2 = (temp1 + xmlfield 5) * xmlfield6 / xmlfield 7
    ---Code End---
    And I need to sum the value of temp2 within a group with something like <?sum(current-group()/xdoxslt:get_variable($_XDOCTX,’temp2’))?>
    As xdoxslt cannot working with xdofx, the statement above shows an error.
    The Result shall be
    Group1
    Group2
    Count(xmlfield1) Avg(xmlfield2) Sum(temp2) Avg(temp2)
    End Group2
    End Group1
    Can anyone guide me how to implement this (the code may be more complex)?
    Many thanks
    Edited by: 922945 on Mar 26, 2012 1:58 AM

    Can any one please give me some help?

  • Sum function not showing total

    Hi,
    i have to calculate sum under the report. when i use sum function it is not displaying adding total. Please let me know. How to calcuate sum?
    Thanks,
    lax

    The sum function will work as long as you follow the rules in XPATH (check this out: http://www.w3schools.com/xpath/xpath_examples.asp)
    So, basically it depends on 1) you XML data 2) conditions for the sum.
    Assuming there are no conditions and that your xml data is flat then an example would be:
    <?sum(//MYVALUE)?>
    This will sum all elements MYVALUE in the XML data regardless of its position in the tree.
    regards
    Jorge

  • Find com_id where sum(invoice_total) not equal to zero within a month

    How to find com_id where sum(invoice_total) not equal to zero within a month.
    SQL> select com_id from invoice group by com_id
    2 where sum(invoice_total) !=0
    3 and invoice_date between ADD_MONTHS(sysdate,-1) and sysdate
    SQL> desc invoice;
    TID NOT NULL NUMBER
    COM_ID NOT NULL NUMBER
    BRANCH_ID NUMBER
    INVOICE_OLD_NUM VARCHAR2(4000)
    INVOICE_DATE NOT NULL DATE
    INVOICE_PO_NUM VARCHAR2(4000)
    INVOICE_TOTAL NOT NULL NUMBER(12,2)
    TRANSPORT_ID NUMBER
    PAID NOT NULL VARCHAR2(4000)
    CHEQUE_CASH NOT NULL VARCHAR2(10)
    REMARK VARCHAR2(4000)
    Thanks
    Francis

    CREATE TABLE INVOICES(
    TID NUMBER NOT NULL,
    COM_ID NUMBER NOT NULL,
    BRANCH_ID NUMBER,
    INVOICE_OLD_NUM VARCHAR2(4000),
    INVOICE_DATE DATE NOT NULL,
    INVOICE_PO_NUM VARCHAR2(4000),
    INVOICE_TOTAL NUMBER(12,2) NOT NULL,
    TRANSPORT_ID NUMBER,
    PAID VARCHAR2(4000) NOT NULL,
    CHEQUE_CASH VARCHAR2(10) NOT NULL,
    REMARK VARCHAR2(4000)
    INSERT INTO INVOICES (
    TID ,
    COM_ID ,
    BRANCH_ID ,
    INVOICE_OLD_NUM ,
    INVOICE_DATE ,
    INVOICE_PO_NUM ,
    INVOICE_TOTAL ,
    TRANSPORT_ID ,
    PAID ,
    CHEQUE_CASH ,
    REMARK
    VALUES (
    1,
    1,
    1,
    'OLD_1',
    SYSDATE -40,
    'PO_1',
    100,
    1,
    'Y',
    'CASH',
    'REMARK_1');
    INSERT INTO INVOICES (
    TID ,
    COM_ID ,
    BRANCH_ID ,
    INVOICE_OLD_NUM ,
    INVOICE_DATE ,
    INVOICE_PO_NUM ,
    INVOICE_TOTAL ,
    TRANSPORT_ID ,
    PAID ,
    CHEQUE_CASH ,
    REMARK
    VALUES (
    2,
    2,
    1,
    'OLD_1',
    SYSDATE -20,
    'PO_1',
    100,
    1,
    'Y',
    'CASH',
    'REMARK_1');
    INSERT INTO INVOICES (
    TID ,
    COM_ID ,
    BRANCH_ID ,
    INVOICE_OLD_NUM ,
    INVOICE_DATE ,
    INVOICE_PO_NUM ,
    INVOICE_TOTAL ,
    TRANSPORT_ID ,
    PAID ,
    CHEQUE_CASH ,
    REMARK
    VALUES (
    3,
    3,
    1,
    'OLD_1',
    SYSDATE -10,
    'PO_1',
    0,
    1,
    'Y',
    'CASH',
    'REMARK_3');
    SELECT COM_ID,
                   SUM(INVOICE_TOTAL)
         FROM INVOICES
    WHERE INVOICE_DATE BETWEEN ADD_MONTHS(SYSDATE,
                                                                                                   -1) AND SYSDATE
    GROUP BY COM_ID
    HAVING SUM(INVOICE_TOTAL) != 0;

  • Sum formula by Group

    Hello, I'm having a problem getting this summary to work. I have a group {PRDT.PREndDate} which is a date field and I have a sum formula that adds two fields. The problem is when I try to limit the sum to the {PRDT.PREndDate}  group I get an error "There must be a group that matches this field". I'm sure I'm missing something in my formula.
    here's the formula:
    sum({@EC1}, {PRDT.PREndDate})+
    sum({@EC2}, {PRDT.PREndDate})
    Thanks,
    Gerald

    My Group Header #2 is {PRDT.PREndDate} , does it matter that the field type is Date? Here are the other formulas:
    @EC1
    if {PRDT.EDLType}='E' and {?EC1}={PRDT.EDLCode} then
         -({PRDT.Amount})
    else
        0
    @EC2
    if {PRDT.EDLType}='E' and {?EC2}={PRDT.EDLCode} then
         -({PRDT.Amount})
    else
        0
    Edited by: akamax_power on Aug 5, 2009 6:51 PM
    Edited by: akamax_power on Aug 5, 2009 6:53 PM

  • Display Columns having sum/total not zero

    We have a report that hav total twenty columns.
    Each time we run te report (dynamic query) random columns have sum=zero
    we want to display eachtime only the columns having sum greater than zero.
    regards
    jazib

    Hi Jazib,
    Ok - I've been testing this here [http://htmldb.oracle.com/pls/otn/f?p=267:43]. The report on the left shows/hides the SAL and COMM columns according to the totals. The report on the right shows the full data. Change the Dept to see this in effect.
    There are other methods available, but this is what I have done:
    The dept select list (item name is P43_DEPTNO) is just a list of departments and a NULL option that returns 0 (zero).
    The report's source is a SQL statement of:
    SELECT EMPNO, ENAME, SAL, COMM
    FROM EMP
    WHERE :P43_DEPTNO = 0 OR :P43_DEPTNO = DEPTNO
    ORDER BY ENAMEI have a region in the After Header position that uses "No Template" and contains two Hidden items - P43_SAL and P43_COMM.
    I have an Item Computation, running "Before Header", that sets P43_DEPTNO to 0 if it is NULL.
    I have an unconditional PL/SQL Process, running "On Load - Before Header", that has the following process code:
    DECLARE
    vSAL NUMBER;
    vCOMM NUMBER;
    BEGIN
    SELECT NVL(SUM(SAL),0), NVL(SUM(COMM),0)
    INTO vSAL, vCOMM
    FROM EMP
    WHERE :P43_DEPTNO = 0 OR :P43_DEPTNO = DEPTNO;
    :P43_SAL := vSAL;
    :P43_COMM := vCOMM;
    END;And, finally, on the SAL column in the report, I have set the Condition Type to "Value of Item in Expression 1 != Zero" and Expression 1 is: P43_SAL. And the same on the COMM column, but Expression 1 is: P43_COMM
    When the page is loaded, the process is run and the totals for SAL and COMM are calculated and inserted into P43_SAL and P43_COMM. The report is then run and the conditions check the values of these two hidden items - if either is non-zero, then the column is displayed.
    Andy

  • Which is faster -  Member formula or Calculation script?

    Hi,
    I have a very basic question, though I am not sure if there is a definite right or wrong answer.
    To keep the calculation scripts to a minimum, I have put all the calculations in member formula.
    Which is faster - Member formula or calculation scripts? Because, if i am not mistaken, FIX cannot be used in member formulas, so I need to resort to the use of IF, which is not index driven!
    Though in the calculation script,while aggregating members which have member formula, I have tried to FIX as many members as I can.
    What is the best way to optimize member formulas?
    I am using Hyperion Planning and Essbase 11.1.2.1.
    Thanks.

    Re the mostly "free" comment -- if the block is in memory (qualification #1), and the formula is within the block (qualification #2), the the expensive bit was reading the block off of the disk and expanding it into memory. Once that is done, I typically think of the dynamic calcs as free as the amount of data being moved about is very, very, very small. That goes out the window if the formula pulls lots of blocks to value and they get cycled in and out of the cache. Then they are not free and are potentially slower. And yes, I have personally shot myself in the foot with this -- I wrote a calc that did @PRIORS against a bunch of years. It was a dream when I pulled 10 cells. And then I found out that the client had reports that pulled 5,000. Performance when right down the drain at that point. That one was 100% my fault for not forcing the client to show me what they were reporting.
    I think your reference to stored formulas being 10-15% faster than calc script formulas deals with if the Formulas are executed from within the default calc. When the default Calc is used, it precompiles the formulas and handles many two pass calculations in a single pass. Perhaps that is what you are thinking of.^^^I guess that must be it. I think I remember you talking about this technique at one of your Kscope sessions and realizing that I had never tried that approach. Isn't there something funky about not being able to turn off the default calc if a user has calc access? I sort of thing so. I typically assing a ; to the default calc so it can't do anything.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • Bug Fix Request - To Admins

    Hey there Logic Pro forum Admins, I've got a small bug fix request for you. I'm using Logic Studio to lay down VO, and I ran across a potentially distressing bug. When you are recording in the arrange window and you click on the playhead, it erases y

  • Can I change computer client agent properties using the command line ?

    I need to make a script that will change some settings in several configuration manager 2007. The settings I have to change are: - policy polling interval - mandatory reminders Is it possible to use cmdlets or WMI classes to change these settings in

  • Sort Images by average luminance -- possible?  Hints?

    Another edition of "Not that I know of".  :-) Is there any way to sort Images in Aperture by average luminance? Is there any way to determine the average luminance and save this to a custom metadata field? Bonus: hue? NB: using the Preview to determi

  • Wireless IP Security Camera for Mac

    We have an unfotrunate situation with a neighbor and need a wireless IP camera  to work with our apple airports. Does anyone have any recomendations for a camera we can plug into the usb port in our car and record the video onto our mac? I've looked

  • Search in JTree

    To search for a node in my tree, given a path, I iterate over all the DefaultMutableTreeNodes starting at the root till I find nodes matching criteria and I walk down the tree. Is there a better, more efficient way to search for tree nodes? thx