Forum Discussion

Anthony_G1's avatar
Anthony_G1
Frequent Visitor
6 years ago
Solved

DAX Distinct on Single Column

Hello,   I'm struggling with trying to do something in DAX that's very easy in Power Query, however I need to do it in DAX.   Basically, I have a table like below:   COL1 COL2 AAA 123 ...
  • Mariusz's avatar
    6 years ago

    Hi Anthony_G1 

     

    If you need to return a table then try this.

    Table 2 = 
    ADDCOLUMNS(
        VALUES( 'Table'[COL1] ),
        "COL2", CALCULATE( MIN( 'Table'[COL2] ) )
    )

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    LinkedIn