Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abhiiimr15
Frequent Visitor

DAX forum

I am new to th PowerBI, and i have a requirement where in I want to show my output (names of products) in a single cell separated by a delimiter (comma, lets say).

For e.g. my input data set is :

 

Prod IDProductCity of Manufacturing
1PenDelhi
2PencilMumbai
3PaperNoida
4EraserDelhi
5NotebookMumbai
6RulerMumbai
7MarkerNoida
8SharpnerDelhi
9PinsNoida
10Pencil boxNoida

 

And the Output I expect is a simple table in the follwoing fashion:

City of ManufacturingProduct
DelhiEraser,Pen, Sharpener
MumbaiNotebook,Pencil,Ruler
NoidaMarker, Paper, Pencil box, Pins

 

Please help me with the appropriate DAX, or even M query would do. 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@abhiiimr15

 

Try this MEASURE

 

Measure =
CONCATENATEX ( VALUES ( Table1[Product] ), [Product], ", " )

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

jfalcon009_0-1646310299859.png

Using Dax.do - however facing this issue when executing this query. I'm not sure what the problem is that I get this error. It's a simple query too. 

 

Is this a bug issue within the application? 

v-juanli-msft
Community Support
Community Support

Hi @abhiiimr15

Based on my test, Zubair_Muhammad's formula can help, if you have any question, please feel free to ask me.

8.png

 

Best Regards

Maggie

Zubair_Muhammad
Community Champion
Community Champion

@abhiiimr15

 

Try this MEASURE

 

Measure =
CONCATENATEX ( VALUES ( Table1[Product] ), [Product], ", " )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.