How to merge rows in OpenRefine

后端 未结 5 1376
予麋鹿
予麋鹿 2021-01-26 10:12

How to merge rows based on some ID field?

Original Table                   New Table

ID   | Field1 | Field2       ID     | Field1 | Field2
-----|------- |------         


        
5条回答
  •  自闭症患者
    2021-01-26 10:38

    With the cross() function, you can also achieve this result, but much faster.

    It's basically a VLOOKUP on itself (all the rows of the same record) — skipping rows with data — that is after filtered to remove empty cells.

    filter(cross(cells.ID.value, "TEST-FillUp", "ID"), vV, vV.cells["Field1"].value != null)[0].cells.Field1.value
    

提交回复
热议问题