Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi guys,
I am new to Power BI and would need your help. I've got the example of dataset and would need to merge the lines in "Country" column as per unique values and concatenate inputs in "City" column separated by comma - perhaps using Measure (as Calculated column would create duplicate entries). Please find below details:
Existing dataset:
Result should be:
| Country | City |
| France | Paris |
| USA | New York, Chicago, Minesota |
| Germany | Berlin |
| Italy | Rome |
Thank you for any suggestion!
Solved! Go to Solution.
I have managed to resolve this by adding ", " at the end of your function:
@ivanuska , You can use this measure in the display table
concatenatex(Table, Table[City])
New table = summarize(Table, Table[Country], "City",concatenatex(Table, Table[City]))
I have managed to resolve this by adding ", " at the end of your function:
Now it is merging without comma e.g. "New YorkChicagoMinesota" - can you please advise how to separate those values with comma?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |