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!
llamasarefun okay. CR LOOKUP VALUE is your column with lookup values. What is your lookup column?
- llamasarefun2 years agoHelper I
AMOUNT IN LOCAL CURRENCY is the lookup column
- llamasarefun2 years agoHelper I
Hi, the lookup column is AMOUNT IN LOCAL CURRENCY
- llamasarefun2 years agoHelper I
Hi AlienSx were you still able to help me with this please?
- AlienSx2 years agoSuper User
Hi, llamasarefun . CR LOOKUP VALUE is basically equal to AMOUNT IN LOCAL CURRENCY * -1 in any given row of your table (sign aside). Lets suggest that you would like to check if your table has more than one row with such amount. Then try this
let Source = your_table, lu_column = List.Buffer(Source[CR LOOKUP VALUE]), yes_no = Table.AddColumn( Source, "YN", each if List.Count(List.PositionOf(lu_column, [CR LOOKUP VALUE], Occurrence.All)) > 1 then "YES" else "NO" ) in yes_no- llamasarefun2 years agoHelper I
Hi AlienSx
I have put this in and am getting the error 'A cyclic reference was encountered during evaluation'