cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Trishbanerjee Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Trishbanerjee Frequent Visitor
Frequent Visitor

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

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


@v-cherch-msft wrote:

Hi @Trishbanerjee 

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

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

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

Trishbanerjee Frequent Visitor
Frequent Visitor

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

 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

 

 

v-cherch-msft Super Contributor
Super Contributor

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

Hi @Trishbanerjee 

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.
v-cherch-msft Super Contributor
Super Contributor

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

Hi @Trishbanerjee 

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.
Trishbanerjee Frequent Visitor
Frequent Visitor

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

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


@v-cherch-msft wrote:

Hi @Trishbanerjee 

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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 92 members 1,338 guests
Please welcome our newest community members: