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
Simon_Br
Frequent Visitor

Text.End Variable Value

Hello Comunity,

 

Actaul i have the challange, an value to split whit a dynamic value in the M-Code in Power Query.

 

Per Example:

 

TextLength NumberSolution

America30

230
Australia3003300
China48500548500
Africa444
Europe154879371548793

 

How can i do that?

 

Simon

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi Simon,

 

This should work fine in a new custom column:

 

Text.End([Text], [Length Number])

 

 

BA_Pete_0-1694698519192.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi Simon,

 

This should work fine in a new custom column:

 

Text.End([Text], [Length Number])

 

 

BA_Pete_0-1694698519192.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Simon_Br
Frequent Visitor

Thank for the answer.

And whit the length? ... each Text.End(_, value(length number),... 

 

 

wdx223_Daniel
Super User
Super User

Splitter.SplitTextByCharacterTransition(each not List.Contains({"0".."9"},_),{"0".."9"})([Text])

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.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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