Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hello,

Could someone help me with this question?

I have a row in a portal in wich i would like to make a calculation: Bedrag= Cases*Prijs,  but if Hoeveelheid is filled in then it should calculate Bedrag= Hoeveelheid*Prijs.
The fields are all numeric. The calculation should be possible on one row, in this example i have made it on two.

image.thumb.png.4f92ff74f129a079c645ff1bd401d7b5.png

Yours sincerely

Frans

 

Posted (edited)

Try:

Case(
Hoeveelheid > 0; Hoeveelheid*Prijs;
Cases*Prijs
)

(Note that the calculation is on separate lines for clarity. FileMaker doesn't particularly care about line breaks.) Read about the Case statement here.

Edited by doughemi
correct calculation
Posted
3 hours ago, doughemi said:

Try:


Case(
Hoeveelheid > 0; Hoeveelheid*Prijs;
Bedrag= Cases*Prijs
)

(Note that the calculation is on separate lines for clarity. FileMaker doesn't particularly care about line breaks.) Read about the Case statement here.

Hi doughemi,

Thanx for your reply,  the calculation  Bedrag=Cases*Prijs is not working, but when i do  Cases*Prijs  it works ok.

Thank you for support!!

Posted

Cut and paste at 1:00 AM does that to a guy. Sorry! Glad you figured it out.

  • Thanks 1

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