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: 
ananyaghosh
Creator III
Creator III

Can anyone give example of search a string through expression?

Hi,

i need to serach a string through an expression like this:-

sum({$<[company name] = {*cognizant?}>}sales) ...so is it valid?

Can anyone give me a reference that for searching a string what is the use of * and ?

and if I want to search a company whose name start with cognizant, then how it will be written?

also is it work like this:

like '%cognizant' for general SQL statement?

7 Replies
PrashantSangle


Hi,

try like

count(if(Wildmatch([Comapny Name],'*Cognizant*'),Sales))

IF you want case sensitive search use match()

IF you want non case sensitive search use wildmatch()

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
oknotsen
Master III
Master III

Set Analysis statement for string with "cognizant" somewhere in the string:

sum({$<[company name] = {*cognizant*}>}sales)

Set Analysis statement for string with "cognizant" at the start of the string:

sum({$<[company name] = {cognizant*}>}sales)

QlikView script uses the * as wildcard.

The % symbol is used in some databases as wildcard, but not in QlikView.

May you live in interesting times!
awhitfield
Partner - Champion
Partner - Champion

Try this instead:

=sum({<[company name] = {"cog*"}>}sales)

ananyaghosh
Creator III
Creator III
Author

What is the use of ? in Qlikview expression?

Anonymous
Not applicable

Sandeep

Go through the HIC blog The Expression Search

you will get clear understanding about search perform in QV.

Thanks

BKC

PrashantSangle


Hi,

? represent one character and

* represent all

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sagarkharpude
Creator III
Creator III

sum({$<[company name] = {'cognizant*'}>}sales)


Also refer the below link:

The Search String