Forum Discussion
lookup value in another column
- 2 years ago
1. Create blank query
2. Open Advanced Editor
3. Replace everything you see there with my code
4. Replace your_table with MASTER in the code
- 2 years ago
AlienSx Brilliant, that has worked perfectly, thanks so much for your help!
hi, llamasarefun use List.Contains(lookup_value, ref_to_another_column)
or List.PositionOf(lookup_value, ref_to_another_column, Occurence.First) <> -1
- llamasarefun2 years agoHelper I
Hi, thanks for the quick reply. I have tried using the List.contains formula but I am getting an error saying
Expression.Error: We cannot convert the value 312 to type List.
Details:
Value=312
Type=[Type]- AlienSx2 years agoSuper User
you need to refer to the column of the WHOLE table, not it's value in the currect row. Such reference looks like table_name[column_name]
- llamasarefun2 years agoHelper I
thanks,
I thought I was taking the whole column, my formula looks like this: