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
Hi Team,
Just checking how we can achieve on how to combined first name and last name in DAX and we have connected in semantic model
Solved! Go to Solution.
If you can edit the semantic model (best for slicers/labels): add a calculated column.
Full Name =
VAR s =
TRIM( COALESCE('Customers'[FirstName], "") & " " & COALESCE('Customers'[LastName], "") )
RETURN IF( s = "", BLANK(), s )
If you’re on a thin report (live connection) and can’t add columns: you can only add a measure (works in cards/tables, not slicers/axes).
Full Name (measure) =
VAR f = SELECTEDVALUE('Customers'[FirstName])
VAR l = SELECTEDVALUE('Customers'[LastName])
VAR s = TRIM( COALESCE(f, "") & " " & COALESCE(l, "") )
RETURN IF( s = "", BLANK(), s )
Hey @krishna_murthy,
Hey there! Here are both approaches I use for combining first and last names:
Step 1: Add Calculated Column Go to your table in the semantic model and create a new calculated column:
Full Name = [FirstName] & " " & [LastName]
Step 2: Handle Blank Values (Recommended) If you have missing data, use this instead:
Full Name =
IF(
ISBLANK([FirstName]) || ISBLANK([LastName]),
COALESCE([FirstName], "") & COALESCE([LastName], ""),
[FirstName] & " " & [LastName]
)
Implementation:
Method 1: Using Merge Columns
Method 2: Custom Column Approach Add a custom column with this M formula:
= [FirstName] & " " & [LastName]
Method 3: Handle Nulls in Power Query For better null handling:
= Text.Combine({[FirstName], [LastName]}, " ")
The Power Query approach is usually my go-to since it keeps the model cleaner and processes faster during refresh!
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
Hey @krishna_murthy,
Hey there! Here are both approaches I use for combining first and last names:
Step 1: Add Calculated Column Go to your table in the semantic model and create a new calculated column:
Full Name = [FirstName] & " " & [LastName]
Step 2: Handle Blank Values (Recommended) If you have missing data, use this instead:
Full Name =
IF(
ISBLANK([FirstName]) || ISBLANK([LastName]),
COALESCE([FirstName], "") & COALESCE([LastName], ""),
[FirstName] & " " & [LastName]
)
Implementation:
Method 1: Using Merge Columns
Method 2: Custom Column Approach Add a custom column with this M formula:
= [FirstName] & " " & [LastName]
Method 3: Handle Nulls in Power Query For better null handling:
= Text.Combine({[FirstName], [LastName]}, " ")
The Power Query approach is usually my go-to since it keeps the model cleaner and processes faster during refresh!
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
If you can edit the semantic model (best for slicers/labels): add a calculated column.
Full Name =
VAR s =
TRIM( COALESCE('Customers'[FirstName], "") & " " & COALESCE('Customers'[LastName], "") )
RETURN IF( s = "", BLANK(), s )
If you’re on a thin report (live connection) and can’t add columns: you can only add a measure (works in cards/tables, not slicers/axes).
Full Name (measure) =
VAR f = SELECTEDVALUE('Customers'[FirstName])
VAR l = SELECTEDVALUE('Customers'[LastName])
VAR s = TRIM( COALESCE(f, "") & " " & COALESCE(l, "") )
RETURN IF( s = "", BLANK(), s )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 20 | |
| 12 | |
| 12 |