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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Issue relating 2 tables

I connect to an SQL db. there are 2 tables, TRANSACTIONS & TRANSACTIONENTRY

 

there are 2 common columns in both tables, storeID and TransactionNumber.

 

the relationsship in sql is made using both columns, if you combine a storeID and TransactionNumber then they will be unique.

 

How can i make the relatioship work in power bi. 

 

i am unable to connect both tables, the only possible relationship is MANY TO MANY. can anyone tell me how to connectCapture.PNG

 

 

Thanking you for help

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

If you've fixed the issue by your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly. thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can merge the two table using SQL into one or do it in Query Editor.

If the above is not an option in your scenerio, then you can use the Query Editor to Add custom Column to each table and concatenate these two fields there, this will create a unique identifier that you can later use to build a relationship.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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