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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

data modeling

I have 2 tables with 50% same columns but there is no uique column. And im not able to get many to 1 data mapping.
@Ahmedx @amitchandak 

1 ACCEPTED SOLUTION
DallasBaba
Super User
Super User

 

@Anonymous  You can create a Composite Key with all the matching columns in both tables. 

 

For Example Column's in Tables 1 & 2

t1.A, t1.B, t1.C, t1.J t2.A, t2.B, t2.C, t2.D, t2.R, t2.J 

 

with Composite Key Data { Both table have: ABCJ}

t1.A, t1.B, t1.C, t1.J, t1ABCJ

t2.A, t2.B, t2.C, t2.D, t2.R, t2.J, t2ABCJ

 

 Join on the Composite Key.

Let me know if this works for you, or share a sample data.

 

@ me in replies, or I'll lose your thread!!!  

Do my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

 
Best Regards,
Dallas.
Best Regards,
Dallas.

View solution in original post

1 REPLY 1
DallasBaba
Super User
Super User

 

@Anonymous  You can create a Composite Key with all the matching columns in both tables. 

 

For Example Column's in Tables 1 & 2

t1.A, t1.B, t1.C, t1.J t2.A, t2.B, t2.C, t2.D, t2.R, t2.J 

 

with Composite Key Data { Both table have: ABCJ}

t1.A, t1.B, t1.C, t1.J, t1ABCJ

t2.A, t2.B, t2.C, t2.D, t2.R, t2.J, t2ABCJ

 

 Join on the Composite Key.

Let me know if this works for you, or share a sample data.

 

@ me in replies, or I'll lose your thread!!!  

Do my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

 
Best Regards,
Dallas.
Best Regards,
Dallas.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.