sicSRT8 Posted March 23, 2009 Posted March 23, 2009 (edited) I saw this a few weeks ago and cant find it... If i have a calc field and want to show the result as either 0 or >0 but never <0 how would i do this... do i add the not equal to <0 in the calculation? my calc is set as text as I like the format better than number. Edited March 23, 2009 by Guest
sicSRT8 Posted March 23, 2009 Author Posted March 23, 2009 I have never used max before how does it look with field 1 - field 2 = never <0
sicSRT8 Posted March 24, 2009 Author Posted March 24, 2009 If that states never less than 0 what would never greater than a 100 would look like.
sicSRT8 Posted March 24, 2009 Author Posted March 24, 2009 (edited) Is it possible to add a remainder of Min/Max to another field? Ex: Field 2 = 1000 cField 3 = Min (Field 2;Field 1 - Field4) Field 5 = Remainder of calc of field 3 over min (1000) in this case. Edited March 24, 2009 by Guest
David Jondreau Posted March 24, 2009 Posted March 24, 2009 I think this is what you're going for... Max (Field 2 ; Field 1 - Field4) - Min (Field 2;Field 1 - Field4)
sicSRT8 Posted March 24, 2009 Author Posted March 24, 2009 (edited) What about the remainder showing up in seperate field. Doing Max (Field 2 ; Field 1 - Field4) - Min (Field 2;Field 1 - Field4) just gives me the field 4 value. The calc should never be greater than field 2 but everything over should appear in field 8 Edited March 24, 2009 by Guest
comment Posted March 24, 2009 Posted March 24, 2009 Could we use more meaningful names here? Like: Limit = 1000 cDifference = Min ( Limit ; FieldA - FieldB ) cOver = Max ( 0 ; FieldA - FieldB - Limit )
sicSRT8 Posted March 25, 2009 Author Posted March 25, 2009 Actually one more... sorry Can you add a combo of saying never less than 0 and never greater than Field1 in the same calculation?
comment Posted March 25, 2009 Posted March 25, 2009 Of course you can - and I trust by now you should be able to figure it by yourself...
sicSRT8 Posted March 25, 2009 Author Posted March 25, 2009 (edited) case? I have tried putting them together using and reversing them in in way i cant think of. When I use together I get a result of 1 so that cant be right.. The only other thing I can think of is case but not sure if thats right or if im way off. I would love to be able to answer this. Edited March 25, 2009 by Guest
comment Posted March 25, 2009 Posted March 25, 2009 The general idea: Min ( Max ( LowerLimit ; n ) ; UpperLimit )
sicSRT8 Posted March 25, 2009 Author Posted March 25, 2009 I was close... don't worry i wont be a noob for long.. Thank you
sicSRT8 Posted March 31, 2009 Author Posted March 31, 2009 One more adjustment to this Min ( Max ( LowerLimit ; n ) ; UpperLimit ) Regarding this calc. What if I have two "upper limits" and want the result never to exceed the lower of the two upper limits. Woudl I use this? Min ( Max ( LowerLimit ; n ) ; UpperLimit; UpperLimit_2 ) It appears to be working but not sure if I will get errors with it later on due to diff type of values.
comment Posted March 31, 2009 Posted March 31, 2009 It should work the way you have it. You can see it's correct by reducing: Min ( [color:gray]Max ( LowerLimit ; n ) ; Min ( UpperLimit 1 ; UpperLimit 2 ) ) Min ( a ; Min ( b ; c ) ) = Min ( a ; b ; c )
Recommended Posts
This topic is 5775 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