You need to sign in to do that
Don't have an account?

Can we compare 2 multi-select picklist fields in a formula field? If so how?
Can we compare 2 multi-select picklist fields in a formula field? If so how?
You need to sign in to do that
Don't have an account?
Thanks for your help, a combination of ISPICKVAL and INCLUDES worked!
Salesforce support too helped with this.
Below is the solution
IF(
AND(
ISPICKVAL(Product__c, "Nike"),
INCLUDES( $User.Product_Access__c, "Nike")
)
, "Y",
IF(
AND(
ISPICKVAL(Product__c, "Reebok"),
INCLUDES( $User.Product_Access__c, "Reebok")
)
, "Y",
IF(
AND(
ISPICKVAL(Product__c, "Bata"),
INCLUDES( $User.Product_Access__c , "Bata")
),
"Y", "N"
)
)
)
All Answers
If you still confused after reading this link, please share your requirement we can try that out.
Thanks :)
Thanks for the links above. I had gone through these, but they did'nt help.
The requirement is at User level there are 2 fields Account and Product which are multi-select picklist fields, which are nothing but the user's account and product and at the case level there is account and product which are lookup fields, I am trying to create a formula field which compares the account at user level with account at case level and products at user levels with product at user level if both match then the formula field would return Y and this formula I would use in the View filter to filter cases as per the logged in user's Account and Products.
Thanks
Priya
IF( Account.Name == $User.Account__c, "Y",
IF( $User.Product_Access__c == Product.Name, "Y","N")
)
I am getting this error
Error: Field Product_Access__c is a multi-select picklist field. Multi-select picklist fields are only supported in certain functions.
Is there any workaround to achieve this functionality through formula field?
Please try with this,
Thanks :)
Thanks for helping.
I get the below error
Error: Incorrect parameter type for function 'TEXT()'. Expected Number, Date, DateTime, Picklist, received Tex
I too tried this :) moreover I think TEXT is for single value picklist and not multi select picklist.
Any other ideas are welcome :)
Thanks
Priya
Have tried with INCLUDE ? Thanks :)
Thanks for your help, a combination of ISPICKVAL and INCLUDES worked!
Salesforce support too helped with this.
Below is the solution
IF(
AND(
ISPICKVAL(Product__c, "Nike"),
INCLUDES( $User.Product_Access__c, "Nike")
)
, "Y",
IF(
AND(
ISPICKVAL(Product__c, "Reebok"),
INCLUDES( $User.Product_Access__c, "Reebok")
)
, "Y",
IF(
AND(
ISPICKVAL(Product__c, "Bata"),
INCLUDES( $User.Product_Access__c , "Bata")
),
"Y", "N"
)
)
)