Hi @Arnau_Forescat ,
You’re very close – just need to remove the quotes around your reference to the Quantitat
field. Also, your condition checking for the value “sacas” will be case-sensitive, so “sacas” does not equal “Sacas”, as you have it typed in your Tipus
field options.
IF(Tipus = "Sacas", Quantitat / 2)
You may want to round the results so you don’t have a large string of decimal digits…
IF(Tipus = "Sacas", ROUND(Quantitat / 2, 2))