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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to join two tables with "Merge query" feature with a new key added to both tables?

I have 2 tables SCD and Fosa. I want to have SCD to Fosa M: 1 relationship but currently it is M: N relationship.

I tried with the "Merge Query" option. I had created 2 new columns (internel key) with both of the tables as there were no common columns.But  when I tried two use the new internel key with "Merge Query" option but it did not reflect the new key in both of the tables even after I refreshed it. How can I use this feature?

Or should I use dax or M query to create left outer join? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

i just added two columns in excel data and then used merged query to join them


@v-cherch-msft wrote:

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

Regards,


 

View solution in original post

5 REPLIES 5
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

i just added two columns in excel data and then used merged query to join them


@v-cherch-msft wrote:

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

Regards,


 

Anonymous
Not applicable

What are the internal key columns you merged the queries on?

Anonymous
Not applicable

 internal key is a combination of date and a specific column in both the tables..

In fosa it is : 

Internal_Key = FoSa[Stichtag] & "_" & FoSa[Depot] &"_" & FoSa[WP ID]
 
In SCD it is like : 
Internal_Key = SCD[Stichtag] & "_" & SCD[Depot] & "_" & SCD[WP ID]
 
So in the merge query option the internal key column is not appearing

 

 

Hi @Anonymous 

I would suggest you create the two columns in query editor.Then you could see them and merge them in query editor.If they are created in dax in data view,you may not see them in query editor and cannot use them with merge function.

Regards,

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors