Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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]&")")
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |