Reply
avatar user
Anonymous
Not applicable

Split column by Position where position is stored in another column for the same row.

I need to Split column by Position where position is stored in another column for the same row.

so I need to get the position number from a different column in same row while splitting the text string for each row.

How do I get this position value dynamically?

 

Thanks 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

In M, in exit query

= Text.Start([Column],[Postion Col])
= Text.End ([Column],Text.Length([Column]) -[Postion Col])
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

In M, in exit query

= Text.Start([Column],[Postion Col])
= Text.End ([Column],Text.Length([Column]) -[Postion Col])
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
avatar user
Anonymous
Not applicable

Hello!!!

I hope this helps!

For this example i created 2 columns

 

split_1 = LEFT(Hoja3[COLUMN_1];Hoja3[NUMBERS OF CHARACTERS TO SPLIT])

Split_2 = RIGHT(Hoja3[COLUMN_1];LEN(Hoja3[COLUMN_1])-Hoja3[NUMBERS OF CHARACTERS TO SPLIT])

 

 

 

avatar user

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!

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.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)