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 6082 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a Price field that I would like to auto-calcualte based on which answer is chosen from a dropdown list.

I have a Member field, which is either a Yes or No, chosen from a dropdown list. The Member cost is $35, the Non-Member cost is $40.

I would like the Price field to auto calculate the price based on either the Yes (Member) or No (Non-Member).

I know I start with price= in the formula, but which would be the correct stament to make the choice?

Thanks in advance for your help.

Posted (edited)

Try:

Your Calculation Field, I'll use Price,

Price (calculation, Result Number) =

Case (Member = "Yes"; 35; 40)

HTH

Lee

Edited by Guest
Posted

Prices change from time to time, and it's not a good idea to hard-code them into calculations. Use a lookup instead.

BTW, price must be of type Number, otherwise you won't be able to summarize it.

Posted

Oops.

I changed the results to number.

Good point about hard coding the amount.

Lee

Posted (edited)

Thanks, that did the trick.

It is a number field.

These numbers will not be changing. They are set prices for a trip reservation program that I am creating.

Edited by Guest

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