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 / Splitting on a name wi...
Power Apps
Answered

Splitting on a name with a suffix

(0) ShareShare
ReportReport
Posted on by 402

I am building a "matching" app where an incoming csv file is being search for matches to our master customer database and one of those matches are on last name and dob.  Here is the formula I am using: If(!IsBlank(ThisItem.Birthdate),If(CountIf(ISK_Clients, cr4d3_birthdate = ThisItem.Birthdate And cr4d3_lastname = Last(Split(Trim(ThisItem.Name)," ")).Result)>0,LightGreen,White)).  As we are in testing, one of our testers noted a logic error where the name BRIAN M DAVIS JR did not hit as there is a suffix in the name.  How would I adjust this formula to accommodate for this?  My thought is to count spaces and if there are three then take the third element?  Or would there be a better way? 

 

Thanks for the info

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @iskguy 

    While it may be possible to parse the names in PowerApps, it would be far easier to do it on your csv file  in power query.

  • Verified answer
    iskguy Profile Picture
    402 on at

    I was able to figure this out - Last(FirstN(Split(ThisItem.Name," "),3)).Result

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard