<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Wildmatch - compare two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876114#M655649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does qualify a match in your context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to know if Model is part of SModel, try like this using wildcards '*':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, if(wildmatch(SModel , '*'&amp;amp;Model&amp;amp;'*'),1,0) AS Flag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model , SModel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ABC, ABC D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to know if Model is part SModel or SModel is part of Model:&lt;/P&gt;&lt;P&gt;LOAD *, if(wildmatch(SModel , '*'&amp;amp;Model&amp;amp;'*') or wildmatch(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Model , '*'&amp;amp;SModel&amp;amp;'*'&lt;/SPAN&gt;),1,0) AS Flag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model , SModel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ABC, ABC D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The matching will be case insensitive, but checking if the e.g. Model is fully contained within SModel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 16:42:46 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-11T16:42:46Z</dc:date>
    <item>
      <title>Wildmatch - compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876113#M655648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to compare 2 field values with WildMatch, for example, Model and SModel both contain ABC and should be recognized as 'match'. But the wildmatch here does exact match. How to solve the problem? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD if(wildmatch(Model , SModel),1,0) AS Flag&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model , SModel&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; ABC, ABC D&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 14:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876113#M655648</guid>
      <dc:creator />
      <dc:date>2015-06-11T14:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch - compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876114#M655649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does qualify a match in your context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to know if Model is part of SModel, try like this using wildcards '*':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, if(wildmatch(SModel , '*'&amp;amp;Model&amp;amp;'*'),1,0) AS Flag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model , SModel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ABC, ABC D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to know if Model is part SModel or SModel is part of Model:&lt;/P&gt;&lt;P&gt;LOAD *, if(wildmatch(SModel , '*'&amp;amp;Model&amp;amp;'*') or wildmatch(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Model , '*'&amp;amp;SModel&amp;amp;'*'&lt;/SPAN&gt;),1,0) AS Flag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model , SModel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ABC, ABC D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The matching will be case insensitive, but checking if the e.g. Model is fully contained within SModel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 16:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876114#M655649</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-11T16:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch - compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876115#M655650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! Exactly what I am looking for!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-compare-two-fields/m-p/876115#M655650</guid>
      <dc:creator />
      <dc:date>2015-06-11T17:29:41Z</dc:date>
    </item>
  </channel>
</rss>

