Forum Discussion
Mcode:Error result If Look Up Value doesnt exist at Source table (should show as blank not "Error")
- Anonymous5 years ago
Hi Anonymous
It takes time to scan so many rows while using Table.SelectRows, please try Table.Group suggested by CNENFRNL edhans
you need to put the code offered by CNENFRNL after your currentLookUp = [UniqueValue] like this and paste in the custom column
=let currentLookUp = [UniqueValue] in Table.Group("LookUp", "UniqueValueCol", {"Grouped", each _}){[UniqueValue=currentLookUp]}?[Grouped]?{0}?[CategoryValue]?
Hi Anonymous Vera,
Tried CNENFRNL solution and yours above however my custom column results is all Error.
Just to understand what is "Grouped" is that a text result? BTW I dont have a Grouped column.
Any thoughts?
Hi Anonymous
Agree with edhans , you need to provide sample data or the error message, otherwise we can't understand what went wrong in your case.
In my made up data, yes, all text.
"Grouped" is a column when GROUPBY your lookup table, it's a new column contains table - "each _" then you extract the first value - {0}