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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Combine two columns from two tables

I have two completely unrelated tables. One is from a query, and one is a Date table that I created by function. The first has a list of company names:

Company A

Company B

Company C

Company D

 

The second has a dynamic list of dates from the last year as follows:

1/1/2018

2/1/2018

3/1/2018

4/1/2018

 

I need an output table as follows:

Column A - Column B

1/1/2018 - Company A

2/1/2018 - Company A

3/1/2018 - Company A

...

1/1/2018 - Company B

2/1/2018 - Company B

3/1/2018 - Company B

...

 

And so on. Because the second table is a date table, I cannot use the Query Editor. This seems to be simple, but I can't quite get it. Any help is very much appreciated!

1 ACCEPTED SOLUTION
AlB
Super User
Super User

Hi @Anonymous

 

Try

NewTable = CROSSJOIN( TableA, TableB)

View solution in original post

2 REPLIES 2
AlB
Super User
Super User

Hi @Anonymous

 

Try

NewTable = CROSSJOIN( TableA, TableB)

Anonymous
Not applicable

Nailed it!

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.