Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
antheoh
Frequent Visitor

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?

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Duplicate the table and filter out the 'A' values so you get thisRenamed Sellers 2019-08-12 112513.png

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)

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

Duplicate the table and filter out the 'A' values so you get thisRenamed Sellers 2019-08-12 112513.png

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)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.