Dr. Evil Posted August 18, 2007 Posted August 18, 2007 Greetings! Sample File Attached. SYNOPSIS: Calculation field clc_marker works except for the “Working” past due Case. I need Assignment clc_marker to dynamicly: Label assignment with “TARDY” if Assignment Status is “Working” and past due. Label assignment with an “X” if Assignment Status is “Complete” and past due. FAULTY CALCULATION: Case( date_deadline - Get(CurrentDate) ≥ 0; date_deadline - Get(CurrentDate); date_deadline - Get(CurrentDate) ≥ 0 and txt_status = "Working"; "TARDY"; "X" ) Please help, thank you for your interest! Sincerely, DynamicPastDueMarker.fp7.zip
CobaltSky Posted August 18, 2007 Posted August 18, 2007 Dr Evil, In Case( ) expressions, the result associated with the first true argument is returned. Since the first test in your formula is a subset of the second, it will always be returned (ie in all cases where the first argument is valid). I suggest you try re-ordering the expression and adjusting the arguments (so that the first test checks if the due date has passed). Eg: Case( date_deadline < Get(CurrentDate) and txt_status = "Working"; "TARDY"; date_deadline ≥ Get(CurrentDate); date_deadline - Get(CurrentDate); "X" ) If I have correctly understood what you're trying to do, that should get you closer to the desired result.
Dr. Evil Posted August 18, 2007 Author Posted August 18, 2007 Thank you CobaltSky I appreciate your explanation! I have posted a finished working solution at: http://fmforums.com/forum/showpost.php?post/263724/
Recommended Posts
This topic is 6367 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