tbfilemaker Posted June 6, 2008 Posted June 6, 2008 (edited) Greetings, I have three (Number) fields: Field1, Field2, Field3 that track Cost. I am looking for a calculation that will accomplish this logic. If there is no value in Field3, Field2. If there is no value in Field3 or Field2, Field1. Any suggestions would be greatly appreciated. Thanks in advance. Edited June 6, 2008 by Guest
mr_vodka Posted June 6, 2008 Posted June 6, 2008 Case ( IsEmpty ( Field2 ) AND IsEmpty ( Field3 ), Field1, IsEmpty ( Field3 ), Field 2 ) ) What about when there is something in Field 3 but not 2?
tbfilemaker Posted June 6, 2008 Author Posted June 6, 2008 There will always be something in field2. There has to be something in field2 before field3 can occur. Thanks for the feedback, much appreciated, I will implement this into my system. Thanks again.
tbfilemaker Posted June 13, 2008 Author Posted June 13, 2008 (edited) Greetings, I have three (Number) fields: Field1, Field2, Field3 that track Cost. I am looking for a calculation result that will take the ladder of these 3 arguments: If Field1 has a value,1 If Field2 has a value,2 If Field3 has a value,3 Meaning, if there is a value in field1, field1. If there is a value in field1 and field2, field2. I there is a value in field1,field2 and field3, field3. Note: If there is a value in field3, there will always be info in field1 and field2. If there is a value in field2, there will always be a value in field1. I apologize for posting a similar question last week, my requirements have changed. Thank you kindly. Edited June 13, 2008 by Guest
Fitch Posted June 13, 2008 Posted June 13, 2008 There's probably a more fun and elegant solution, but here: Case( Field3 ; 3 ; Field2 ; 2 ; Field1 ; 1 ) Oh, if you're in FM6 use commas instead of semicolons.
Lee Smith Posted June 14, 2008 Posted June 14, 2008 I apologize for posting a similar question last week, my requirements have changed. I merged your two topics, and sent you a Private Topic to explain why. Lee
tbfilemaker Posted June 14, 2008 Author Posted June 14, 2008 (edited) Fitch, that works perfect. Thank you all for your help. Edited June 14, 2008 by Guest
Recommended Posts
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