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

Notifications

Announcements

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 301
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,433 Super User 2025 Season 2 on at
    Hi 
     
    Use this expression
    "x-" & Right(First(ThisItem.BusinessPhones).Value, 4)
     
     
  • Timm1 Profile Picture
    301 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard