Forum Discussion

MC4's avatar
MC4
Frequent Visitor
6 years ago
Solved

Custom Column - Value from other query

Hi there,   I have added a Custom column to a Quaery (Query 1) in Power Query and I want the value on each row in this column to equal to the value from a single row in another Query (Query 2).   ...
  • Anonymous's avatar
    Anonymous
    6 years ago
    Just do this:
    Table.AddColumn(PrevStep, “NewColumnName”, each OtherTable[ColumnName]{2})
    //{2} being the zero-based position of the other table’s item that you want. You could also do
    each OtherTable[ColumnName] = “Some Team”, type text).