style() to a Number field
M

Good morning all. I have this on a number field, but not woking.

let Resta := 'A pagar' - Pagado;
styled(text(Resta), if Resta > 0 then
"#FFEE00"
else
if Resta < 0 then "Orange" else "white" end
end)

N

As far as I know, styled() does not work in numeric fields.

Try a formula field (result will be text).

Reply