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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count & Wildmatch ( '*-??')

Hello everyone,

I'd like to count Management-IDs (companies) for certain business areas.

I only want to count those ManIDs that end with '-??'. CountManIDs.JPG

In this example, only the 33 ManIDs at the bottom should be counted (the ones that end with -01/-02 etc.)

I've tried the displayed expression but I don't fully understand the wildmatch function yet, the returned value is 2.

Thanks for your help.

Best regards,

Mats

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

The Wildmatch() will return either 0 or 1, that's what you count.

Use something like

=Count( DISTINCT If(Wildmatch(..), [Management ID]))

View solution in original post

2 Replies
swuehl
Champion III
Champion III

The Wildmatch() will return either 0 or 1, that's what you count.

Use something like

=Count( DISTINCT If(Wildmatch(..), [Management ID]))

Anonymous
Not applicable
Author

Got it, thank you Stefan.

Have a nice weekend.