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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Table Replace Values (Counting from the right side)

Hello all, good morning.

 

Would anyone know how to use Table.replacevalues but start counting from left to right?

 

I have some data as below and would like to change the letter from the third position, left to right.

 

DataDesired Result
LE-20LE*20
HIMAN&20HIMAN*20
DISTAT%10DISTAT*20
LUGGAGE@TOLUGGAGE*20

 

Thank you and best regards,

 

 

1 ACCEPTED SOLUTION
KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

You can use Table.TransformColumns

Code: 

Table.TransformColumns(PreviousStep, {{"Solution", each Text.Start(_,Text.Length(_)-3)&"*20", type text}})

 

KT_Bsmart2gethe_0-1656625292309.png

 

Regards

KT

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

NewStep=Table.TransformColumns(PreviousStepName,{"Data",each Text.ReplaceRange(_,Text.Length(_)-3,3,"*20")})

KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

You can use Table.TransformColumns

Code: 

Table.TransformColumns(PreviousStep, {{"Solution", each Text.Start(_,Text.Length(_)-3)&"*20", type text}})

 

KT_Bsmart2gethe_0-1656625292309.png

 

Regards

KT

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors