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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors