Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I have below column in my dataset, I want to use delimiter DAX to give me all the left value result before the space however I have written a dax but as I have few entries which doesnt have space in the value its throwing me error " " not found in the column, below is the column format, can someone please help.
| Full Post Code |
| RG24 8YB |
| BT4 1AF |
| M12 6LB |
| 60323 |
| 50170 |
| 3369 |
| 60327 |
| 75011 |
| WC1H 8HA |
| G71 5PW |
| D02 HW77 |
| VLT 1455 |
| D02 YA40 |
Solved! Go to Solution.
New Column =
IFERROR(
LEFT(
[Full Post Code],
SEARCH(" ", [Full Post Code], 1, LEN([Full Post Code])) - 1
),
[Full Post Code]
)
Hi @cyborgandy
Try this code... Otherwise, you will miss some values when there's no space
New Column =
IF(CONTAINSSTRING([Full post code]," "),
LEFT(
[Full Post Code],
SEARCH(" ", [Full Post Code], 1, LEN([Full Post Code])) - 1
),
[Full post code]
)
Kind regards
New Column =
IFERROR(
LEFT(
[Full Post Code],
SEARCH(" ", [Full Post Code], 1, LEN([Full Post Code])) - 1
),
[Full Post Code]
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |