Solved

Calculating running balance in a portal

Posted on 2011-02-21
2
1,081 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

21 Experts available now in Live!

Get 1:1 Help Now