Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
awalhashim
Contributor II
Contributor II

Count wildmatch

Hi all,

I want to count the field that contained the char which like this.

 Count(WildMatch(Interest.source, 'Non-'))

Is this the correct way to do because i have not use wildmatch function before and not sure how it is work.

Thanks by the way.

Labels (2)
1 Solution

Accepted Solutions
sergioskv
Contributor III
Contributor III

HI!

It's much easier.

Try this:

Count({<Interest.source={"Non*"}>} Interest.source)

 

Sergio S.

View solution in original post

5 Replies
sergioskv
Contributor III
Contributor III

HI!

It's much easier.

Try this:

Count({<Interest.source={"Non*"}>} Interest.source)

 

Sergio S.

Thiago_Justen_

Sergio gave you a better option, but you can also do this :

 Count(WildMatch(Interest.source, 'Non*'))

 

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
sasis551
Contributor III
Contributor III

Hi ,may be it works

load *,

if(wildmatch(Intrest.source,'Non-*'))as Filter   from location;

 

=>in text box you can take =>count(Filter)

awalhashim
Contributor II
Contributor II
Author

Hi sergio, thanks for the reply. What if interest.source is actually an expression. It showing bad field name(s):. Thank u so much for your help.
Thiago_Justen_

You could also try this:

 

 Sum(If(WildMatch(Interest.source,'Non*'),1,0))

 

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago