Dean Redding Posted February 13, 2007 Posted February 13, 2007 I am stuck on a calculation and need some help. I have created a calculation on a date being show 4 weeks before a certain date field. eg: ="Date Due" - "Call Date" But what I want is a calculation showing that if, the call date is past the current date, then the formula equals = "Current Date"+4 I am not sure how to do it via the "if" function. Thanks In Advance
Genx Posted February 13, 2007 Posted February 13, 2007 Case( CallDate > Get(CurrentDate) ; Get(CurrentDate) + 4 ; DateDue - CallDate ) Or with If... If( CallDate > Get(CurrentDate) ; Get(CurrentDate) + 4 ; DateDue - CallDate ) The difference is: Case( Condition1 ; Result1 ; Condition2 ; Result2 ; Conditionx ; Resultx ; defaultIfNoConditionsMet ) or Case( Condition1 ; Result1 ) If: If( Condition1 ; Result1 ; defaultIfResult1NotMet) or If( Condition1 ; Result1 ) Essentially Case is more useful in 95% of circumstances...
Dean Redding Posted February 13, 2007 Author Posted February 13, 2007 Thank you for that, it works a treat!
Recommended Posts
This topic is 6554 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 accountSign in
Already have an account? Sign in here.
Sign In Now