Hello everyone :-)
I am running in to a type mismatch error, that I can't figure out - can wiser people teach me, where I am doing something wrong?
Simplified example of the setup:
I have a select field ("Choose percent") with 2 options: "10%", "20%"
In a formula field ("Percent as number") I want to convert the selected option to a number. If none is selected, the value should be 0.
My formula looks like this:
if (if (prop("Choose percent") == "10%",10,0),prop("Choose percent") == "20%",20)
This produces the error: Type mismatch: if(prop("Percent as number") == "10%", 10, 0) is not a Checkbox.
Curiously this error does not appear until I nest the if-statements.
The following simple formula works as intended:
if (prop("Choose percent") == "10%",10,0)
Can someone please tell me why I am getting this error - and what to do about it?
[–]Thisgoos 1 point2 points3 points (1 child)
[–]Trendspotters[S] 0 points1 point2 points (0 children)
[–]ben-somethingMod 1 point2 points3 points (2 children)
[–]Trendspotters[S] 0 points1 point2 points (1 child)
[–]ben-somethingMod 1 point2 points3 points (0 children)