Jump to content

This topic is 7696 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

Hi Dblwide,

I suggest that you use something along the lines of:

Min(48, PreviousBalance)

wink.gif

Posted

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.

Posted

So Min( 48, previous yr balance + earned leave - used leave ) doesn't work for you?

This topic is 7696 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.