cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
JZhang74
New Member

Use Text.Length to extract certain length of the text string

Hi all,

 

Can I have help on this one. So I'm try to extract certain lenght text string based on the length of the text string in column and minus certain lengh. Example like this:

= Table.TransformColumns(#"Added Custom", {{"Description1", each Text.Start(_, Text.Length([Description1])), type text}})

 But I'm getting error like this:

JZhang74_0-1677029896443.png

Can anyone shed any light on this please. Thanks in advance.

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

= Table.TransformColumns(#"Added Custom", {{"Description1", each Text.Start(_, Text.Length(_)), type text}})

View solution in original post

4 REPLIES 4
wdx223_Daniel
Super User
Super User

= Table.TransformColumns(#"Added Custom", {{"Description1", each Text.Start(_, Text.Length(_)), type text}})

Interestingly, use "_" to refre to the column name, is that documented somewhere?

Great! That works, thanks so much.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors