Having trouble with expression for turning a field into a list for using in a IN() expression

I’m trying to filter out some records by checking their ID column values against another column’s Enumlist (Ref Type) values.

When I use this expression and test it with the editor it works:

IN([linkLocalidad], INDEX(currentUser[localCSV], 1)
)

But when running it in the App it only brings records that match the first value of the Enumlist.

If I manually make a list of the Enumlist values like so:

IN([linkLocalidad], LIST(E01 , E02 , E03)
)

It works fine in the App.

I have tried a bunch of different ways of turning this “INDEX(currentUser[localCSV], 1)” into a list, but so far nothing seems to work.

Let me know what other Info you guys need to help me out.

Thanks in advance!

Solved Solved
0 30 1,232
1 ACCEPTED SOLUTION

Try:

in([linkLocalidad], Split(Concatenate(currentUser[localCSV]), " , "))


@Hamlet your original formula would only pull the first value from the Current_User’s [LocalCSV] column.

If you had, for example: {1, 2, 3, 4} in that list, your original formula (using index) might be pulling the first number, not the list-of-a-list

  • Sometimes things process differently on the device than they do in the editor
    • Maybe on the device, the list-of-a-list is being converted automatically - and that ‘automatic’ action is getting in the way… maybe. I dunno.

Try wrapping your list-of-a-list inside a concatenate() and see if that helps.

View solution in original post

30 REPLIES 30
Top Labels in this Space