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
ccyong
Regular Visitor

For every row in Table 1, add all columns from Table 2

Hi all - i have been trying to find answers but can't - hope if you can shed some light. What i have wanted to do is relatively simple:

 

Table 1

John

Joe

Lee

 

Table 2

Orange

Apple

 

I want to get Table 3 which is 

Table 3 
JohnOrange
JohnApple
JoeOrange
JoeApple
LeeOrange
LeeApple

 

Which is basically for every entry i have in table 1, add all rows from Table 2. thanks!

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@ccyong Please create a new table using below

 

NewTableName = CROSSJOIN(Table1,Table2)




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

You can also solve this in the Query Editor.  In Table1, write this M language formula =Table2.  Then simple go and expand the second column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
PattemManohar
Community Champion
Community Champion

@ccyong Please create a new table using below

 

NewTableName = CROSSJOIN(Table1,Table2)




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Ah cant believe I missed this particular function in documentation! thank you!

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.