Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Evan0211
Creator
Creator

Wilematch text filtering and count

I have a request to do some text filtering (which I know is a bad idea but unfortunately it's the only option at this time) and I am trying to get the totals in an overview table.

The overview table looks like this

No. of Entries Title Low Medium High

The No. of Entries is simply:

=if(
Match([OFFICE_CODE], $(vFilterOffice)),
count(R_TITLE)
)

That is working fine. The Low, Medium, High counts however always return -

I have tried the following different methods and can not get the count to return.

=if(wildmatch(R_TITLE, '*Low*'), count(R_TITLE))

=if(
Match([OFFICE_CODE], $(vFilterOffice)),
(
if(wildmatch(R_TITLE, '*Low*'), count(R_TITLE)
)
)
)

Any ideas?

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Try moving the match statement inside the count() statement, rather than vice versa, e.g.

Count(wildmatch(R_TITLE,'*Low*'))

or Count(if(WildMatch(R_TITLE,'*Low*'),1))

Or using set analysis rather than if() statements.

View solution in original post

2 Replies
Or
MVP
MVP

Try moving the match statement inside the count() statement, rather than vice versa, e.g.

Count(wildmatch(R_TITLE,'*Low*'))

or Count(if(WildMatch(R_TITLE,'*Low*'),1))

Or using set analysis rather than if() statements.

Evan0211
Creator
Creator
Author

Thank you, moving it inside the count statement worked.