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
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
Employee
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
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.