cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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.

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.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 287 members 2,914 guests
Please welcome our newest community members: