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: 
Not applicable

separate code.


Hello,

In my field called item I found thesecodes:


--------------------------------------------------------
Item
--------------------------------------------------------
codeXX-125

cd-A25
mycodenew-1lp01
--------------------------------------------------------

The structure is build like below:

s-b

part "a", dash and part "b"

So, I would to separate the part a to part b in this way:

code1:
codeXX
cd
mycodenew

code 2:

125
A25
1lp01

Please could to help me?
Thanks
Best Regards

--

Slash [:)]

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Slash,
Looks like you are looking for subfield:
subfield(code,'-',1) as code1
subfield(code,'-',2) as code2

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Slash,
Looks like you are looking for subfield:
subfield(code,'-',1) as code1
subfield(code,'-',2) as code2

Not applicable
Author

Many Thanks,

regards.

--

SlasjSmile