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

Join us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now

Reply
minseok_kr
Regular Visitor

I want to change a specific digit to '*' among the data in a field that is in character format.

hello. I am planning to conduct new work in Korea through Data Factory and Customer Insights-data.

I am writing because I have a question.

I would like to change personal information in text format (name, cell phone, email, etc.) to the special character '*'.

It can be easily solved with SQL queries, but it is very difficult with Data Flow Gen2.

How do I use functions in Power Query?

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. If you want to replace the personal data to "*". You can do it with a simple "custom step" that can be run with right click to column then "replace values".

Let's see an example. Consider  you have the "Name" column that you want to change to *. The code would be:

= Table.ReplaceValue(#"Last Step", each [Name],"*",Replacer.ReplaceValue,{"Name"})

 You can click at the function icon to create a new one or when you replace values just write * to replace. The code will have a "" for the first step that you can change to each [Name]

I hope that helps


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

3 REPLIES 3
ibarrau
Super User
Super User

Hi. If you want to replace the personal data to "*". You can do it with a simple "custom step" that can be run with right click to column then "replace values".

Let's see an example. Consider  you have the "Name" column that you want to change to *. The code would be:

= Table.ReplaceValue(#"Last Step", each [Name],"*",Replacer.ReplaceValue,{"Name"})

 You can click at the function icon to create a new one or when you replace values just write * to replace. The code will have a "" for the first step that you can change to each [Name]

I hope that helps


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Hi @minseok_kr 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.
In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thank you.

Hi @minseok_kr 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others. If you have any question relating to the current thread, please do let us know and we will try out best to help you. In case if you have any other question on a different issue, we request you to open a new thread.

 

Thank you.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebFBC_Carousel

Fabric Monthly Update - February 2025

Check out the February 2025 Fabric update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors