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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 (3)
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