I have a picklist called state and each state has its own percentage rate. I created a percentage formula field where if the user select the State X, this percentage field should display the rate for that state. I wrote the following formula:
IF(ISPICKVAL(Estado__c , "São Paulo"), "4",
IF(ISPICKVAL(Estado__c , "Rio de Janeiro"),"4",
IF(ISPICKVAL(Estado__c , "Minas Gerais"), "4",
IF(ISPICKVAL(Estado__c , "Goiás"), "0", "Others"))))
Error: Formula result is data type (Text), incompatible with expected data type (Percent).
What's wrong? Can you help me with the eight formula for it?
4
instead of"4"
etc and change"Others"
to0
. Using CASE would be a bit clearer too.