Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Show the last 4 digits of a phone number.

(1) ShareShare
ReportReport
Posted on by 297
Hello. I have a gallery that shows the name and phone number of a department.  With the phone number, I would like to just show only the last 4 digits.  I researched the Left,Right formula but I can't seem to find the correct formula.  Below are my current formulas. 
 
Gallery - 
Filter(Office365Users.SearchUser({top:500}),StartsWith(Department,"Finance"), IsBlank(Department)= false,IsBlank(JobTitle)= false, AccountEnabled=true,CountRows(BusinessPhones) > 0)
 
Phone Label- 
First(ThisItem.BusinessPhones).Value
 
As of now, the phone number displays  +1-509-888-1234.  I would like the number to show x-1234.  (I would also like to add the x- in front as well)
 
 
Thank you!
 
Tim
Categories:
  • Timm1 Profile Picture
    297 on at
    Show the last 4 digits of a phone number.
    Awesome!   I had to change the Left to Right and that gave me exactly what I was looking for. 
     
    "x-" & Right(First(ThisItem.businessPhones).Value, 4)  
     
    Thank you so much!  
     
    Tim 
     
  • Michael E. Gernaey Profile Picture
    41,002 Super User 2025 Season 1 on at
    Show the last 4 digits of a phone number.
    Hi 
     
    Use this expression
    "x-" & Right(First(ThisItem.BusinessPhones).Value, 4)
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard