Forum Discussion

henryvu93's avatar
henryvu93
Helper I
8 years ago
Solved

Custom query to update the table

Hi guys,   I have a source table which was loaded from the database. In this table, I have some incorrect values I need to update. I also loaded an Excel table, which has the correct values, into P...
  • MarcelBeug's avatar
    MarcelBeug
    8 years ago

    Steps to take:

     

    Merge your source table with the Excel table.

     

    Expand the nested Excel tables.

     

    Add a custom column that states:

    if Excel-unit-cost <> null then Excel-unit-cost else Source-unit-cost.

     

    Remove original source-unit-cost and rename the new column to unit cost.

     

    You may want to reorder your columns and remove the columns you no longer need.