Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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