Forum Discussion
Extracting text before a delimiter
- 5 years ago
Hi unnijoy ,
Does your Name & ID column contain data like "AA" without parentheses? If so, you will get an error when using the DAX provided by amitchandak .
Try the following formula:
Name = LEFT( 'Table'[Name & ID], SEARCH( "(", 'Table'[Name & ID], , LEN('Table'[Name & ID]) + 1 ) - 1 )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi unnijoy ,
Does your Name & ID column contain data like "AA" without parentheses? If so, you will get an error when using the DAX provided by amitchandak .
Try the following formula:
Name =
LEFT(
'Table'[Name & ID],
SEARCH(
"(",
'Table'[Name & ID],
,
LEN('Table'[Name & ID]) + 1
) - 1
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
NAME = LEFT('Table'[Name & ID],SEARCH("(",'Customer Data'[Customer Name],1,0)-1)