Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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!

  • Hi Anonymous

     

    Try

    NewTable = CROSSJOIN( TableA, TableB)

2 Replies

  • AlB's avatar
    AlB
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous

     

    Try

    NewTable = CROSSJOIN( TableA, TableB)

    • Anonymous's avatar
      Anonymous
      Not applicable

      Nailed it!