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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Sruthi_K
New Member

Help in combining the values to a single row

Hello All,

I have a datasource from Jira using Powerbi connector and trying to build a report in Powerbi.

Problem is Jira issues with multiple values in a single field is showing as different row. To be clear, Jira custom field "Affected service" in a jira issue have Computer Service and Crowdstrike as Value. But instead showing comma separated "Computer Service ,Crowdstrike" its displaying as two different rows. Could someone please help how can I combine these values to a single column.

Sruthi_K_0-1726040012621.png

Sruthi_K_1-1726040201724.png

 

Thanks,

Sruthi

 

3 ACCEPTED SOLUTIONS
lkalawski
Resident Rockstar
Resident Rockstar

Hi @Sruthi_K ,

 

Could you please share a part of table to see exactly what you habe in the column? Please copy paste two/three lines.

 

EDIT:

To combine values ​​from different rows, the easiest way to do it in Power Query is by using grouping.

1. Start Point

lkalawski_0-1726042806915.png

2. Group By on Column4:

lkalawski_1-1726042866251.pnglkalawski_2-1726042881630.png

3. Add Custom Column to Combine Values from Column 4 by using comma delimiter:

Text.Combine([AllRows][Column4], ", ")

4. Remove unnecessary columns and then you have the result:

lkalawski_3-1726042965379.png

 

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

View solution in original post

Uzi2019
Super User
Super User

Hi @Sruthi_K 

simple use measure and try below formual

combine = CONCATENATEX(Fruits,Fruits[Column2],",")

Uzi2019_0-1726042644969.png

I have taken your example. getting the result as you can see..

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

v-xuxinyi-msft
Community Support
Community Support

Hi @Sruthi_K 

 

Thanks for the reply from lkalawski and Uzi2019 , please allow me to share my method.

 

Create a measure as follows

Merged = 
CALCULATE(
    CONCATENATEX(
        VALUES('Table'[Service]),
        'Table'[Service],
        ", "
    ),
    ALLEXCEPT('Table', 'Table'[Incident])
)

 

Output:

vxuxinyimsft_0-1726648139872.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-xuxinyi-msft
Community Support
Community Support

Hi @Sruthi_K 

 

Thanks for the reply from lkalawski and Uzi2019 , please allow me to share my method.

 

Create a measure as follows

Merged = 
CALCULATE(
    CONCATENATEX(
        VALUES('Table'[Service]),
        'Table'[Service],
        ", "
    ),
    ALLEXCEPT('Table', 'Table'[Incident])
)

 

Output:

vxuxinyimsft_0-1726648139872.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sruthi_K
New Member

Hi, I just dont need the entire result as a single column like Uzi2019's result.

If incident is 23879 then service should show the values in single row and the incident 23778 should dispaly as it is in the screenshot

Hi @Sruthi_K 
Can you check my screenshot again???

As per your description it is giving the same result.

 

can you share the expected output with few records how you want it to be displayed??

because both of us provided the solution based on your description.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Super User
Super User

Hi @Sruthi_K 

simple use measure and try below formual

combine = CONCATENATEX(Fruits,Fruits[Column2],",")

Uzi2019_0-1726042644969.png

I have taken your example. getting the result as you can see..

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
lkalawski
Resident Rockstar
Resident Rockstar

Hi @Sruthi_K ,

 

Could you please share a part of table to see exactly what you habe in the column? Please copy paste two/three lines.

 

EDIT:

To combine values ​​from different rows, the easiest way to do it in Power Query is by using grouping.

1. Start Point

lkalawski_0-1726042806915.png

2. Group By on Column4:

lkalawski_1-1726042866251.pnglkalawski_2-1726042881630.png

3. Add Custom Column to Combine Values from Column 4 by using comma delimiter:

Text.Combine([AllRows][Column4], ", ")

4. Remove unnecessary columns and then you have the result:

lkalawski_3-1726042965379.png

 

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

@lkalawski Attaching the screenshot of the table, Want to merge this "Service" field as comma separated for unique issue key.

Sruthi_K_1-1726044046753.png

Could you please help, I'm new to Powerbi

Thanks,

Sruthi

@Sruthi_K ,

If you want to do it at the transformation level, then use my solution above.

If you want to do it at the visualization level, then the solution indicated below by Uzi2019 will work.

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.