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
Anonymous
Not applicable

Splitting multiple values in a row to columns

Hi Team,

 

I have one scenario Which is having two columns Start and End.

 

Start        End

A,B,C        X,Y,Z

 

 

and I need output like this.

 

Start       End

A              X

B              Y

C              Z

Please help me on this.

 

 

4 REPLIES 4
slorin
Super User
Super User

Hi,

 

= Table.FromColumns( {Text.Split(Source[Start]{0},",") , Text.Split(Source[End]{0},",")} , Table.ColumnNames(Source))

or

= Table.FromColumns(List.Transform(Record.ToList(Source{0}), each Text.Split(_,",")), Table.ColumnNames(Source))

Stéphane 

JoeBarry
Solution Sage
Solution Sage

Hi @Anonymous 

 

In Power Query

 

  • Highlight the Start column
  • In the Transform tab choose split by delimter and choose comma
  • Highlight the columns that are created with the values
  • right click and choose Unpivot columns

 

repeat for the End columns

 

thanks

Joe

wdx223_Daniel
Super User
Super User

=#table({"Start","End"},List.TransformMany(Table.ToRows(Table),each List.Zip(List.Transform(_,each Text.Split(_,","))),(x,y)=>y))

Anonymous
Not applicable

Hi @wdx223_Daniel ,

 

Could you please write the code in detail.

 

 

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.

Top Solution Authors