cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sebastienke
Helper III
Helper III

How to combine data of 2 tables into 1 with power BI DESKTOP (and not QUERY)

Hi all, 

 

I have two tables, and I want to create a third table to list all the possible combination of 2 first tabkles.

 

Table 1 (1 column) :

A

B

C

 

Table 2 (1 column) :

1

2

 

What I want is table 3 (2 columns) :

A | 1

A | 2

B | 1

B | 2

C | 1

C | 2

 

Actually A, B, C... are data that are calculated in power DESKTOP (and not Query) based on other data not mentionned above, so I need to create this third table in power desktop (because those data don't exist in the Query).

 

Anyone to help me on this ?

 

Thank you

Seb

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@sebastienke  - Use GENERATE


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@sebastienke Yes, use SELECTCOLUMNS inside of your GENERATE


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

So obvious... Thanks @Greg_Deckler 

Greg_Deckler
Super User
Super User

@sebastienke  - Use GENERATE


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

Thank you @Greg_Deckler 

It works perfectly.

In order to optimize my file, do you know how can i do the same thing but just with 1 chosen column of each table to combine in table 3 ?

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors