<?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: Compare two strings (One from field selections and another from a variable) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37129#M6258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2018 02:22:11 GMT</pubDate>
    <dc:creator>balarajuhari</dc:creator>
    <dc:date>2018-07-13T02:22:11Z</dc:date>
    <item>
      <title>Compare two strings (One from field selections and another from a variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37127#M6256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giants, I have a scenario where I want to populate a variable(vEUCategory) such that if any of the selected values in a field (Country) matches with any of the list in a variable (vEUCountries) then 1 else 0. How can i achieve this. I know we can achieve SQL's IN operator functionality in Qlikview using Match function. But here i need to compare multiple values (selections in Country field) with the list of values(EU Countries) in a variable (vEUCountries). I tried below, but not working when multiple countries (both EU and Non-EU) are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEUCategory=if(Match(subfield(Concat(Country, ','), ',', 1),$(=vNonEUCountries))=0 and&lt;/P&gt;&lt;P&gt; Match(subfield(Concat(Country, ','), ',', 1),$(=vEUCountries))&amp;gt;0),1,0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy Learning,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 04:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37127#M6256</guid>
      <dc:creator>balarajuhari</dc:creator>
      <dc:date>2018-03-16T04:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two strings (One from field selections and another from a variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37128#M6257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196618_1.PNG" style="height: auto;" /&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/196622_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 06:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37128#M6257</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-03-17T06:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two strings (One from field selections and another from a variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37129#M6258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 02:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-strings-One-from-field-selections-and-another-from-a/m-p/37129#M6258</guid>
      <dc:creator>balarajuhari</dc:creator>
      <dc:date>2018-07-13T02:22:11Z</dc:date>
    </item>
  </channel>
</rss>

