Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need help in filtering a field

Hi Friends, Need a quick help..

I have column like below,

IP Address

10.10.10.1

10.10.10.2

10.30.40.5

10.55.45.7

172.65.10.11

When I load this column I dont want IP addresses starting with 10.10. and I want IP addresses starts only with 10.. Any suggestions please?

1 Solution

Accepted Solutions
oknotsen
Master III
Master III

Try this:

SQL SELECT *

FROM source

WHERE SomeField LIKE '10.*'

AND SomeField NOT LIKE '10.10.*'

;

May you live in interesting times!

View solution in original post

5 Replies
oknotsen
Master III
Master III

Try this:

SQL SELECT *

FROM source

WHERE SomeField LIKE '10.*'

AND SomeField NOT LIKE '10.10.*'

;

May you live in interesting times!
fvelascog72
Partner - Specialist
Partner - Specialist

Something like:

LOAD

IP

INLINE [

    IP

    10.10.10.1

    10.10.10.2

    10.30.40.5

    10.55.45.7

    172.65.10.11

]

Where not([IP] like '10.10*');

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

HI Vijay,

Kindly find below attached file.

IP_ADD:

LOAD

IP

INLINE [

    IP

    10.10.10.1

    10.10.10.2

    10.30.40.5

    10.55.45.7

    172.65.10.11

]

Where not([IP] like '10.10*');

Regards,

nagarjuna

Karthik3
Creator III
Creator III

IF(LEFT([IP Address], 5)<>'10.10', IF(LEFT([IP Address], 2)='10', [IP Address])) AS [IP Address]

Anonymous
Not applicable
Author

Thanks everyone for your timely help.