<?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: Check if field1 matches with field2 in Load script. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372512#M419260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to go for loop and compare those row by row using for loop.&lt;/P&gt;&lt;P&gt;Because your can't use field2 as wildmatch second input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2017 08:31:28 GMT</pubDate>
    <dc:creator>balar025</dc:creator>
    <dc:date>2017-08-09T08:31:28Z</dc:date>
    <item>
      <title>Check if field1 matches with field2 in Load script.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372509#M419257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data as below and am trying to use wildmatch function to check is field1 matches with field2. But, I am unable to get the result.&lt;/P&gt;&lt;P&gt;The Data and the result that I want is as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Field2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y92.22&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="113"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="113"&gt;'Y92.23','Y92.24'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Match&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;W00.1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="113"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="113"&gt;'W0*','W1*'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Match&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;S06.2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="113"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="113"&gt;'W0*','W1*'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Not Match&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;X89.3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X89.5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Not Match&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y97.8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y97.8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Match&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;W19.6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="113"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="113"&gt;'W0*','W1*'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Match&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below in the Load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Field1,&lt;/P&gt;&lt;P&gt;Field2,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(Field1,Field2) &amp;gt; 0 ,'Match','Not Match') as Result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from file1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wildmatch does not seem to work in the script and returns 'Not Match' for all rows.&lt;/P&gt;&lt;P&gt;I also tried &lt;STRONG&gt;Wildmatch(Field1,$(=Field2)) and this gives an error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I get the desired result?&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let me know if you need more info on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Krish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 06:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372509#M419257</guid>
      <dc:creator />
      <dc:date>2017-08-09T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check if field1 matches with field2 in Load script.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372510#M419258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From Field2 you have 2 strings by delimiter. Which one we need to consider from Field1. I know this is complex but you have to provide proper logic which is behind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372510#M419258</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-09T08:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Check if field1 matches with field2 in Load script.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372511#M419259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to check like below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row1 - wildmatch('y92.22','y92.23','y92.24') - Not match as y92.22 is not in field1&lt;/P&gt;&lt;P&gt;row2 - wildmatch('w00.1','w0*','W1*') - is Match as it is a wildcard search&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wildmatch(field1,field2) does not seem to work for the above case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that clarifies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372511#M419259</guid>
      <dc:creator />
      <dc:date>2017-08-09T08:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Check if field1 matches with field2 in Load script.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372512#M419260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to go for loop and compare those row by row using for loop.&lt;/P&gt;&lt;P&gt;Because your can't use field2 as wildmatch second input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372512#M419260</guid>
      <dc:creator>balar025</dc:creator>
      <dc:date>2017-08-09T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check if field1 matches with field2 in Load script.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372513#M419261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnan,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Field1&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;PurgeChar&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;NField2&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Chr&lt;/SPAN&gt;(39))) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;W&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;PurgeChar&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;SubField&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Field2&lt;/SPAN&gt;,','),&lt;SPAN style="color: #0000ff;"&gt;Chr&lt;/SPAN&gt;(39)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NField2&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Field1;Field2&lt;BR /&gt; Y92.22;"'Y92.23','Y92.24'" &lt;BR /&gt; W00.1;"'W0*','W1*'"&amp;nbsp; &lt;BR /&gt; S06.2;"'W0*','W1*'"&amp;nbsp; &lt;BR /&gt; X89.3; X89.5 &lt;BR /&gt; Y97.8; Y97.8 &lt;BR /&gt; W19.6;"'W0*','W1*'" &lt;BR /&gt; ]&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; ';');&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Field1&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Only&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Field2&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Field2&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;W&lt;/SPAN&gt;) &amp;gt; 0,'Match','Not Match') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Result&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Table&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Field1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt; Table; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172895_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372513#M419261</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-09T08:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check if field1 matches with field2 in Load script.</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372514#M419262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 00:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-field1-matches-with-field2-in-Load-script/m-p/1372514#M419262</guid>
      <dc:creator />
      <dc:date>2017-08-10T00:02:45Z</dc:date>
    </item>
  </channel>
</rss>

