Forum Discussion

mmoeller's avatar
mmoeller
Regular Visitor
6 years ago
Solved

All Distinct Values from Table1 Column1 for Each of All Distinct Values from Table2 Column2

Hi,

 

I have two columns in two different tables, and I want to make a new table with DAX that lists each of ALL distinct values from a column in the first table with each of ALL Distinct Values from a column in the second table.  As a note, these two tables are not related in any way.

 

Table 1 Table 2 Resultant Table 
Column 1 Column 2 Column 3Column 4
1 A 1A
2 B 1B
2 B 2A
3 B 2B
    3A
    3B

 

Thanks,

Mo

  • mmoeller try this to create new table

     

    New Table = 
    CROSSJOIN (
    VALUES ( Table1[Column1] ),
    VALUES ( Table2[Column2] )
    )

    Would appreciate Kudos 🙂 if my solution helped. 

1 Reply

  • mmoeller try this to create new table

     

    New Table = 
    CROSSJOIN (
    VALUES ( Table1[Column1] ),
    VALUES ( Table2[Column2] )
    )

    Would appreciate Kudos 🙂 if my solution helped.