Bug average calculation in form?

Hye,
I made an editable form in acrobat XI for mac.
I set all the fields to number and the last field I want to calculate the average of all the other fields.
So I select the fields which average I want...
But upon testing, I'm getting impossible average calculations.
F.ex. testing several fields with value "9", returns me a "0,..." value, which is impossible...
How to solve?
Thanks

It's hard to say what's happening without seeing a sample. Can you post one somewhere? Unfortunately, you can't post one here, but can at Acrobat.com, dropbox, skydrive.com, etc.

Similar Messages

  • How do I calculate averages in a form?

    Hi All,
    I'm throwing myself on the mercy of the forum.
    I'm new to form building and I don't know javascript.
    I'm working on a form and I can't seem to get it right.
    When I first enter values it seems to be working, but if I make corrections or changes the calculations go bad.
    I'm sure there is an easier/better way to calculate averages in a form.
    I think I need either a calculate/re-calculate button, or better javascript that processes the math line by line.
    I'm getting too close to the deadline to keep futzing around with it.
    Would anyone care to have a look at my form and help me?
    Here are the details...
    I'm using Acrobat 9 Pro
    I, and the administrators, are using Adobe Reader X. (10.1.4)
    I'm using a Macintosh running OS X (10.7.4, Lion)
    Teacher Evaluation Form:
    Teachers demonstrate proficiency in four domains.
    Evaluators assign scores (-, N, 0, 1, 2, and 3) to a number of items in each domain.
    N indicates the item is Not Applicable.
    A dash - indicates a score hasn't been given yet.
    Each domain has a weight value to be calculated into the final score.
    My job is to create a form that calculates the raw average and the weighted score for each domain, then a total for the performance evaluation total.
    What I did.
    I created:
    A drop down field to score each item under each domain.
    A hidden field that decides if the field for each item has a true number or another character.
    A hidden field that sums the scores of all the items in each domain.
    A hidden field that sums the number of fields that have a numeric value.
    A field that divides the total of the values from each domain and divides it by the number of of fields with numeric values to get the raw average.
    A field that multiplies the raw average by the appropriate amount to get the weighted score for each domain.
    Finally, a field that sums the weighted scores to produce the final evaluation total.
    Again, it seems to work at first, but if any changes are made to the scores the math goes bad.
    Here is a download of the form with all the hidden fields visible so you can see what is happening.
    https://dl.dropbox.com/u/783012/2_Evaluation%20Form.pdf
    Please help me!

    There are several problems with the calculation script for the "Test Total" field. Be sure to have the following user preference set: Edit > Preferences > JavaScript > Show console on errors and messages.
    Also check that the field calculation order is correct.

  • How can I activate the average calculation with cl_salv_hierseq_table class

    Hi there,
    Iu2019m using class cl_salv_hierseq_table to display a two level hierarchy (header and item) list.
    For some reason it seams that those calculations are active by default with class cl_salv_table but not for cl_salv_hierseq_table.
    I tried every suggestion from the class documentation and SAP help and nothing seams to work, the menu calculation options are always inactive except for the total calculation.
    After the cl_salv_hierseq_table=>factory...
    And before cl_salv_hierseq_table->display( )
    I triedu2026u2026.
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 1 )
    cl_salv_aggregations->add_aggregation( 'COLUMN1' )
    COLUMN1 is a currency column in header level table
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->add_aggregation( 'COLUMN2' )
    COLUMN2 is a dec column in item level table
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->add_aggregation( columnname = 'COLUMN2' aggregation = if_salv_c_aggregation=>average )
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->set_aggregation_allowed( 'COLUMN2' )
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->set_numerical_aggregation( ).
    cl_salv_aggregations->set_aggregation_allowed( 'COLUMN2' )
    cl_salv_aggregations->add_aggregation( columnname = 'COLUMN2' aggregation = if_salv_c_aggregation=>average )
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->add_aggregation( 'COLUMN2' )
    cl_salv_aggregation = cl_salv_aggregations->get_aggregation( 'COLUMN2' )
    cl_salv_aggregation->set( if_salv_c_aggregation=>average )
    Any help will be appreciated!

    Thanks Harsh Bhalla,
    Subtotals can be built (displayed) at Header Level Only, true but the values to calculate those totals can come from either header or item level, otherwise it wouldnu2019t be of much use would it?
    Anyway my question is how to activate the average calculation as well because the totals calculations is already active for either item or header level by default.
    For reference when on the display layout Iu2019m referring to the menu Edit -> Calculate -> Mean Value.

  • Average Calculation

    Hi,
    I am finding some problem while doing the Average Calculation in the Query.
    My data is like this:
    Batch      Stock       PO Qty          STO Qty
    B1           1000         1000               200
    B1           1000         1000               500
    In the output I want:
    Batch      Allocated           Unallocated
    B1           700                    300
    The calculation for Unallocated is ( Stock - Allocated ).
    Right now I am getting:
    Batch      Allocated           Unallocated
    B1           700                   1300
    What I want is to do the Average of the Stock Qty and then subtract that from the Allocatde Qty.
    Can anyone help out?
    Regards,
    Soumen

    Hi,
    You can use the Calculated key figure (if you need top 10)...
    Regards
    sathis

  • Urgent!!Average calculation based on a characteristic!

    Hi guys
      I have an average calculation based on a characteritic ..
    Example:
       This is a SRM Mgmt.It has an Organisation purchasing org,source purchase,PR,etc..
    Report is a Survey rpt.
    Average Score across Customer responded for each question for the particular PR...
    Where weightage is applied for each question & based on which
                            total weightage of all Qns for a PR
      Avg.Score=     -
                                No of Questions.
    How do u calculate using the exception aggregation??????????Pls revert ASAP.
    thnx
    BI Learner

    Solving Myself

  • Add average calculation to FBL5N?

    Hi,
    My user requires an average calculation on one of the columns in FBL5N (customer line items).  This is a standard transaction which uses an ALV.
    I know that I can add new fields into this transaction using customizing but I need an average, so would need to create a new field and populate it with strange looking numbers in order to get an average total at the bottom.
    I have seen an average calculation button on some ALVs and was wondering if it's possible to change the ALV settings in the code of FBL5N in order to get this to show?  At the moment I can only total and subtotal, there is no average calculation button showing.
    Or, if you can think of another solution, any suggestions gratefully received.  The last resort is asking the user to download the data to excel and calculate the average there.
    Thanks,
    Gill

    hi
    select the column,  which u have to calculate the average .
    and select edit menu ->calculate->Mean value
    regards
    surender

  • Average calculation Problem

    how can i apply the average calculation on a varchar column means only average the number values in that column and leave or return null if any character value comes in average
    thanks

    Hi,
    Below is a conversion function, like Justin suggested.
    Using this will be slower than a pure-SQL solution, so if Ankur's sulution works for you, you may want to stick with that.
    CREATE OR REPLACE FUNCTION     to_num
    (     in_txt          IN     VARCHAR2
    ,     in_non_num_val     IN     NUMBER     DEFAULT NULL
    RETURN     NUMBER
    DETERMINISTIC
    IS
    --     to_num attempts to convert in_txt into a number.  If it can,
    --     then the value is returned.  If in_txt cannot be interpreted
    --     as a number for any reason (e.g., it contains letters) then
    --     in_non_num_val is returned.
    --     to_num (NULL) returns NULL.
    BEGIN
         RETURN     TO_NUMBER (in_txt);
    EXCEPTION
         WHEN     OTHERS
         THEN
              RETURN     in_non_num_val;
    END     to_num;
    SHOW ERRORS

  • Average calculation with joins

    Hi all,
    Please have a look here.,
    Re: average calculation using sql
    My Question is :
    Is it possible to do a join here,
    so that in where condition thistable.id=newtable.id
    and in column area i need projects from new table.
    i.e.,
    Projects Name Remark SUM AVG
    I tried with this query..
    SELECT Projects,Name,Remark, SUM(work_hrs), AVG(work_hrs) FROM (
    SELECT name,remark ,a.id,b.id,start_dt,end_dt,SUM(end_dt-start_dt) OVER (PARTITI
    N BY name,remark ORDER by Name) work_hrs
    FROM T a,T1 b) where a.id=b.id
    GROUP BY ROLLUP(name,remark);
    But o/p is not as i expect..
    Thanks in advance...

    The alias 'b' does not exist outside of the subquery/inine view. Try to alias your subquery for clarity then refer to it;
    SELECT MAX(sub.sr_pm_name), sub.ts_desc, sub.ts_remarks, AVG(sub.work_hrs)
    FROM (SELECT ts_desc,
                 ts_remarks,
                 b.sr_id,
                 a.ts_srid,
                 b.sr_pm_name,
                 ts_expected_date,
                 ts_actual_date,
                 SUM(ts_actual_date - ts_expected_date) over(PARTITION BY ts_desc, ts_remarks ORDER BY ts_desc) work_hrs
          FROM t_status_report b, t_task_status a
          WHERE b.sr_id = a.ts_srid) sub
    GROUP BY ROLLUP(ts_desc,
                    ts_remarks);Another way that might be easier to follow is to use the WITH clause;
    WITH sub AS (
       SELECT ts_desc,
              ts_remarks,
              b.sr_id,
              a.ts_srid,
              b.sr_pm_name,
              ts_expected_date,
              ts_actual_date,
              SUM(ts_actual_date - ts_expected_date) over(PARTITION BY ts_desc, ts_remarks ORDER BY ts_desc) work_hrs
       FROM t_status_report b, t_task_status a
       WHERE b.sr_id = a.ts_srid)
    SELECT MAX(sr_pm_name), ts_desc, ts_remarks, AVG(work_hrs)
    FROM sub
    GROUP BY ROLLUP(ts_desc,
                    ts_remarks);

  • Numbers 3 has bugs in calculations.

    Hi,
    Numbers 3 has bugs in calculations. And I do not mean rounding errors. I mean plain wrong. How can I get back to my older version? I have a time machine backup.
    Thanks,
    Gerd

    Hi Gerd,
    I opened the document and here is what I get. As you can see, it doesn't seem to be a Numbers bug.
    I see you have the data format for the first row of the Jährliches Budget nach Monaten table set to Automatic and the format for the Monat column as a pop-up. You could try changing the data format for the first row of the Jährliches Budget nach Monaten table to a pop-up (and add the same pop-up list as you have in the yada table) and see if that helps.
    Or maybe it's related somehow to your Language & Region preferences (System Preferences>Language & Region>Advanced>Dates.... Mine are like this and it's possible Numbers 3 is too fussy about what it expects.
    SG

  • Field average calculation

    I am designing an Employee Review form and in that form I have a field that calculates the average of a set number of other fields. The problem is that the users can enter 1-5 or n, where n = no experience. I want the average field to only average the fields with 1-5 in them and skip the n fields. I have tried multiple ways of acomplishing this, but none have worked. Really could use some help on this one!!

    Have you tried a "Custom Calculation Script"?
    A custom calculation script will required the use of specific field names to be processed.
    Unless you are computing the average on all items you might consider using a function for counting and summing the fields and values in a range of questions.
    Since it is possible that no questions could be answered, you need to allow for a count of zero items being used for the computation.

  • Calculation in Form 16

    hi all,
    in my form 16 there is a notice pay amount which are displaying correctly, but its not getting deducted in calculation. can anyone please tell me that how would i include it for calculation?
    regards saurabh.

    Guyz,
    I belive you must have clarity which Form-16 Values you talking about.
    There are two places Form -16 will come
    1 Payslip
    2 Form 16 (Just form)
    In payslip after pay and deduction components one summary will come in the boxes As Evani said.
    There is another form16 where you are getting problem
    Warm Regards

  • Calculating in Forms

    I have been working on an interactive flyer for days now.
    Basically someone fills out the forms with packages they want for their apartment, with every selection of a check box or radio button it adds up at the bottom of the list.
    I have the following;
    Packages - DISPLAYS TOTALS FROM PACKAGES
    Additions- DISPLAYS TOTALS FROM ADDITIONS
    Housewares- DISPLAYS TOTALS FROM HOUSEWARES
    Subtotal- DISPLAYS TOTAL FROM Packages, additions and housewares.
    WAIVER- This is a 12% waiver to be ADDED to the rent price. This is: (.12)(Subtotal)
    Monthly Base Rent- Waiver+Subtotal
    The problem I am having is that I cannot get the total to show as the Waiver and Subtotal.
    When someone makes a selection it shows in the total for THAT section but then it does not calculate the waiver, subtotal, and total.
    When it is deselected, it shows the waiver, subtotal and total but NOT the total for that section.
    I am just trying to get all the calculations to display at the same time.
    HELP!

    Make sure your field calculation order is correct (Forms - Edit Form - Edit field calculation order).
    The total should appear last in the list.

  • Movign Average Calculation

    hoe the moving average calcualte?
    i got one case. the client return the goods at the date that material stock is zero.
    will this influnce to the MB03?

    Hi Lucas
    The calculation is as below when Goods receipt for PO
    Balance on hand quantity + Goods Receipts quantity
    Balance on hand value     + Goods Receipts value
    New Moving Average Price = Total Value / Total Quantity
    Asha

  • Multiplication calculation in form

    I wish to have a form field return a calculation that is a multiplication of another form field.
    Example:
    Field name where calculation is to take place = FieldG
    Field name where base numeric is = FieldF
    Field G needs to return a calculation that is 3 times the amount showing in Field F
    What is the best way to accomplish this?
    I have tried  this in the properties simplified field notations                       FieldG=(FieldF*3)     no result
    Suggestions?

    Here is a link to a tutorial that should be helpful:
    http://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations
    In short, the simplified field notation option is for simple calculations involving addition, subtraction, multiplication, and division. For anything more complicated, you'll need to use a custom JavaScript.

  • Weighted average calculation in query

    Hello
    i'm having some issues calculating an weighted average...
    imagine the next scenario
    LINE | FORMAT | TIME | WORKERS
    10    | 000123    | 10   | 5
    10    | 000123    | 350  | 2
    10    | 000123    | 75   | 1
    From this i need the wighted average of the nr workers considering the time they were working
    so, to calculate that i have to do for example:
    (time * worker)/total time
    in numbers...
    ((105)+(3502)(75*1))/(10350+75)
    =1,89 workers for that line, for that format and for all that time
    I am able to do that formula inside bex analyser, however when the user drills down the report or sorts the key figures in other order the result is not correct.
    any suggestions?
    Best regards

    Hi Ricardo
    What we did, in a similar case, we used two formulas. The first one was the calculation (time * worker) with exception aggregation (summation).
    The second formula was the previous formula divided to time.
    The trick is which characteristic to use for the aggregation in the first formula, i think you should have the most detailed one.
    Then i believe the two formulas will calculate correctly the weighted average based on any selections/analysis that you do.
    Regards
    Yiannis

Maybe you are looking for