Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Only aggregate distinct texts from different rows into the same column?

Hello everyone,   I am trying to aggreate texts from different rows to one column. Those texts from different rows are NOT unique.   An example is as below:   Order record table:       ...
  • v-lid-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    We can use the following measure in a table visual to meet your requirement:

     

    distinctAggregateMeasure =
    CONCATENATEX ( DISTINCT ( 'Table'[Order_Product] ), [Order_Product], "," )

     

     

     Or we can just create a calculated table using following formula:

     

    AggregateTable =
    SUMMARIZECOLUMNS (
        'Table'[Customer],
        "Text", CONCATENATEX ( DISTINCT ( 'Table'[Order_Product] ), [Order_Product], "," )
    )

     

     


    BTW, pbix as attached.

     

    Best regards,

    Community Support Team _ Dong Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.