function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lokesh lokkilokesh lokki 

Create a formula field on Opportunity if Stage Name is Closed Won calculate 2% of amount field.

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Lokesh,

The formula can be as below. Return should be currency type.
 
if(ISPICKVAL(StageName, "Closed Won"), 0.02* Amount ,0)

If this solution helps, Please mark it as best answer.

Thanks,
 
The TechieThe Techie
Hi,

Please try 

IF(ISPICKVAL(StageName, 'Closed Won'), 0.02* Amount ,Amount)