Jump to content

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

Recommended Posts

Posted

I have a field "Total Cost" which is a calculation from 2 other fields

Photo Cost + Copy Cost.

I now need to perform a calculation if a radio button from a field "Discount" is checked. If this radio button is checked then I need the "Total Cost" field to be reduced by 50%.

Thanks in advance

Dave

Posted

Try this out, make Total Cost calculation as follows:

(photo cost + copy cost) - Case(discount = "yes", (photo cost + copy cost)*.5, 0)

HTH,

Adam

Posted

Same basic idea:

(photo cost + copy cost) * Case(discount = "yes", .5, 1 )

or this:

(photo cost + copy cost) / Case(discount = "yes", 2, 1 )

Note that if your discount field has a value list of "1" or "2" or ".5" (not all three choices, I mean one or the other of those as the whole list, and use a checkbox, not a radio button) you could make it even simpler. Also you'll probably want to enclose the whole thing in a Round() function.

Posted

(PhotoCost + CopyCost) * Case( Discount = "yes", 0.5, 1 ) would be faster.

Posted

Thanks Guys:

I also have a Payment Info field that indicate various payment options (radio buttons) plus an option "Make Good".

If this "Make Good" option is selected then Photo Cost and Copy Cost should be set to 0. Even if there is a Photo size selected and Ad copy has text.

Photo Cost field gets its value from the Photo Size field i.e.B)

If(Photo Size =

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