Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count if one field contains text from other field

Hi all,

I need you help please with Qlik Sense.

I have two tables:

  1. [Table1]:
    table1.JPG
  2. [Table2]:
    table2.JPG

*note: REASON_CODE_SLOV could be a sentence and not just a one word.

I would like to create a pivot table that count if REASON_CODE_SLOV (from Table2) is in REASON_CODE_MLOV (from Table1).

For example:

table2+count.JPG

 

What will be the function I should use to count the words/text from Table2 if Table1 contains them?

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Sum(If(WildMatch(Reason_Code_Mlov, '*'&Reason_Code_Slov&'*'), 1, 0))

counter.png

 

 

 

 

 

 

 

 

 

 

 

 

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Sum(If(WildMatch(Reason_Code_Mlov, '*'&Reason_Code_Slov&'*'), 1, 0))

counter.png