Forum Discussion

vipett's avatar
vipett
Icon for Helper III rankHelper III
4 years ago
Solved

Combine two columns and multiply occurrences

I have a column called date in one table :

2021-01-01

2021-01-02

2021-01-03

2021-01-04

etc

 

And another column called Items in another table

Item A

Item B

Item C

Item D

etc

 

I would like to create a new table with looks like this

 

DateItem
2021-01-01A
2021-01-01B
2021-01-01C
2021-01-01D
2021-01-02A
2021-01-02B
2021-01-02C
2021-01-02D
etc 

 

What's the best way of doing this?

  • vipett 
    TABLE = CROSSJOIN(Table1, Table2)

    In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂

1 Reply

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

    vipett 
    TABLE = CROSSJOIN(Table1, Table2)

    In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂