cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jakeryan56 Regular Visitor
Regular Visitor

Replace text in query editor

Hi. I would like to cloak out any phone numbers that show up in a text field.

Is there a way to trigger the query editor to do this - for example replace 0412341234 with 04******** 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Seward12533 New Contributor
New Contributor

Re: Replace text in query editor

Yes add a custom column and use the M language left 2 and then concatenate with “********”

Here is a good walkthrough https://www.myexcelonline.com/blog/replicating-excels-left-function-m-in-power-query/
= Text.Start([phone column], 2)&”*-***-****”

View solution in original post

1 REPLY 1
Seward12533 New Contributor
New Contributor

Re: Replace text in query editor

Yes add a custom column and use the M language left 2 and then concatenate with “********”

Here is a good walkthrough https://www.myexcelonline.com/blog/replicating-excels-left-function-m-in-power-query/
= Text.Start([phone column], 2)&”*-***-****”

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 408 members 3,370 guests
Please welcome our newest community members: