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: 
QFanatic
Creator
Creator

get part of a string and exclude record

hi,

PFA

 

I've been asked to read data and exclude where the word 'form' appears alone in a string. My problem is that 'form' appears in different ways - it could be part of a surname, or Platform (like big data Platform in the example) or as a separate entity.

The rule that needs to be applied..

Exclude ANYTHING that excludes the word ' form ' in the name (note spaces).  however, there are 2 records for Brad Forman. I want to EXCLUDE the one that is consistent with the rule, and KEEP the one that only contains 'Brad Forman'.

How do I do this?

Thanks

 

 

 

1 Solution

Accepted Solutions
abhijitnalekar
Specialist II
Specialist II

Hi @QFanatic ,

Please try the below expression.

 

=if(SubStringCount(upper(Field_name),' FORM '),'Exclude','Include')

abhijitnalekar_0-1635417672632.png

 

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

2 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @QFanatic ,

Please try the below expression.

 

=if(SubStringCount(upper(Field_name),' FORM '),'Exclude','Include')

abhijitnalekar_0-1635417672632.png

 

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
QFanatic
Creator
Creator
Author

thank you!