Forum Discussion
Concatenate Aggregated Values
Hi All,
Appreciate your help. 🙏
Table:
| Game | Platform | Unit |
| Spiderman | PlayStation | 10 |
| Spiderman | Xbox | 5 |
| Spiderman | PC | 1 |
| Batman | PlayStation | 20 |
| Batman | PC | 10 |
| Superman | Xbox | 15 |
Desired Output
| Game | Platform | Unit |
| Spiderman | PlayStation, Xbox, PC | 16 |
| Batman | PlayStation, PC | 30 |
| Superman | Xbox | 15 |
Thanks 🙏
Anonymous , one of the ways is to use the following measure in the table visual with Game
Platform cat = concatenatex(distinct(Table[Platform]), Table[Platform], " , ")
Unit Sum = sum(Table[Unit])
Or create a new table
Summarize(Table, Table[Game], "Platform", concatenatex(distinct(Table[Platform]), Table[Platform], " , ")
,"Unit", sum(Table[Unit]) )
4 Replies
- amitchandak
Super User
Anonymous , one of the ways is to use the following measure in the table visual with Game
Platform cat = concatenatex(distinct(Table[Platform]), Table[Platform], " , ")
Unit Sum = sum(Table[Unit])
Or create a new table
Summarize(Table, Table[Game], "Platform", concatenatex(distinct(Table[Platform]), Table[Platform], " , ")
,"Unit", sum(Table[Unit]) )
- AnonymousNot applicable
Hi,
Thanks for the prompt reply.
Platform cat = concatenatex(distinct(Table[Platform]), Table[Platform], " , ") is producing duplicates. e.g. PlayStation, PlayStation, PlayStation, PlayStation, PlayStation, PlayStation
- amitchandak
Super User
Anonymous , Hope you are creating a measure not column, Please find the attached file after signature