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 3 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics

Key Differences Between Salesforce Sales Cloud and Service Cloud

in

𝐂𝐡𝐞𝐜𝐤 𝐨𝐮𝐭 𝐭𝐡𝐢𝐬 𝐢𝐧𝐬𝐢𝐠𝐡𝐭𝐟𝐮𝐥 𝐢𝐧𝐟𝐨𝐠𝐫𝐚𝐩𝐡𝐢𝐜 𝐜𝐨𝐦𝐩𝐚𝐫𝐢𝐧𝐠 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞 𝐒𝐚𝐥𝐞𝐬 𝐂𝐥𝐨𝐮𝐝 𝐚𝐧𝐝 𝐒𝐞𝐫𝐯𝐢𝐜𝐞 𝐂𝐥𝐨𝐮𝐝! Dive into the key differences between these two powerful Salesforce solutions: Focus and…