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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Substring function

Hi,

How can obtain two fileds : Addr. ipv4 and Addr. Ipv6 with substring function: 253.109.102.236/FA80::61B7:A707:80B:4411

Addr. IPv4 : 253.109.102.236

Addr. IPv6 : FA80::61B7:A707:80B:4411


Thanks for your help.

Labels (1)
3 Replies
m_woolf
Master II
Master II

Somthing like this:

left(FIELD,index(FIELD,'/')-1) as IPv4,

mid(FIELD,index(FIELD,'/')+1) as IPv6,

hic
Former Employee
Former Employee

subfield(Address,'/',1) as ipv4

subfield(Address,'/',2) as ipv6

HIC

Not applicable
Author

Thanks, mwoolf & Henric.