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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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]&")")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 8 | |
| 7 |