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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors