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
Capstone
Resolver I
Resolver I

Creating customised table join

Hi,

 

I have the following scenario for a project I'm doing.

 

I'm importing n queries (n = 1 to 5) which contains all the facts data from different models.

 

I'm also importing m queries (m = 1 to 10) which contains scenario outputs and are linked to the facts data.

 

Say n =2 (n1,n2) and m = 5 (m1,m2,m3,m4,m5). Now m1, m2, m3 are linked to n1 and m4,m5 are linked to n2. I want to create a combined table in Power query which combines data from m1,m2,m3 with relevant data from n1 and m4,m5 with n2 using matching columns, Now I can do it all manually but I really want to build an automated system where if n and m changes I should still be able to join the queries using a couple of parameters and not have to recreate the joining process all the time.

 

I hope this make sense. Would appreciate any help .

 

Abhi

 

1 REPLY 1
v-yuezhe-msft
Employee
Employee

Hi @Capstone

Please share sample data of your tables and post expected result here. Also I would recommend you review the following blog about how to use Power Query language to join tables.

https://blog.crossjoin.co.uk/2014/06/02/join-conditions-in-power-query-part-1/


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
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.

Top Solution Authors
Top Kudoed Authors