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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a New Field From Specific Data in another Field

I need to create a new field in my model based on specific data from an existing field, is that possible?

Here is an example below.

I have a field in one of my tables that shows the following detail:

Acct_Field Data_2.PNG

I need to create a new field with the data after the "IV#" so the new field would only have 'CRG1500100' .

Thank you,

Nick

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

In your load script you could have this:

LOAD

     ....

     ....

     Trim( TextBetween( gltdes , 'IV#' , 'R:') )  AS [IV#],

     .....

     .....

FROM ...... ;

View solution in original post

3 Replies
b_garside
Partner - Specialist
Partner - Specialist

Try using the SubField() function. the delimiter will determine how it parses the values within

petter
Partner - Champion III
Partner - Champion III

In your load script you could have this:

LOAD

     ....

     ....

     Trim( TextBetween( gltdes , 'IV#' , 'R:') )  AS [IV#],

     .....

     .....

FROM ...... ;

Not applicable
Author

Thank you Petter!  That worked!