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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator II
Creator II

Extract number after text

Hi,

 

I need to extract number form the text like

Scenario1:

123ABC678

Req output:  678

Scenario2:

123ABC678

Req output:  ABC678

 

Please share your suggestions.

 

Thanks..

 

 

 

Labels (2)
3 Replies
brunobertels
Master
Master

Hi 

if the format is always 3 last digit a integer and always 6 last digits as text and integer use right function 

 

right('123ABC678', 3 ) will give 678 

right('123ABC678', 6 ) will give ABC678 

 

Krish2459_58
Creator II
Creator II
Author

Hi ,

The logic should be dynamic to handle the datalike below.

000ACC34: output(34)

22BNZ113 : output (BNZ113 )

000ACC34
22BNZ113
Aditya_Chitale
Specialist
Specialist

@Krish2459_58 

What is the criteria that determines whether you want to extract last 3 characters or last 6 characters ?

For eg:

In what scenario you want to extract only the last digit part from string ? Eg: 000ACC34: output(34)

Same goes for 22BNZ113 : output (BNZ113 ). Why you want  to extract BNZ along with 113 ? and not only 113 like above example ?

 

Regards,

Aditya