The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
Data | Desired Result |
LE-20 | LE*20 |
HIMAN&20 | HIMAN*20 |
DISTAT%10 | DISTAT*20 |
LUGGAGE@TO | LUGGAGE*20 |
Thank you and best regards,
Solved! Go to Solution.
Hi @Anonymous ,
You can use Table.TransformColumns
Code:
Table.TransformColumns(PreviousStep, {{"Solution", each Text.Start(_,Text.Length(_)-3)&"*20", type text}})
Regards
KT
NewStep=Table.TransformColumns(PreviousStepName,{"Data",each Text.ReplaceRange(_,Text.Length(_)-3,3,"*20")})
Hi @Anonymous ,
You can use Table.TransformColumns
Code:
Table.TransformColumns(PreviousStep, {{"Solution", each Text.Start(_,Text.Length(_)-3)&"*20", type text}})
Regards
KT