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.
unnijoy , You need to have a new column for that. Best is split this in power query based on (
In dax a new column
left([name], search("(", [Name],,0)-1)
hi amitchandak ,
An argument of function 'LEFT' has the wrong data type or has an invalid value. this is the error message that i am getting. I check the column type. Its in Text.
- v-kkf-msft5 years ago
Community Support
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.
- Syndicate_Admin3 years ago
Administrator
NAME = LEFT('Table'[Name & ID],SEARCH("(",'Customer Data'[Customer Name],1,0)-1)
- unnijoy5 years ago
Post Prodigy