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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

write an expression -like

I am looking to write an expression in order to calculate the number of OwnerID where [Working Status] is LIKE  'Employee

=count ({<[Working Status] = {'Employee'}>} Distinct OwnerID)


How to add LIKE in the expression above ? Any help would be the most appreciated .

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

=Count({<[Working Status] = {'*Employee*'}>} Distinct OwnerID)

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

May be this:

=Count({<[Working Status] = {'*Employee*'}>} Distinct OwnerID)

Anonymous
Not applicable
Author

Like is used in IF statements. I think set analysis does not like "Like" in its expression. but Sunny has suggested what might just be the one you r looking for. if you want to include Like, the following should work:

=count(Distinct if( [Working status] Like '*Employee*', Distinct OwnerID))

Anonymous
Not applicable
Author

This one:      =count(Distinct if( [Working Status] Like '*Employee*', OwnerID))

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this using set analysis

=count ({<[Working Status] = {'*Employee*'}>} Distinct OwnerID)


Hope this helps you.


Regards,

jagan.

Not applicable
Author

Hi,

Try this one:

=COUNT ({<[Working Status] = {"Employee*"}>} DISTINCT OwnerID)

=COUNT ({<[Working Status] = {"*Employee*"}>} DISTINCT OwnerID)

qlikviewwizard
Master II
Master II

Hi,

Please use the below expression:

'*' will be used for searching the data with values Employee.

=count ({<[Working Status] = {'*Employee*'}>} Distinct OwnerID)


Please check the attached file for the sample file.