Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 :
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]&")")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
13 | |
11 |