Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Prasad12
Contributor
Contributor

Qlik sense

Hi Everyone,

I am having a field named int_charge having different length of values. Here i need only the values as output excluding      -BDS ,-BDS1,-BDS2....

For eg: If we have the value as TDV3ST-050-BDS3 the output should be TDV3ST-050. Please refer to the excel attached.

 

Labels (1)
1 Solution

Accepted Solutions
brunobertels
Master
Master

hi 

 

try this 

left('TDV3ST-050-BDS3',index('TDV3ST-050-BDS3','-',2)-1)

View solution in original post

3 Replies
brunobertels
Master
Master

hi 

 

try this 

left('TDV3ST-050-BDS3',index('TDV3ST-050-BDS3','-',2)-1)

Prasad12
Contributor
Contributor
Author

Thanks, Bruno for you quick reply. It worked

SankarReddyK
Support
Support

@Prasad12 , please close the thread by Accept as Solution. Thank you.