Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Architect
Partner - Creator
Partner - Creator

select string value from starting to a special character.

I have a field value that looks like =

ABB-343

BADDD-7787

GG3WW-889H.

THESE VALUES ARE made up with the logic --" ITEM_TYPE & '-'& ITEM_NO AS FIELD1".

now help me select only "ITEM_TYPE" FROM THE  FIELD1 string.

My understanding we have to select data from the 1st left value up to '-'.

 

 

 

2 Solutions

Accepted Solutions
Taoufiq_Zarra

@Architect  like ?

=subfield(Field,'-',1)

Field is ITEM_TYPE & '-'& ITEM_NO AS FIELD1

like for example :

Taoufiq_Zarra_0-1607941709485.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

Architect
Partner - Creator
Partner - Creator
Author

Thanks, Taoufiq,

But I have used the below method, and it is working well.-

 TextBetween(FIELD1 ,'','-') AS ITEM_TYPE.

View solution in original post

2 Replies
Taoufiq_Zarra

@Architect  like ?

=subfield(Field,'-',1)

Field is ITEM_TYPE & '-'& ITEM_NO AS FIELD1

like for example :

Taoufiq_Zarra_0-1607941709485.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Architect
Partner - Creator
Partner - Creator
Author

Thanks, Taoufiq,

But I have used the below method, and it is working well.-

 TextBetween(FIELD1 ,'','-') AS ITEM_TYPE.