web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show the last 4 digits...
Power Apps
Suggested Answer

Show the last 4 digits of a phone number.

(1) ShareShare
ReportReport
Posted on by 302
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:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Moderator on at
    Hi 
     
    Use this expression
    "x-" & Right(First(ThisItem.BusinessPhones).Value, 4)
     
     
  • Timm1 Profile Picture
    302 on at
    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 
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard