Jump to content
Server Maintenance This Week. ×

1,2,3. If not 3 then 2, If not 2 or 3, 1.


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

Recommended Posts

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 by Guest
Link to comment
Share on other sites

Case ( IsEmpty ( Field2 ) AND IsEmpty ( Field3 ), Field1, IsEmpty ( Field3 ), Field 2 ) )

What about when there is something in Field 3 but not 2?

Link to comment
Share on other sites

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 by Guest
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 5796 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.