<?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: Variable in Match function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1553159#M440428</link>
    <description>&lt;P&gt;What about&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count(DISTINCT if( status = monthCombo,sale))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2019 18:28:36 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2019-03-06T18:28:36Z</dc:date>
    <item>
      <title>Variable in Match function?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/76150#M12588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use match function to filter data in the script part. However i dint want to hard code values since they change everyday. Can anyone please help me understand to do them automatically using variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attched file where i described the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 21:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/76150#M12588</guid>
      <dc:creator>qlikuser222</dc:creator>
      <dc:date>2018-02-08T21:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Match function?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/76151#M12589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be easier to use the Exists() function to check against your field loaded from Excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;ID,&amp;nbsp; Net&lt;/P&gt;&lt;P&gt;1, 200&lt;/P&gt;&lt;P&gt;2, 300&lt;/P&gt;&lt;P&gt;3, 400&lt;/P&gt;&lt;P&gt;4, 500 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//****Assuming below&amp;nbsp; ID data is coming from external file and they keep changing****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;STRONG&gt;ID as IDCheck&lt;/STRONG&gt; inline [&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;3];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident Test&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;Exists(IDCheck, ID)&lt;/STRONG&gt;; //match(ID,'1','3');&lt;/P&gt;&lt;P&gt;drop table Test;&amp;nbsp; // instead of harcoding ID values 1 and 3 is there any way get them inside match function using varibale?? like mentioned above ID's will be maintined in external file and will be chnaging and we cant hardcode them everyday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP FIELD IDCheck;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively if you load the ID to check first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID&amp;nbsp; inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Test:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * Inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ID,&amp;nbsp; Net&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, 200&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, 300&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3, 400&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;4, 500 ]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;WHERE Exists(ID);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/76151#M12589</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-08T22:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Match function?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/76152#M12590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you want to stick to the Match() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;ID,&amp;nbsp; Net&lt;/P&gt;&lt;P&gt;1, 200&lt;/P&gt;&lt;P&gt;2, 300&lt;/P&gt;&lt;P&gt;3, 400&lt;/P&gt;&lt;P&gt;4, 500 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//****Assuming below&amp;nbsp; ID data is coming from external file and they keep changing****&lt;/P&gt;&lt;P&gt;Check:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Concat( chr(39) &amp;amp; ID &amp;amp; chr(39), ',') as Check;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load ID inline [&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;3];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vCheck = Peek('Check',0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Check;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident Test&lt;/P&gt;&lt;P&gt;where match(ID,&lt;STRONG&gt;$(vCheck)&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Test; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/76152#M12590</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-08T22:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Match function?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1552702#M440395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am getting that values, but want to use them in Match() in expression,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;monthCombo gives 'y','o','u'&lt;/P&gt;&lt;P&gt;=count(DISTINCT(if(match(status,monthCombo),sale)))&lt;/P&gt;&lt;P&gt;But it is not working.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1552702#M440395</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-06T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Match function?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1553159#M440428</link>
      <description>&lt;P&gt;What about&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count(DISTINCT if( status = monthCombo,sale))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1553159#M440428</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2019-03-06T18:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Match function?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1553306#M440443</link>
      <description>Used this one and worked fine,&lt;BR /&gt;=count(DISTINCT(if(WildMatch(status,'*$(monthCombo)*'),sale)))&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 07 Mar 2019 05:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Match-function/m-p/1553306#M440443</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-07T05:45:36Z</dc:date>
    </item>
  </channel>
</rss>

