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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

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
Community Champion
Community Champion

@Anonymous  - 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@Anonymous 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

So obvious... Thanks @Greg_Deckler 

Greg_Deckler
Community Champion
Community Champion

@Anonymous  - 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors