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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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], ", " )

Regards
Zubair

Please try my custom visuals

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], ", " )

Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.