I need to fill in some holes in a query, but only a few so I don't want to use merge. I'd prefer to use lists with replace values function.
I have watched "VLOOKUP in Power Query Using List Functions" video but that is related to add columns.
Thanks.
TM
Hi Tanya,
Here is the one step you wanted:
Custom1 = Table.FromRecords(Table.TransformRows(#"Changed Type",(rec)=>Record.TransformFields(rec,{"Email", each try if rec[Email]=null then Emails{List.PositionOf(IDList,rec[ID])} else rec[Email] otherwise null })))
Thank you! I will reuse this a lot!
Should I also have a list buffer if there is a high row count?
Sure, you can use List.Buffer on IDList and Emails lists, it should speed up processing.