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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivasa1
Creator II
Creator II

Split or subtract value


Hi

pl guide me, how i can subtract or split  value into two filed  from below list


01-Mohan-ABC-IT

02-Raj-test-A/c

03-Abh-Rohab-A/c


i would like to substrata into two filed as below


Filed

01

02

03

Filed 2

Mohan-ABC-IT  

Raj-test-A/c

Abh-Rohab-A/c

Labels (1)
4 Replies
luis_pimentel
Partner - Creator III
Partner - Creator III

You could play withLEFT(), RIGHT() and LEN() funcions, like:

LEFT(yourfield,2) AS Field1,

RIGHT(youfield,LEN(yourfield)-2) AS Field2

luis_pimentel
Partner - Creator III
Partner - Creator III

Take a look also to the SUBFIELD() function.

Not applicable

or you use subfield(yourfield,'-',1) as Field1

and right(yourfield,len(yourfield)-3) as Field2

ashwanin
Specialist
Specialist

Hi Srinivas,

Please go through the qv.

Here two functions used to get your desried output.