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
Is there a simply way to do this in "Transform Data" or would you recommend a certain function/formula?
| Code | First & Last Name | Desired Output (Relplace Text not create new column) |
| G14 | Clarence Carter | C. Carter |
| MIA | Chuck Norriss | C. Norriss |
| MIB | Will Smith | W. Smith |
Solved! Go to Solution.
Hi @jmetf150 ,
Here are the steps you can follow:
1. Create calculated column.
Test =
var _find=
SEARCH(" ",[First & Last Name],1)
var _len=
LEN([First & Last Name])
var _test=
RIGHT(
[First & Last Name],_len-_find)
return
LEFT(
[First & Last Name],1)&". "&_test
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @jmetf150 ,
Here are the steps you can follow:
1. Create calculated column.
Test =
var _find=
SEARCH(" ",[First & Last Name],1)
var _len=
LEN([First & Last Name])
var _test=
RIGHT(
[First & Last Name],_len-_find)
return
LEFT(
[First & Last Name],1)&". "&_test
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |