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
PowerBtm
New Member

Help: How could I automatically split a row in two when it passes a certain length?

I need to find a way to transform a single long column of up to 110 rows into multiple columns of maximum 40 rows. A40 to A79 should get moved to B0 to B39, etc. 

 

Here's the kicker; I can't use VBA and any fix can't modify the data of the cells, and I CAN'T convert the column using a delimiter. I can't fraction the data of the cells in two. Can anyone give me any pointers? I'd really appreciate some help or guidance, I'm going crazy.

1 ACCEPTED SOLUTION
watkinnc
Super User
Super User

You can use:

= Table.FromRows(List.Zip(List.Split(TableName[ColumnName], 40)))

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

View solution in original post

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @PowerBtm ,

 

Automatically turning a specific row into a new column does not seem very good. The attachment is how I manually changed columns 4-7 into a new column, you can check it out.

2.png

3.png

 

 

 

Best Regards,

Stephen Tao

 

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

watkinnc
Super User
Super User

You can use:

= Table.FromRows(List.Zip(List.Split(TableName[ColumnName], 40)))

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!
Jakinta
Solution Sage
Solution Sage

Maybe this?

 

 

Table.FromColumns(List.Split(YourTable[YourColumn],40),{"Column1","Column2","Column3"})

 

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.

Top Solution Authors