Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

IN() function not working as expected

Hi everyone.

I'm having troubles with the IN() function, since is not working as it should be with the syntax

 

IN([Proyecto_solicitud],SELECT(PERSONAL[Proyectos permitidos_personal],[CorreoApp_personal]=USEREMAIL()))

 

[Proyecto_solicitud] is a ref type column from a table called Proyectos.

[Proyectos permitidos_personal] is an enum list with a basetype of ref also from the table Proyectos.

I want to use this formula to let the user see only the values that are in the allowed list of proyects in their respective [Proyectos permitidos_personal].

But, when i tested the formula, this occours.

G0ldsoul_0-1721149693991.png

I don't see what I'm  doing wrong here, since I've used this function many times in the past.

Thank you for your help

Solved Solved
0 8 366
1 ACCEPTED SOLUTION

What is the error message? Or do you mean the result is just wrong? When using CONTAINS, the longer string needs to be the first element like this in your case..

CONTAINS(CONCATENATE(SELECT(PERSONAL[Proyectos permitidos_personal],[CorreoApp_personal]=USEREMAIL())),[Proyecto_solicitud])

View solution in original post

8 REPLIES 8
Top Labels in this Space