Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5775 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
Posted (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 by Guest
Posted (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 by Guest
Posted

Could we use more meaningful names here? Like:

Limit = 1000

cDifference = Min ( Limit ; FieldA - FieldB )

cOver = Max ( 0 ; FieldA - FieldB - Limit )

Posted (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 by Guest
Posted

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.

Posted

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 )

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.