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

Copy carachteres from one column to other customized column

Hi,

 

I have a column with several carachteres wich came from a .txt file. There are about 250 carachteres for each line in the first colum. Is there a way to create customized columns with just a specific carachteres from this first column?

i.e.

 

Column1(from a .txt file)                  Column2(customized)        Column3(customized)         Column4(customized)

ABCDEFGHIJKLMN                            ABC                                     DEFGH                                 IJKLMN

 

 

Hope it is clear.

Thanks!

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@bsouza

 

Is this what you want? Hope this is helpful. Thanks

 

Column = LEFT(Table2[Column1],3)
Column 2 = MID(Table2[Column1],4,5)
Column 3 = MID(Table2[Column1],10,6)

c1.JPG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @bsouza,

 

The solution of @ryan_mayu should be helpful which use dax expression to create the calcualted column.

 

In addition, you could achieve your desired output in query editor by spliting column which is custom column.

 

split column.PNG

 

You also could refer to the attachment.

 

Hope this can help you either!

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @bsouza,

 

The solution of @ryan_mayu should be helpful which use dax expression to create the calcualted column.

 

In addition, you could achieve your desired output in query editor by spliting column which is custom column.

 

split column.PNG

 

You also could refer to the attachment.

 

Hope this can help you either!

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ryan_mayu
Super User
Super User

@bsouza

 

Is this what you want? Hope this is helpful. Thanks

 

Column = LEFT(Table2[Column1],3)
Column 2 = MID(Table2[Column1],4,5)
Column 3 = MID(Table2[Column1],10,6)

c1.JPG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.