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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
RobMueller
New Member

Expanding Cell Results into a list

Good Day

 

I have a column where the data has been collected showing several results on the same line rather than a seperate line per result. Is there a way in PowerBi to automatically change this.

 

I need PowerBi to see this in a row

 

John Smith          An Example        3531663, 3532139, 3532394, 3532566, 3533469

 

And to change it to

 

John Smith          An Example        3531663

John Smith          An Example        3532139

John Smith          An Example        3532394

John Smith          An Example        3532566

John Smith          An Example        3533469

1 ACCEPTED SOLUTION

Thank you for the help. Trying to follow your steps I managed to find the answer.

 

In Power Query, as you mentioned the column first needs to be text.

Then it was just a case of right clicking the column header and selecting "Split Column" and "By Delimiter" then in the advanced options ensuring it was rows not columns.

View solution in original post

2 REPLIES 2
DOLEARY85
Super User
Super User

Hi,

 

the easiest way to do this is in Power Query. If you group by name, and whatever column an example is and use Max to aggregate on column 3. In advanced editor change the Max section of the code to Text.Combine it'll give you what you need. I've included the code below with the section changed in bold.

 

Also make sure the column you're combining is a text field.

 

DOLEARY85_0-1683789585782.png

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8srPyFMIzs0syVDSUXLMU3CtSMwtyEkFcoxNjQ3NzIyVYnUIqTIxNiKgytDI2MTUzFwpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
#"Grouped Rows" = Table.Group(Source, {"Column1", "Column2"}, {{"Column 3", each Text.Combine([Column3], ", "), type text}})
in
#"Grouped Rows"

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Thank you for the help. Trying to follow your steps I managed to find the answer.

 

In Power Query, as you mentioned the column first needs to be text.

Then it was just a case of right clicking the column header and selecting "Split Column" and "By Delimiter" then in the advanced options ensuring it was rows not columns.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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