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.
Hi, I am working in power query and need to transform some data within a column, the question appears simple enough:
Where there is 2016 replace with 16.
However, 2016 is in the middle of a random text string and so Replace values doesn't work as it is looking up 2016 the number. Anyone know a work around? Thanks,
dan
Solved! Go to Solution.
hi,
try adding a custom column:
= Text.Replace([YOUR TEXT COLUMN NAME HERE], "2016", "16")
please note that this will replace all occurances of the 2016 within the text which is or is not what you may want.
regards,
radpir
Hi @Dan80,
You can also open Query Editor, then use Replace Values feature:
Best Regards,
Qiuyun Yu
Hi @Dan80,
You can also open Query Editor, then use Replace Values feature:
Best Regards,
Qiuyun Yu
hi,
try adding a custom column:
= Text.Replace([YOUR TEXT COLUMN NAME HERE], "2016", "16")
please note that this will replace all occurances of the 2016 within the text which is or is not what you may want.
regards,
radpir
User | Count |
---|---|
65 | |
61 | |
60 | |
54 | |
30 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |