Forum Discussion

antheoh's avatar
antheoh
Frequent Visitor
7 years ago
Solved

Replace values based in a specific column

Hello guys,

 

I would like your help in something.

 

Lets say we have this table :

 

SellerId      SellerName        Amount

2000            Amazon               -100

2000                 A                       100

2001               Ebay                  -200

2001                 A                       200

2002               Aliexpress          -150

2002                 A                       150

 

i want to replace values based on a seller id..My desire output is below :

 

SellerId           SellerName                         Amount

2000                  Amazon                              -100

2000                  Amazon                                100

2001                   Ebay                                   -200

2001                   Ebay                                     200

2002                   Aliexpress                           -150

2002                   Aliexpress                             150

 

 

How can i implement this?

  • Duplicate the table and filter out the 'A' values so you get this

    Then do a 'Merge as New' with the original table (Inner Join on ID - Seller ID).

    Expand the Table column.

    Tidy data as required (remove  the original SellerName column)

1 Reply

  • HotChilli's avatar
    HotChilli
    Community Champion

    Duplicate the table and filter out the 'A' values so you get this

    Then do a 'Merge as New' with the original table (Inner Join on ID - Seller ID).

    Expand the Table column.

    Tidy data as required (remove  the original SellerName column)