Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
See why Qlik was named a Leader in the 2025 Gartner® Magic Quadrant™ for Augmented Data Quality Solutions: GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
waleeed_mahmood
Creator
Creator

How to interpret * in your data

Hello,

I have two tables that i read from SQL. Table A and Table B both have a field called Indicator. However, in Table A, Indicator contains some text "ABC" but in Table B, Indicator contains a wildcard (*) meaning it should match everything. I want to compare  and see if Table A.Indicator=Table B.Indicator and the result should be a yes because anything and everything compared to Table B.Indicator should match because of the WildCard. How can i do this in Qlik Sense?

Table A:                                   Table B:

Indicator                                 Indicator

ABC                                            *

DEF                                            *

 

Thank you for your help.

Labels (4)
2 Solutions

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

=WildMatch(TableA.Indicator, TableB.Indicator)

-Rob

View solution in original post

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

If using a variable value, you'll need single quotes around the string. 

if (Wildmatch('$(oM_ProIndic)', '*')) then

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

View solution in original post

4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

=WildMatch(TableA.Indicator, TableB.Indicator)

-Rob

waleeed_mahmood
Creator
Creator
Author

Thank you Rob.

waleeed_mahmood
Creator
Creator
Author

Hi Rob,

I tried your solution with the following code and it doesnt work. $(oM_ProIndic) is a variable that i store Table A.Indicator in. What am i doing wrong in this case?

if (Wildmatch($(oM_ProIndic), '*')) then

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

If using a variable value, you'll need single quotes around the string. 

if (Wildmatch('$(oM_ProIndic)', '*')) then

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com