Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
I have three columns Last Name, First Name and Preferred Name.
Some of the records in these are NULL.
I have to create a custom column called Person Name which will have data like below, based on last name,first name and preferred name.
For example :
Expected Output :
Last name First Name Preferred Name Person Name
Hans Samuel NULL Hans, Samuel
Alfred NULL NULL Alfred
Kennedy John Joe Kennedy, John (Joe)
-----------------------------------------------------------------------------------------------------------------------------
My Query :
My query
This generates values like :
Person Name
NULL
NULL
Kennedy, John (Joe)
Solved! Go to Solution.
Try this formula
Text.Combine({[Last Name],[First Name]},", ") &
(if [Preferred Name] = null then "" else " ("&[Preferred Name]&")")
Try this formula
Text.Combine({[Last Name],[First Name]},", ") &
(if [Preferred Name] = null then "" else " ("&[Preferred Name]&")")
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 12 | |
| 12 | |
| 10 | |
| 6 | |
| 5 |