Minus if

Hi, I have an enum type column called "method" in a table called "order"

 

[Method] has two values "pick up" and "delivery".

----

[Delivery Fees] column has a value for delivery charge.

[Item price] column has a value of the item price.

 

[Order Total] column auto calculates the total. (delivery fees + items price)

 

***NOW*** my question is I want a way if the method column is set to "pick up" then it reduces the value of the delivery fees.

 

Here is the pseudocode how it might be in [order total] column formula:

 

[Item price]+[Deliver Fees]

And

If [Method] = Pick up

Minus 

[Delivery Fees]

 

 

Any help plz

 

 

 

 

Solved Solved
0 6 85
1 ACCEPTED SOLUTION

Just convert it as formula in computed column total :

If([Method] = "Pick up", [Item price]-[Deliver Fees], [Item price]+[Deliver Fees])

 

 

View solution in original post

6 REPLIES 6
Top Labels in this Space