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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Classification calculation

Hi all,

I'm confused about an issue.In the attached qvd file, you'll see there are "Gender__c" and "Hobby__c" fields.

For the value of "Gender__c" field is either "Female" or "Male", so I can calculate the corresponding records' total(as below):

Gender.PNG.png

But for the value of "Hobby__c" field is in the format of combination, just like:

hobby.PNG.png

So, if I want to calculate the records' total that "Hobby__c" is "Travel", how should I do ?

Thanks,

CoCo

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Count({<Hobby__c={"Travel"}>} [Account Id])


OR


Count({<Hobby__c={"Travel, "}>} [Account Id])


OR


Count({<Hobby__c={"*Travel*"}>} [Account Id])


Replace Travel value with the value in your field.


Regards,

Jagan.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Try:


Count(WildMatch(Hobby_c,'*Travel*'))

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Count({<Hobby__c={"Travel"}>} [Account Id])


OR


Count({<Hobby__c={"Travel, "}>} [Account Id])


OR


Count({<Hobby__c={"*Travel*"}>} [Account Id])


Replace Travel value with the value in your field.


Regards,

Jagan.

Not applicable
Author

Hi Jagan,

Thanks too much.

CoCo