January 5, 200422 yr I created a calculation field to track annual vacation and sick leave (previous yr balance + earned leave - used leave = new balance) and it is working just fine. However, for vacation time, we are only allowed to carryover a maximum of 48 days. What do I add to the calc to get a result no > 48?
January 5, 200422 yr (Case(previous yr balance>48,48,previous yr balance) + earned leave - used leave)
January 6, 200422 yr Hi Dblwide, I suggest that you use something along the lines of: Min(48, PreviousBalance)
January 6, 200422 yr Author Thanks to John and Ray for your replies. I still need help. The "previous balance" field is already <= 48. I need the "new balance" that the calculation field is calculating to be no greater than 48. I tried modifications of your suggestions to get this to work, but I can't get it right. Any other suggestions? I. E: previous balance = 48 days, + earned 15 days, - used 10 days, new balance is still 48 not 53.
January 6, 200422 yr So Min( 48, previous yr balance + earned leave - used leave ) doesn't work for you?
Create an account or sign in to comment