Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Simon_Br
Helper I
Helper I

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
Helper I
Helper I

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors