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
ballist1x
Helper III
Helper III

Best way to create a Key Table from 2 columns

Hi, i have 2 tables of data, they both contain the names of Manufacturers, and i need to create a Manufacturer Key table as they both share 90% of the values but i need to get the other 10% into this column.

 

i tried to do it in Dax but there are either blanks or issues with Cardinality that i just cant fix.

 

How can i do this best in M so that i have  a deduplicated table that i can use as a key between the original two tables?

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @ballist1x,

 

I'm not so clear your scenario, if you can please share some sample data with expected result so we can test on it.

How to Get Your Question Answered Quickly

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Stachu
Community Champion
Community Champion

I'd do the following 1) make sure the tables share names of the columns 2) reference first table as a new query 3) append second table to the query from step 2) 4) remove duplicates based on the key column in table from 3) if the tables do not share the column names you can i) reference and rename them in a single query ii) append only the previous steps (you would need to do the reference manually) iii) deduplicate the key in the appended table


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

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.