Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@sebastienke Yes, use SELECTCOLUMNS inside of your GENERATE



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

So obvious... Thanks @Greg_Deckler 

Greg_Deckler
Super User
Super User

@sebastienke  - Use GENERATE



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.