A simple Calculation (number) field is warming my brain!
IF(Type = "Dividend";24;32)
“Type” is the name of a Script field which contains “Dividend” or one of two other values.
24 and 32 are two arbitrary numbers to help me sort things out.
With this Calculation, all the records have 24 in the Calculation field, no matter whether Type contains “Dividend” or one of the other values.
With IF(Type = "";24;32)
, all the records still show 24.
With IF(TaxYear = "1718";24;32)
, all the records in Tax Year 1718 show 24. The others show 32, as expected.
I can’t see what I’m doing wrong when referencing the field “Type”.
The IF()
function works only on numeric type data. Use IFEQUAL(Type; "Dividend"; 24; 32)
for comparing text vales.
Easy when you think like an IF !