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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Search Fields on Load

I have a simple select * query that loads a table consisting of about 20 fields. 10 of these fields are long text fields. Upon loading the data, I need to search all 10 of these fields to see if the string "requested" exists in any of these fields. How many matches it finds doesn't matter, just a true or false is needed if at least one match is found. So I'm thinking I'd be able to do this with a proceeding load where I create a new field called "request status" that holds either "true" or "false". What is the best way to do this without a bunch of nested If statements using substringcount?

Labels (1)
1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi,

I think there is no straight function for this.  You can try this

If(Field1 = "requested OR Field2 = "requested".............................OR Field10 = "requested", 1, 0) AS [request status]

Hope this helps you.

Regards,

Jagan.