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
wkolcz
Frequent Visitor

Creating new column on one table from data on another table based on shared key

I have two spreadsheets I imported into a report to create tables. One is Clicks and includes the columns Click-Thoughs, Name, SKU and the other is Products and includes the columns brandName, sku, and category. I'm trying to create a new column on Clicks that populates with the  brandName from Products based on the relationship I created between the two sku -> SKU (which is a Many to one currently). I tried to right click on Clicks and select New Column. Then use brandName = RELATED('Products'[brandName]) but it keeps telling me that the column cannot be found and I have no typehinting.

 

Relatively new to PowerBI so any help would be appreciated. Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@wkolcz , refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

If did not work

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@wkolcz , refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

If did not work

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

You're a savior! The second video with LOOKUPVALUE is exactly what I needed! Thank you!

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.