Simple Sum Calculation in Forms

I have a seriously simple situation, alas when I try to set it up, I am only able to select one field to calculate?  I am working in Adobe X.  I simply want to calculate the sum of 5 fields into a "Total" Text Field... 

Hi miaff,
I think this tutorial is exactly what you're looking for: http://acrobatusers.com/tutorials/how-do-i-use-basic-calculations-in-a-form
Please let us know if you still have trouble!
-David

Similar Messages

  • I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    Oaky, at least we got that far.  Next step is to determine if all those "numbers" are really numbers.  Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number.  Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
    Here are some that will remain as strings:
    +123
    123 with a space after it.
    .123

  • Can I add a simple PDF to the forms site?

    I am looking to add a simple pdf - with no form content to my website and use my forms account to do so.  Is that possible?  I tried importing a pdf, but it needs editable content.  Thank you for any help.

    Hello Nancy,
    1. You can embed the form in your website as a widget.
    Go to "Distribute" Tab -> then look out for script under "Embed Form".
    2. You can also save your Formscentral form as a PDF form and then host the PDF separately and give its link in your website.
    Regards,
    Anoop

  • Totalling rows that have a 'sum' calculation in them

    I would like to report a single row for each 'cardcode' (I know there is only one at the moment) but as each row already has a 'sum' calculation in it I am not sure how to do this, any ideas please?
    The idea is to report only a total sales value per customer on one row for the given time period
    SELECT
    t1.cardcode as 'Code',
    t1.cardname as 'Name',
    t1.docnum as 'Document Number',
    sum(t0.price) as 'Sales Value'
    FROM
    rdr1 t0
    inner join ordr t1 on t0.docentry = t1.docentry
    WHERE
    t1.docdate >= '[%0]' and
    t1.docdate <= '[%1]' and
    t1.cardcode = 'ALL006'
    GROUP BY
    t1.cardcode,
    t1.cardname,
    t1.docnum
    Thanks,
    Robin

    Hi Robin,
    try this one. Instead of OINV you also can use ORDR:
    SELECT T1.[CardCode], T1.[CardName], SUM(T1.[DocTotal]-T1.[VatSum]) AS 'Sales Value'
    FROM [dbo].[OINV]  T1
    WHERE T1.[DocDate] BETWEEN [%1] AND [%2]
    GROUP BY T1.[CardCode], T1.[CardName]
    Of course, you will find a standard report in the Sales / Reports. There you can display sales value for customers on a given date range. Why do you want to create a query?
    Regards Steffen

  • How do i get a plain and simple basic bank reconciliation form?

    how do i get a plain and simple basic bank reconciliation form?

    If you have a system with Microsoft Office Document Imaging loaded, you can Print the PDF to this application. Then once the document opens, Print it to Adobe PDF. This will avoid the distilling errors.
    It is part of Office XP, 2003 & 2007 I believe.
    Otherwise you may be left with Print & Scan.
    Good Luck
    Mark

  • Simple  Fact Calculation Help

    Hi Team
    I need help in creating a simple fact calculation. I need to create a fact column that should give the lastest transaction amount , if the type of the transacion is "DEBIT". for example if there 100 transactions are there, and out of that only 25 are DEBIT Transaction, I need the amount of the last (Most recent date's) DEBIT Transaction.
    Please help me, what should be the calculation and the aggrecate setting of that fact column.
    Our version is OBIEE 10.1.3.4.1
    Thanks a lot for the help
    With Regards
    Bas

    The analytics function that yo search is last.
    Check here:
    http://gerardnico.com/wiki/dat/obiee/last_first
    Try to apply the last on only one dimension (ie time dimension) otherwise it can take a lot of time. Check the bad performance section of the article.
    Cheers
    Nico

  • 10G Cube View hangs executing Simple Sum!!

    Hey Experts.
    I have built a 10G OLAP Cube in Oracle 10G. Also all the Dimensional and Cube views have been generated. I am querying the cube to check the data for different levels of the Entities that I have used. The cube is built on a Single Fact Table with 50K rows in the Fact.
    I am having 1 metric as Trx.
    Whenever I am trying to excute a simple Sum(Trx) on the Cube filtered to have a smaller data set the Query goes on without returning the result. I need to show this Trx in all my reports against different dimensions that I have mapped in the Cube.
    Please advice.
    Thanks..
    ChD

    Hi David ,
    Even we tried to perform a query like :
    Select * from mycube_view where measure1 is not null ;
    also:
    Select distinct measure1 from mycube_view ;
    The query is running for ages without any result .
    Also I can see 10g style cube views having diff structures like for 10g all the dimensions attributes present in the cube view itself . So for my OBIEE I could use single table based reorting I believe right ? But I wonder for OBIEE I need to put aggregate on my measure attribute or not ! for 11g I had put the aggregation like SUM against the measure attrbt there.
    Many Thanks,
    DxP

  • Simple Graphing Calculator with 2D array

    Hello,
    I am building a simple graphing calculator which reads in coefficients from a txt file. All is going well except when I plot the points, the graph is at the corner of the screen and sideways. As we all know, the origin of the array is at the top right corner, so how do I transform/slide it so that it is at the xy origin? Code is posted below, thanks!
    import javax.swing.*;
    import java.awt.*;
    public class baseClass extends JFrame{
         private shapesPanel panel;
         public baseClass(String title){
              panel = new shapesPanel();
              setTitle(title);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              getContentPane().add(panel);
              pack();
              setVisible(true);
         public void drawLine(int x1, int y1, int x2, int y2){
              panel.addLine((short)x1,(short)y1,(short)x2,(short)y2);
              panel.repaint();
         public void drawDot(int x, int y){
              panel.addOval((short)x,(short)y,(short)1,(short)1);
              panel.repaint();
         private class shapesPanel extends JPanel{
              final private short max = 10000;
              private short[][] lines, ovals;
              private int numLines, numOvals;
              public shapesPanel(){
                   setBackground(Color.white);
                   setPreferredSize (new Dimension(500,500));
                   lines = new short[max][4];
                   ovals = new short[max][4];
                   numLines = 0;
                   numOvals = 0;
              public void paintComponent(Graphics g){
                   super.paintComponent(g);
                   g.setColor(new Color(0,0,255));
                   for(int i = 0; i < numLines;++i){
                        g.drawLine(lines[0],lines[i][1],lines[i][2],lines[i][3]);
                   g.setColor(new Color(255,0,0));
                   for(int i = 0; i < numOvals;++i){
                        g.drawOval(ovals[i][0],ovals[i][1],ovals[i][2],ovals[i][3]);
              public void addLine(short x1, short y1, short x2, short y2){
                   lines[numLines][0] = x1;
                   lines[numLines][1] = y1;
                   lines[numLines][2] = x2;
                   lines[numLines][3] = y2;
                   ++numLines;
              public void addOval(short x, short y, short w, short h){
                   ovals[numOvals][0] = x;
                   ovals[numOvals][1] = y;
                   ovals[numOvals][2] = w;
                   ovals[numOvals][3] = h;
                   ++numOvals;
    import java.util.Scanner;
    import java.io.*;
    public class graphingCalculator extends baseClass{
         // CONTAINS THE FOUR FUNCTION COEFFICIENTS
         private double[] theFunction;
    // CONTAINS THE DISCRETE FUNCTION PLOT
    private boolean[][] grid;
    // SIZE OF THE COORDINATE SYSTEM
    private final int columns = 500, rows = 500;
    public graphingCalculator(String filename) throws IOException{
         // INITIALIZATIONS ///////////////////////////////////////
    super("GRAPHING CALCULATOR");
    theFunction = new double[4];
         grid = new boolean[rows][columns];
    for(int i = 0;i<rows;++i){
    for(int j = 0;j<columns;++j){
    grid[i][j] = false;
    // DRAW THE COORDINATE SYSTEM ON THE SCREEN /////////////
    drawLine(0,250,500,250);
    drawLine(250,0,250,500);
    for(int i = 0; i < columns;i+=20){
    drawLine(i,247,i,253);
    for(int i = 0; i < rows;i+=20){
    drawLine(247,i,253,i);
    // GET THE FUNCTION COEFFICIENTS ///////////////////////
    // theFunction[0] will have the x^3 coefficient
    // theFunction[1] will have the x^2 coefficient
    // theFunction[2] will have the x^1 coefficient
    // theFunction[3] will have the x^0 coefficient
    Scanner scan1 = new Scanner(new File(filename));
    for(int i=0;i<4;++i){
         theFunction[i] = scan1.nextDouble();
    scan1.close();
    // DRAW THE FUNCTION ////////////////////////////////////
    computeGrid();
    drawDiscrete();
    drawContinuous();
    private double computeFunction(int x)
         double a=theFunction[0];
         double b=theFunction[1];
         double c=theFunction[2];
         double d=theFunction[3];
         double answer=(a*Math.pow(x,3.0)+b*Math.pow(x,2.0)+c*Math.pow(x,1.0)+d*Math.pow(x,0.0));
         return answer;
    private void computeGrid()
              // Populate the 'grid' array with true values that correspond
              // to the discrete function.
              // The 'grid' array is the internal representation of the function
         for(int x=0; x<columns; x++)
                   if(computeFunction(x)>=0&&computeFunction(x)<500)
                   grid[(int)computeFunction(x)][x]=true;
    private void drawDiscrete()
              // Use drawDot(x,y) to draw the discrete version of the function
         for(int x=0;x<columns;x++)
              for(int j=0;j<rows;j++)
         if(grid[x][j])
              drawDot(x,j);
    private void drawContinuous()
              // Use drawLine(x1,y1,x2,y2) to draw the continuous version of the function

    Rest of code:
    import java.util.Scanner;
    import java.io.*;
    public class Main {
        public static void main(String[] args) throws IOException{
        String infile;
        Scanner scan = new Scanner(System.in);
        // The input file should have 4 doubles in it
        // corresponding to the 4 coefficients of a cubic function.
        // A GOOD EXAMPLE:
        //                  0.01
        //                  0.0
        //                  -5.0
        //                          50.0
        // CORRESPONDS TO FUNCTION: 0.01*X^3 - 5.0*X + 50.0       
        // ANOTHER GOOD EXAMPLE:
        //                  0.0
        //                  0.01
        //                  -1.0
        //                          -100.0
        // CORRESPONDS TO FUNCTION: 0.01*X^2 - X - 100.0       
        System.out.println("Please enter filename of input file: ");
        infile = scan.next();
        graphingCalculator cal = new graphingCalculator(infile);
    }

  • Maths (simple sum) based form security for preventing spam

    I'm looking at possibly implementing a math/arithmetic type of spam prevention solution (within a few forms on our site) and have been led to believe the solution is a rather complex one that requires knowledge of php to write.
     However, I believe I've found a ready-made solution that simply requires the user to insert suggested bits of code on your form/page and it should work. 
    Before I start investing time in it, could anybody with some knowledge of these php anti-spam solutions confirm for me whether the following solution is likely to work, and is it as simple as it's suggested in the article? This solution can be found on the following page: http://www.lateralcode.com/basic-math-security/
    Also, could that math security code work well in conjunction with the 'honeypot' code (that I'm already trying out) or is it likely to create a problem with the two clashing? Would you recommend using them together? Thanks.

    Max Miguta wrote:
    I'm looking at possibly implementing a math/arithmetic type of spam prevention solution (within a few forms on our site) and have been led to believe the solution is a rather complex one that requires knowledge of php to write.
    However, I believe I've found a ready-made solution that simply requires the user to insert suggested bits of code on your form/page and it should work.
    Before I start investing time in it, could anybody with some knowledge of these php anti-spam solutions confirm for me whether the following solution is likely to work, and is it as simple as it's suggested in the article? This solution can be found on the following page: http://www.lateralcode.com/basic-math-security/
    Also, could that math security code work well in conjunction with the 'honeypot' code (that I'm already trying out) or is it likely to create a problem with the two clashing? Would you recommend using them together? Thanks.
    I don't know why you would need to go to the lengths of that article to be honest creating this function and that function. In my opinion is really rather overkill.
    You can set this up really rather simply - Heres a form with randomly generated numbers:
    <?php session_start();?>
    <?php
    $_SESSION[firstNo] = rand(1,10);
    $_SESSION[secondNo] = rand(1,10);
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Website Form</title>
    </head>
    <body>
    <form id="mailForm" method="post" action="validate.php">
    <p>
    <label for="name">Name</label><br>
    <input type="text" id="name" name="name">
    </p>
    <p>
    <label for="email">Email Address</label><br>
    <input type="text" id="email" name="email">
    </p>
    <p>
    <label for="address">Address</label><br>
    <input type="text" id="address" name="address">
    </p>
    <p>
    <label for="comments">Comments</label><br>
    <textarea id="comments" name="comments"></textarea>
    </p>
    <p>
    <label for="number"><?php echo $_SESSION[firstNo]." + ".$_SESSION[secondNo]." ="; ?></label><br>
    <input name="number" type="text">
    </p>
    <p>
    <input type="submit" name="submit" id="submit" value="submit">
    </p>
    </form>
    </body>
    </html>
    Heres the validate php file that will check that the number entered on the form is correct and if it is will send the post. If it isn't the script will stop running. Just change $to = "[email protected] to your email address
    <?php session_start();?>
    <?php
    $correctNo = $_SESSION[firstNo] + $_SESSION[secondNo];
    // get name
    $name = trim($_POST['name']);
    // get email address
    $email = trim($_POST['email']);
    // get address
    $address = trim($_POST['address']);
    // get comments
    $comments = stripslashes(trim($_POST['comments']));
    $to = "[email protected]";
    $subject   = "Comments from website";
    $headers  = "From: $email\r\n";
    $headers .= "Reply-To: $email\r\n";
    $message = "Name: $name\n\n";
    $message .= "Email Address: $email\n\n";
    $message .= "Address: $address\n\n";
    $message .= "Comments: $comments\n\n";
    if($_POST['number'] == $correctNo) {
    mail($to, $subject, $message, $headers);
    else {
    exit;
    ?>
    As for the honeypot in conjunction with the maths solution, yes you can leave that in as it will do no harm

  • Sum calculated field in report

    Hi, I have a report that groups by employee then by machine. In this report I sum several fields, but need to sum a calculated field and can't figure it out. This is the calculation:
    <?( QTY_MOVED) div ( TIME +.001 ) div ( INVERSE + .001)?>
    This is a total field using a field that works fine.
    <?sum(current-group()/QTY_REJ)?>
    How do I incorporate the calculation in the <?sum(current-group()/.............I get errors if I just put in the calculation above.
    thanks!

    Thank you for your help. After taking your advice and getting it to work by messing around with the brackets, management has changed their mind on the calc. Now they want me to use this calculation:
    SELECT EMPLOYEE, SUM(QTY_MOVED), SUM(QTY_REJ), SUM(TIME), (nvl([b]sum(QTY_MOVED),0)/nvl(sum(TIME),0))/nvl(sum(INVERSE),0) eff ,'DIRECT'
    FROM VW_TIMETRACK
    WHERE START_DATE >= :BEGIN
    AND START_DATE <= :END
    AND WORK_ORDER <> ' '
    GROUP BY EMPLOYEE
    to get the average. Now the weird thing is, I can get the value in toad, and I can get it to output in raw xml data, but when I try to add the eff field right next to the sum(time) field in the word form, nothing shows up. Absolutely no data. But it is in the xml. I'm using <?sum(current-group()/EFF)?> , just like I am for <?sum(current-group()/TIME)?> . I've made it text, numeric, decimal. Nothing is coming out.

  • 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.

  • Simple percentage calculation

    Hello,
    i am new to Numbers...i need to do something i think is very simple, but still can't figure out how to...
    Basically i need to have a calculation of percentage.
    Say in cell B2 i have a certain value, i would like to have cell C2 that calculate B2 value + the 20% of B2 value.
    Would it be possible? Which formula should i use?
    Or would i need to set C2 only as percentage value (20%), then set a SUM (B2+C2) formula in D2?
    I've actually already tried all this, but i must make some formula editing errors...
    Appreciate your help.
    Max

    Either if these will do the job:
    =B+B*0.2
    =B*1.2
    "20 percent" is just a 'fancy' way of saying "20/100", and "20/100" expressed as a decimal is "0.20"
    =B+B*20%
    This will also work, but you will need to set the cell's format to display the result as a number. Set to Automatic, the cell will choose Percent to display the result.
    Regards,
    Barry

  • SUM Calculations

    Hi.
    I am using OracleBI Discoverer 10g (10.1.2.00.00) and am having an issue were I can't SUM a column. When try to sum the column I receive "Sum: " with no value. The things I have tried are: Changing the item to a detail, or Sum.
    Creating a Calculation using the Item.
    The data in the column are defined as a Number.
    Anybody have any ideas on what I can do to fix this.
    Thanks
    Anami

    If you refer to Discoverer documentation somewhere it is explained how it does the aggregations. For the totals, if Discoverer determines that the totals are invalid it will not display the result. consider a simple e.g
    Master Master_num Detail Detail_num
    m1 10 d1 1
    m1 10 d2 2
    m2 11 d4 8
    m2 11 d5 9
    Now if you ask Disco to total on Detail_num it will happily do it for you as there is "no duplication" of rows.
    If you ask Disco to total on Master_num, it will tell "sorry can't do that", why? because you have defined the joins in the EUL identifying the master-detail relationship. Using this join criteria it determines which columns can be aggregated.
    solution 1: Do a Cell sum on master_num, but if you just do cell sum it will show you (10 + 10 + 11 + 11) and if you pick distinct Cell sum then it will be (10+11)
    So depending on what you want pick the right choice.
    solution 2: change the join to one-to-one instead of master detail.
    solution 3 : usually all the totals should come from the detail folder if master and child elements exists together in the same report. avoid master totals.
    regards
    http://www.infocaptor.com
    Desktop BI tool

  • How do I use SQL statements to perform calculations with form fields????

    Please help!!! I don't know how to use a SQL statement within my APEX form......
    My form is below. The user will enter the values in the form. Click on Submit. Then we need to run a SQL select statement with those values.
    Our form looks like this:
    Start_Date ____________
    Per_Period ____________
    Period ____________
    [Submit Button]
    The user will enter these 3 values in the form.
    This is an example of an user providing the values:
    Start_Date 03/14/08_______
    Per_Period $200.00________
    Period 4____________
    [Submit Button]
    Then they will click the Submit Button.
    The SQL statement (BELOW) returns output based on the users selections:
    START_DATE PER_PERIOD PERIOD
    14-MAR-2008 00:00 200 Week 1 of 4
    21-MAR-2008 00:00 200 Week 2 of 4
    28-MAR-2008 00:00 200 Week 3 of 4
    04-APR-2008 00:00 200 Week 4 of 4
    Total 800
    This is the full text of the SQL that makes the output above:
    with criteria as (select to_date('03/14/08', 'mm/dd/rr') as start_date,
    4 as periods,
    'Week' as period,
    200 per_period from dual),
    periods as (select 'Week' period, 7 days, 0 months from dual
    union all select 'BiWeek', 14, 0 from dual
    union all select 'Month', 0, 1 from dual
    union all select 'ByMonth', 0, 2 from dual
    union all select 'Quarter', 0, 3 from dual
    union all select 'Year', 0 , 12 from dual
    t1 as (
    select add_months(start_date,months*(level-1))+days*(level-1) start_date,
    per_period,
    c.period||' '||level||' of '||c.periods period
    from criteria c join periods p on c.period = p.period
    connect by level <= periods)
    select case grouping(start_date)
    when 1 then 'Total'
    else to_char(start_date)
    end start_date,
    sum(per_period) per_period,
    period
    from t1
    group by rollup ((start_date, period))
    THANKS VERY MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    You're just doing a parameterized report, where the input fields are your parameters.
    Check out the Advanced Tutorial titled Parameterized Report here:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/rprt_query.htm#BGBEEBJA
    Good luck,
    Stew

  • How to avoid duplications making a SUM calculated field

    Hi, I'm trying to resolve this problem;
    In my dataset (in a custom folder on the administrator) I have a list of tickets (with some attributes), and some of them are duplicated:
    For example
    Ticket_id     Group_id             Ticket_date                Resource_name          Ticket_status      
    5416          100000401       10/12/2007 7:10:31 am                Mr. A                 2
    5416          100000401       9/1/2008 11:00:44 pm                 Mr. A                 2
    57381         100000401       27/12/2007 11:37:11 am               Mr. A                 2
    57381         100000401       15/1/2008 9:33:12 am                 Mr. A                 2
    I want this duplication because I need it when I filter the dataset (using the Ticket_date) with two parameters:
    Ticket_date between lower_limit_date and upper_limit_date
    So, inside the report, regarding the ticket's number, if I take 2 records with the same ticket_id, I have a calculated field where I use the COUNT_DISTINCT and for each couple of tickets the count is always =1; in this way (inside the report) I have the following fields:
    Group_id           Count_tickects   Resource_name  
    100000401              2                    Mr. A                 This is OK !
    Now, if I want to count how many tickets have the status = 2 (it means they are closed), I want to obtain 2 and NOT 4
    I tried to use this calculation (Tickets Closed): SUM(CASE WHEN "Tickets Report #7 COMPL".Ticket Status Id = 2 THEN 1 ELSE 0 END)
    but I always had the result of 4...and this not correct, because the tickets are only 2...
    I also tried to use some analytic function using the OVER PARTITION BY, but I didn't obtain the correct result
    In other words I'd like to achieve this:
    Group_id           Count_tickects   Tickets Closed     Resource_name
    100000401              2                     2             Mr.AAny help will be appreciated
    Alex

    Hi Rod, thanks for the reply,
    I tried this calculation
    COUNT_DISTINCT(CASE WHEN "Tickets Report #7 COMPL".Incident Status Id = 2 THEN 1 ELSE 0 END)
    but it retrieves 1; it's right, because the result of the CASE statement is always 2 (the Ticket_status is always 2, 4 times), but this is not what I expect.
    I'd like to calculate how many tickets are effectively opened (Ticket_status = 2) and this result is *2*, because I have only 2 ticket_id (5416 and 57381); the problem is that inside the data set these two ticket_id's are repeated two times.
    I can't use "Hide Duplicate Rows" because this is only a layout solution (behind I have always the duplication); I can't use more than one aggregate function together because I have the error: Nested aggregate functions are not allowed...
    To resolve this problem, I think, I have to restrict the records which are processed by the CASE statement; instead of pass to the calculation all four records (twice the ticket_id 5416 and twice the ticket_id 57381) I have to pass only two records (one the ticket_id 5416 and once the ticket_id 57381).....but how....???
    Alex

Maybe you are looking for