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 / Get first letter of st...
Power Apps
Answered

Get first letter of string

(0) ShareShare
ReportReport
Posted on by 51

Hi all, 

 

I am trying to get a person's initials from a middle name column to put into a full name column. I already have their first and last names in the full name column, but I can't seem to figure out how to get the first initial of their middle name. Any help would be greatly appreciated.

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @ChattyLinkin ,

    Where are you trying to do this?  Is it in a calculated column in Dataverse, Power FX formula Dataverse column, Power Automate flow, Power App?  

  • ChattyLinkin Profile Picture
    51 on at

    Yes, my full name column in my dataverse table is a calculated column

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @ChattyLinkin ,

    Don't think that is supported within a calculated column, have you tried to utilize formula column to do something like this?

    Concatenate('First Name',If(Len('Middle Name')>0," ",""),'Middle Name',If(Len('Last Name')>0," ",""),'Last Name')
    I verified this worked with a middle name or no middle name on the Contact entity:
    dpoggemann_0-1695905687937.png

     

  • ChattyLinkin Profile Picture
    51 on at

    That works for full name, but if I only wanted the first letter of the middle name how would I go about that? Thanks!

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    ahh, sorry about that, here you go:

    Concatenate('First Name',If(Len('Middle Name')>0," ",""),Left('Middle Name',1),If(Len('Last Name')>0," ",""),'Last Name')
  • ChattyLinkin Profile Picture
    51 on at

    Thank you!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard