Forum Discussion
Zabeer
4 years agoHelper I
Add custom column based on column id and field value
Hello,
I have a requirement to add a column that takes values from a field in another column.
Example-
In other words, the new column should take the FieldValue of 'Vendor' for each unique RowID.
I would need this in Power Query. Kindly help.
Thanks.
Zabeer
You can add custom column in PQ as follows: Replace "Previous Step" with your last step in the query(x)=> Table.SelectRows(#"Previous Step", (y)=> y[ColumnID] = x[ColumnID] and y[Field] = "Vendor" )[FieldValue]{0}