Forum Discussion
Anonymous
6 years agoNot applicable
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: ...
- 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.
amitchandak
6 years agoSuper User
Please use concatenatex
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601