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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
LucaUSA50
Frequent Visitor

Combining two tables

Hello,

 

I have two tables: one containing dates and the other one containing product categories:

Table 1:

 

Table 1:

Date:

01/01/2016

01/02/2016

01/03/2016

etc.

 

Table 2:

Categories:

A

B

C

etc.

 

I need to create with power query a third table (2 columns) with: first column date and second categories and for every date it needs to have all the categories:

Table 3:

Date:                    Categories

01/01/2016                A

01/01/2016                A

01/01/2016                A

01/02/2016                B

01/02/2016                B

01/02/2016                B

01/03/2016                C

01/03/2016                C

01/03/2016                C 

 

Is there a way to achieve this result?

Many thanks

1 ACCEPTED SOLUTION
quentin_vigne
Solution Sage
Solution Sage

Hi @LucaUSA50

 

You simply have to go to Modelisation > New table and fill it with this formula : 

 

NewTable = CROSSJOIN(Table1;Table2)

If it worked, don't forget to mark the topic as solved

- Quentin

View solution in original post

3 REPLIES 3
quentin_vigne
Solution Sage
Solution Sage

Hi @LucaUSA50

 

You simply have to go to Modelisation > New table and fill it with this formula : 

 

NewTable = CROSSJOIN(Table1;Table2)

If it worked, don't forget to mark the topic as solved

- Quentin

It works!!

 

Thanks

@LucaUSA50

 

You're welcome

 

have a good day

 

- Quentin

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.