Cant get IN function to work

adambc
New Member

Hello, I have this Select function that works perfectly and returns the value โ€œWeek , Height growth - weekly (cm)โ€
SELECT(User[Fields], [User_Email] = Usersettings(username))

Yet when I wrap this same function in an IN statement to detect if it returns โ€œWeekโ€, it return False instead of the expected True.
IN(โ€œWeekโ€, SELECT(User[Fields], [User_Email] = Usersettings(username)))

Any help on what I am missing here would be much appreciated.

Solved Solved
0 2 344
1 ACCEPTED SOLUTION

adambc
New Member

Hi Aleksi, thank you I wrapped my select statement in a SPLIT() statement to ensure it was a list and this worked.

View solution in original post

2 REPLIES 2

If it will return only one value, you should use the whole string for the IN expression likeโ€ฆ
IN(โ€œWeek , Height growth - weekly (cm)โ€, SELECT(User[Fields], [User_Email] = Usersettings(username))). Is that the case?

adambc
New Member

Hi Aleksi, thank you I wrapped my select statement in a SPLIT() statement to ensure it was a list and this worked.

Top Labels in this Space