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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kusanagi
Frequent Visitor

Combine the data in row with comma

Hello,

 

I would like to know if we can do this in Power BI.

 

Here is the example of raw data:

kusanagi_0-1692867511933.png

 

And this is the result I need:

kusanagi_1-1692867549655.png

 

I was told combining rows is not possible, but still wanna ask the experts if there is a possibility to do this.

If this is possible, this would make everything easier.

1 ACCEPTED SOLUTION

Hi @grazitti_sapna ,

 

I solved the problem!

Thank you again!

 

kusanagi_0-1692948380989.png

 

Have a nice weekend!

View solution in original post

3 REPLIES 3
grazitti_sapna
Super User
Super User

Hi @kusanagi 
Yes we can achieve this by ConcatenateX dax functions.
Please try using
Combined Items =
CONCATENATEX(
VALUES('Table1'[Category]),
CALCULATE(
CONCATENATEX('Table1', 'Table1'[Items], ", "),
ALLEXCEPT('Table1', 'Table1'[Category])
),
", ",
'Table1'[Category], ASC
)
Hope this will help you.
Thank you 

 

Hi @grazitti_sapna ,

 

I solved the problem!

Thank you again!

 

kusanagi_0-1692948380989.png

 

Have a nice weekend!

Hi @grazitti_sapna ,

 

Appreciate for your help!

I would like to ask more detials about this formula.

 

I tried your formula in the Power BI, but it combine the whole column.

This shows in both report view and table view.

Which part of the formula should I edit?

kusanagi_0-1692946616883.png

 

Also, my raw data contain more than 20 columns, and I am only combining the information in [Item], the rest of the columns should remain the same.

 

Should I edit "ALLEXCEPT('Table1', 'Table1'[Category])" this part of the formula?

I tried to use FILTER, but everything shows error

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors