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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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.

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.