Jump to content

Calculation with multiple options in portal


Quant

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

Recommended Posts

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

 

Link to comment
Share on other sites

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

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!!

Link to comment
Share on other sites

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