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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Truncate characters and preceding zero

Hi,

Am new to QlikView and have the below requirement and seeking help from gurus.

I have a Field as per below and need help on desired output. Please advice.

Field is a combination of Name & ID -> ID starts with '(' and ends with ')' I need to truncate the first 2 chars and if there is a preceding zero that needs to be removed as well.

Field - XXX YYY ZZZ (AA0123054)

Output - 123054

Field - A BB CCCC (XX0985050)

Output - 985050

Thanks,

Rai

1 Solution

Accepted Solutions
sunny_talwar

May be this:

KeepChar(TextBetween(FieldName, '(', ')'), '0123456789) * 1 as Output

View solution in original post

2 Replies
sunny_talwar

May be this:

KeepChar(TextBetween(FieldName, '(', ')'), '0123456789) * 1 as Output

Not applicable
Author

Thank you Sunny.