Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi
I have the data source as below in which I need to concatenate a specific column based on the row identifier. Can you please help me in acxhiving this through DAX?
S No | Name | Purchased Item |
1 | Sam | Cloth |
2 | Chris | Food |
1 | Sam | Gift |
3 | Peter | Shoes |
2 | Chris | Tickets |
4 | Dean | Flowers |
3 | Peter | Candy |
Expected Result:
S No | Name | Purchased Items - Concatenated |
1 | Sam | Cloth, Gift |
2 | Chris | Food, Tickets |
3 | Peter | Shoes, Candy |
4 | Dean | Flowers |
Solved! Go to Solution.
Try this measure:
Purchased Items - Concatenated =
CONCATENATEX ( SUMMARIZE ( 'Table', 'Table'[S No], 'Table'[Purchased Item] ), 'Table'[Purchased Item], ", " )
Proud to be a Super User!
Hello @hasarinfareeth ,
Use below dax for your purpose :
This will be slightly better in performance than SUMMERIZE.
GROUPBY
This function works similarly to SUMMERIZE , but instead of calculating aggregations, it just groups by the specified columns. Since you're not performing any aggregation (like summing or counting), GroupBY can be more direct and semantically cleaner in this context.
I hope this helps.
Did I answer your query ? Mark this as solution if this helps.
Warm Regards,
Neeraj Kumar
Hello @hasarinfareeth ,
Use below dax for your purpose :
This will be slightly better in performance than SUMMERIZE.
GROUPBY
This function works similarly to SUMMERIZE , but instead of calculating aggregations, it just groups by the specified columns. Since you're not performing any aggregation (like summing or counting), GroupBY can be more direct and semantically cleaner in this context.
I hope this helps.
Did I answer your query ? Mark this as solution if this helps.
Warm Regards,
Neeraj Kumar
Try this measure:
Purchased Items - Concatenated =
CONCATENATEX ( SUMMARIZE ( 'Table', 'Table'[S No], 'Table'[Purchased Item] ), 'Table'[Purchased Item], ", " )
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
115 | |
69 | |
62 | |
46 |