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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extract Limited no. of length from a alpha numeric field.

Hi Guys,

There is a field containing alphanumeric data.

say : a12364g454433332

want to extract limited lengths ,

ex: a1236

or

a12364g

How this can be achieved at script level in QV.

1 Solution

Accepted Solutions
Not applicable
Author

LOAD mid(field,1,5) AS part,

* FROM bla;

View solution in original post

5 Replies
Not applicable
Author

mid('a12364g454433332',1,5)

mid('a12364g454433332',1,6)

Greetz,

Andreas

Not applicable
Author

or use left:

left('a12364g454433332',5)

Anonymous
Not applicable
Author

Hi ,

Thanks for the reply,,

But i need this to happen with all the records in a particular field.

Can u tell me how to achieve this in script..

Regards

Not applicable
Author

LOAD mid(field,1,5) AS part,

* FROM bla;

Anonymous
Not applicable
Author

Thanks,

the mid() logic worked..