Activity Forums Salesforce® Discussions Formula Syntax for Percentages dependent on picklist values

  • Formula Syntax for Percentages dependent on picklist values

    Posted by Ryan on May 17, 2021 at 7:06 pm

    Hello! I need some assistance with a formula I am trying to create.
    Here are the fields and variables I am working with:
    Picklist 1 = List of Names
    Picklist 2 = List of Names
    Percentage 1 = %
    Percentage 2 = %

    Basically here is what I would like the formula to do for the field Percentage 2...
    If the value for "Picklist 1" = "Picklist 2", then "Percentage 2" should receive the same value that was input for "Percentage 1". If not, the value for "Percentage 2" should be set to 0.00%.

    Here is what I have and the error I am getting:
    IF("Picklist_1__c" = "Picklist_2__c", "Percentage_1__c", 0.00)
    Error: Incorrect parameter type for function 'IF()'. Expected Text, received Number

    Ryan replied 2 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics