Split Full name into First Middle and Last
Options
Best Answer
-
You can use the SPLIT_PART function primarily to split these all out:
First Name
SPLIT_PART(TRIM(SPLIT_PART(`Name`,',',2)),' ',1)
Last Name
SPLIT_PART(`Name`,',',1)
Middle Name
SPLIT_PART(TRIM(SPLIT_PART(`Name`,',',2)),' ',2)
Based on your examples, this will do the trick.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1
Answers
-
You can use the SPLIT_PART function primarily to split these all out:
First Name
SPLIT_PART(TRIM(SPLIT_PART(`Name`,',',2)),' ',1)
Last Name
SPLIT_PART(`Name`,',',1)
Middle Name
SPLIT_PART(TRIM(SPLIT_PART(`Name`,',',2)),' ',2)
Based on your examples, this will do the trick.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Hi @jbandley
@MarkSnodgrass offer's a good solution. I was going to suggest another option utilizing SUBSTRING, INSTR and LENGTH but his is a simpler option.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- 1.5K Product Ideas
- 1.5K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 278 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.7K Transform
- 89 SQL DataFlows
- 561 Datasets
- 2K Magic ETL
- 3.4K Visualize
- 2.3K Charting
- 583 Beast Mode
- 13 App Studio
- 28 Variables
- 584 Automate
- 142 Apps
- 415 APIs & Domo Developer
- 26 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 358 Distribute
- 97 Domo Everywhere
- 259 Scheduled Reports
- 2 Software Integrations
- 94 Manage
- 91 Governance & Security
- 9 Product Release Questions
- Community Forums
- 37 Getting Started
- 28 Community Member Introductions
- 89 Community Announcements
- 4.8K Archive