Calculate the balance between income and expenses

Hi, my problem is explained in picture below. How to perform calculations that include the result of the previous row in the next. Etc.

Can help you with this. I can attach a form if necessary.

Thank you

Picture6.png

Using the FormCalc language will facilitate...

In your field of balance, you should check if its index is greater than 0, if it is, then you should use the balance before him and add it to the current balance.

If ($. parent.index > 0) then

$.rawValue = income - expenses + $.resolveNode (Concat ("Table1.Row1 [", $. "]")) parent.index - 1, "]")). Balance

on the other

$.rawValue = revenue - expenses

endif

It must be something like that... change the names to use the right reference_syntax

Tags: Adobe LiveCycle

Similar Questions

  • Calculate the difference between AM and PM time

    I use a form and I want to have the time between two times calculated. This part works - but I have problems getting the data after that contribution has been calculated.

    When you enter a time in the format hh: mm tt - I so that it has calculated and output in the format hh: mm already. He does not accept this entry however - just trying to use everything that is initially formatted. Currently, this is how I capture the data of these two areas, I need to take data. I can take this and people have to use military time, but I'd rather just take input in the format hh: mm tt.

    var hrsStart = parseInt(this.getField("sTime").value.split(":")[0]);

    var minStart = parseInt(this.getField("sTime").value.split(":")[1]);

    var hrsEnd = parseInt(this.getField("stTime").value.split(":")[0]);

    var minEnd = parseInt(this.getField("stTime").value.split(":")[1]);

    That's how I'm calculation of data entry in the two fields.

    var time = this.getField("stTime");

    var hours = Number(time.match(/^(\d+)/)[1]);

    var minutes = Number(time.match(/:(\d+)/)[1]);

    var AMPM = time.match(/\s(.*)$/)[1].toLowerCase();

     

    if (AMPM == "pm" && hours < 12) hours = hours + 12;

    if (AMPM == "am" && hours == 12) hours = hours - 12;

    var sHours = hours.toString();

    var sMinutes = minutes.toString();

     

    if (hours < 10) sHours = "0" + sHours;

    if (minutes < 10) sMinutes = "0" + sMinutes;


    this.getField("stTime").value = (sHours +':'+sMinutes);

    My answer of Validation?

    I also tried to make getHours / getMinutes, but values come up unresolved.

    I will accept any help - even if it is not consistent with this solution.  I agree with being completely wrong.  =)

    You must add the part of the date as a static string in your code. Something like this:

    util. SCAND ("h: mm tt d/m/yy", strStart + "01/01/15");

  • Calculate the difference between the subtotals

    I'm working on a simple report that looks like this:

    EmployeeID EmployeeName Date salary wages
    1234 Tom June 1, 2009 $2000.00
    2345 harry $2400,00 June 1, 2009
    3456 sally $3000.00 June 4, 2009
    Partial total salary: $7400,00

    Advances of salary Date EmployeeID EmployeeName
    2345 harry $1000.00 may 15, 2009
    3456 sally $750.00 may 15, 2009
    Advances subtotal: $1750,00
    Total: $5650,00

    Is there any function in Discoverer, which calculates the difference between subtotals and the poster as a total. Please advise if you can create a named for this sum calculation?

    Published by: user1049091 on August 6, 2009 11:33

    Published by: user1049091 on August 6, 2009 12:38

    Hello

    Not really possible. You the best approach is probably to create a named calculation that contains the difference: for example

    Decode (salary_type, 'Pay', 'Progress', - wages)

    Then create a total on this calculation. You can often hide the calculation itself in terms of formatting and white text on white background.

    Rod West

  • How to calculate the difference between a Date column and the Date yesterday in the analysis (in the formula in the column)

    . For example, I need to calculate the difference between a date column, 'Table_Name '. "' Column_Name ' and (Current_Date-1). I tried different ways to do this. But nothing seems to work.

    Try the below formula.

    Replace "Time". "" Date "with your column.

    TIMESTAMPDIFF (SQL_TSI_DAY, "Time". "Date", TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE))

    Thank you!

  • How can I fix the link between adobe and windows if I see .pdf not win32 application

    How can I fix the link between adobe and windows if I see .pdf not win32 application, without the disc?

    "Adobe" is the name of the company that provides a great many different applications.

    Adobe Reader is free and allows you to view pdf files.

    Adobe Acrobat is expensive and allows you to create, edit and view pdf files.

    Assuming that you are referring to the reader, uninstall all the versions of it using the control panel > add or remove programs.  Then either

    1. go to http://get.adobe.com/reader/?promoid=BUIGO and download the current version (remember to uncheck the box to install McAfee Security Scan Plus.

    or

    2. go to http://www.foxitsoftware.com/Secure_PDF_Reader/ and download Foxit Reader, a small pdf reader and many more.

    Then, install the reader that you have downloaded.

  • calculate the balance

    A temp table has the following values. I have trouble finding a way to calculate the balance. I think the problem for me, it's the setting value can be either + or-. Can you help me? can you help me?
    inv     Date          code     comments     amt applied  balance     
    T090     08/23/2005                               120     
    T090     10/02/2005     A     inv adjust     -90     
    T090     04/25/2006     C     chk 123          30          
    B080     10/01/2007                               240
    B080     12/21/2007     C     chk 221          120     
    B090     02/02/2008     A     inv adjust     20
    B091     03/06/2011                              200
    B091     03/23/2011     A     inv adjsut     -200
    here = > see balance column calculation
    inv     Date          code     comments     amt applied     balance
    T090     08/23/2005                               120          
    T090     10/02/2005     A     inv adjust     -90          30
    T090     04/25/2006     C     chk 123          30          0     
    B080     10/01/2007                               240
    B080     12/21/2007     C     chk 221          120          120 
    B080     02/02/2008     A     inv adjust     20          100 
    B091     02/06                                   200
    B091     03/23/2011     A     inv adjsut     -200          0
    Zen

    Hi, Zen,

    Did you see my last post?

    Frank Kulash wrote:
    ...
    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

    Looks like you need to change the analytical ORDER BY clause to remove the links.

  • Need help to calculate the difference between times

    Hi all

    I have two fields that stores just the hour in 24-hour ex: 08:00 and 20:00 now I want to calculate the difference between two times

    Kindle help me

    Thanks for your help

    Thank you
    Ravi

    Hello

    diiference in hours

    SQL> WITH T AS (SELECT '08:00' ST_TIME, '20:00' END_TIME FROM DUAL)
      2  SELECT (TO_DATE (END_TIME, 'HH24:MI') - TO_DATE (ST_TIME, 'HH24:MI')) * 24 DIFF_HOURS
      3    FROM T;
    
    DIFF_HOURS
    ----------
            12
    
    SQL> 
    

    G.

  • FormCalc - how to calculate the difference between the two fields datetime in hh: mm?

    Hello!

    I am building a form of time sheet in which I need to calculate the difference between the start and end times and present the result.

    I'm trying to do with FormCalc but if it is easier with JS is ok too.

    So that's what I did on the total field, by using the calculate on a NUMERIC field called decimalValue event:

    elapsed = Time2Num (endTime.formattedValue, "HH: mm")-Time2Num (startTime.formattedValue, "HH: mm")

    And then I tried to convert a time field:

    Total = decimalValue.rawValue;

    $.formattedValue = Num2Time (total, "HH: mm")

    Well, it doesn't work, it gives me crazy results in the datetime (total) field. If I type 09:00 and 09:30, the final result is... 22:30. Huh?

    Please, could someone help me understand how this thing works?

    Thanks a lot for the tips!

    Marcos

    Hi Marcos,

    Here are some examples:

    https://Acrobat.com/#d=kCPIgVkd09qrx6h-WRXxbQ

    https://Acrobat.com/#d=EsWqBMBt3sgEXnMSsK5pRA

    Hope that helps,

    Niall

  • I bought a gift card a while and now I don't have the balance for her and when I try to buy I can not because I already bought it. Help, please

    I bought a gift card a while and now I don't have the balance for her and when I try to buy I can not because I already bought it. Help, please. If I can't do my 15 birthday money are wasted. He said as I already had a gift card in my account, but somehow everything is over now when I was not yet buy anything!

    A gift card is redeemable only once, it is useless to try to buy it back again.

    To see what, if any, balance you have left on the account you share you: see your credit balance - Apple Support iTunes

    To see what you bought on the account and therefore potentially used some/all of it: see your purchase history in iTunes on Mac or PC - Apple Support store

  • What is the best between Firefox and Aurora?

    What is the best between Firefox and Aurora?

    Hello DarshanK, that depends on what type of user you are probably: https://www.mozilla.org/firefox/channel/

  • What is the difference between extensions and Plugins and Add-ons?

    I'm sorry if here is not the right place for this post.

    What is the difference between extensions and Plugins and Add-ons? Apparantely, they differ in some sense or aspect, but I do not know how. Please, if it is not too complicated, explain in detail and simple language. Thanks in advance to 1 million.

    Kind regards
    Danesh

    Hi Danesh,

    You should take a look at this article for an explanation. Plugins and extensions are essentially types of Add-ons as well as of the characters and themes.

    Hope this helps!

  • What is the difference between Firefox and Namoroka 64-bit? I have a 64-bit computer. Which should I use?

    What is the difference between Firefox and Namoroka 64-bit?
    I have a 64-bit computer. Which should I use?

    The officially supported only is Firefox - which is your best choice, unless you want to test the new features...

    http://www.Mozilla.org/en-us/Firefox/new/

  • What is the difference between dawn and the beta?

    What is the difference between dawn and the beta?

    Beta is the next version of Firefox that is due to be released in 5 weeks, and Aurora is the one after that--like an Alpha version of development.

  • Whenever I type the letter between f and h (he can't come in here or the problem occurs, so I will use 'p' instead), the locking of the keyboard and an informal search screen is displayed in the toolbar. Also happeninp in emails and 'my documents' but no

    I can't use a certain letter on my keyboard when in Firefox, email or my documents without the Freezin' screen and a pop up appears in my toolbar for a brousin site. The character I can not type is the letter between f and h in the alphabet. I have no problem with this letter in other applications, so I know that's not the keyboard. How to make and use this letter?

    This has happened

    Don't know how many times

    Is a week by o

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use 'Disable all add-ons' on the start safe mode window.
    You will need to close and restart Firefox after each change through "file > exit" (on Mac: "Firefox > Quit")

  • Is the difference between TSMC and Samsung Chip in the real Iphone 6 s? If this is the case, how can I found it before buying a new? How can I

    Is the difference between TSMC and samsung chip processors in the real Iphone 6 s? If this is the case, how can I found it before buying a new one?

    No, it isn't.

Maybe you are looking for