Solved

Calculating running balance in a portal

Posted on 2011-02-21
2
1,078 Views
Last Modified: 2012-05-11
I have the following fields
Start Date
End Date
Days absent=EndDate-StartDate
DaysLeaveDue=30 (Fixed value)
BalanceLeaveDue: DaysAbsent-DaysLeaveDue
These fields are placed in a portal in a relatted table and each time leave is taken the entires are made as a LineItem within the portal.
The problem is how to get the BalanceLeave Due calculation to show a running total of leave due for each LineItem.In Other words I want it to read the BalanceLeaveDue of the last entry:
Just in case I am not making myself clear here is an example:

DaysAbsent=3 days (LineItem 1) therefore BalanceLeaveDue results 27 Days
DaysAbsent=2 days(LineItem2)    "                                    "             25 Days (I am not getting this result,instead I am getting 27Days)
0
Comment
Question by:Krisraychris
2 Comments
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 34941553
I think you are not adding DaysAbsent like in your example LineItem1 is 3 days and Lineitem2 is 2 days that is total 5days and when you calculate Days absent You should get 5days
0
 
LVL 9

Accepted Solution

by:
jvaldes earned 500 total points
ID: 34941689
You should put the header information such as the LeaveDue days in a Header table and then the line item list in a Detail Table. Relate them by employee number such that the details related to the current header record shows in the portal. Now in the Detail table create a summary field for the DaysAbsent that summarized the DaysAbsent called sumDaysAbsent

Put that field outside the portal area in the area of the Layout that is derived from the header file. That should now contain the total of all days taken. Now add another field on the header table and  layout called BalanceLeaveDue Make this a calculated field that equals LeaveDue-sumDaysAbsent. Now put that on the header layout and it should do what you are asking for
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now