Lucky Posted May 27, 2005 Posted May 27, 2005 Hi Is it possible to have a calculation that looks at several fields to determine a answer such as: Field 1= Artwork Field 2 = Stereos Field 3 = Premount Field 4 is the calculation. Each has a pull down menu of "Yes" or "No" What I would like is if: Artwork = Yes Stereos = Yes Premount =Yes the answer to be " Artwork-Stereos-Premount " Artwork = Yes Stereos = No Premount = No the answer to be " Artwork Only " Artwork = No Stereos = Yes Premount =No the answer to be " Stereos Only " and so on. Any ideas
BobWeaver Posted May 27, 2005 Posted May 27, 2005 Substitute(Trimall (Case(Artwork="yes";"Artwork ";"")& Case(Stereos="yes";" Stereos ";"")& Case(Premount="yes";" Premount";"");1;1);" ";"-") Or: Let([ words=Case(artwork="yes";"Artwork ";"")& Case(stereos="yes";" Stereos ";"")& Case(premount="yes";" Premount";""); Only=Case(WordCount(words)<3;" only";"")]; Substitute(TrimAll (words;1;1);" ";"-")&Only)
Lucky Posted June 6, 2005 Author Posted June 6, 2005 If I wanted to apply this calculation to a DB in FM V6 what would it need to say? Peter
Søren Dyhr Posted June 6, 2005 Posted June 6, 2005 Enders first calc should do it ...when finished !! However would I approch such a matter this way: Choose ( Case ( PatternCount ( Artwork ; "yes" ) ; 4) + Case ( PatternCount ( Stereos ; "yes" ) ; 2) + PatternCount ( Premount ; "yes" ); ""; "Premount Only"; "Stereos Only"; "Stereos - Premount"; "Artwork Only"; "Artwork - Premount"; "Artwork - Stereos"; "Artwork - Stereos - Premount") --sd
Recommended Posts
This topic is 7178 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