Forum Discussion

JK-1's avatar
JK-1
Helper II
1 year ago
Solved

DAX to de-duplicate text string?

Would it be possible to get DAX de-duplicating a text string? In the example below - or any suggestions on alternate ways, but still using DAX  🙂  thanks in advance   Address Area Distributio...
  • Chanty4u's avatar
    1 year ago

    Try this.DeDuplicatedString =

    CALCULATE(

        CONCATENATEX(

            VALUES('Table'[Area]), -- <-- this removes duplicates

            'Table'[Area],

            "; ",

            'Table'[Area]

        ),

        ALLEXCEPT('Table', 'Table'[Addr

    ess])

    )