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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Ayyappa5678
Helper III
Helper III

First all the numbers with star symbol and last four digits need to display please help me!

Hi All,

I want Phone number like below snapshot of green color highlighted, First all the numbers with star symbol and last four digits need to display, can you please help me how to do this???
Note: Numbers are of total numbers like 9,10,11,12 upto 15.
Thanks in advance

Ayyappa5678_0-1660033183568.png

 

2 ACCEPTED SOLUTIONS
Vijay_A_Verma
Super User
Super User

Use below formula in a custom column

= Text.PadStart(Text.End(Text.From([PhoneNumber]),4),Text.Length(Text.From([PhoneNumber])),"*")

See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test

let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Added Custom" = Table.AddColumn(Source, "MaskedPhoneNumber", each Text.PadStart(Text.End(Text.From([PhoneNumber]),4),Text.Length(Text.From([PhoneNumber])),"*")),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"PhoneNumber"})
in
    #"Removed Columns"

View solution in original post

Ayyappa5678
Helper III
Helper III

Thank You Soo Much a lot.

Its working and great response from @Vijay_A_Verma 

View solution in original post

2 REPLIES 2
Ayyappa5678
Helper III
Helper III

Thank You Soo Much a lot.

Its working and great response from @Vijay_A_Verma 

Vijay_A_Verma
Super User
Super User

Use below formula in a custom column

= Text.PadStart(Text.End(Text.From([PhoneNumber]),4),Text.Length(Text.From([PhoneNumber])),"*")

See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test

let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Added Custom" = Table.AddColumn(Source, "MaskedPhoneNumber", each Text.PadStart(Text.End(Text.From([PhoneNumber]),4),Text.Length(Text.From([PhoneNumber])),"*")),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"PhoneNumber"})
in
    #"Removed Columns"

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors