<?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: Using a comma-separated list of values in Pick() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154371#M909776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 19:33:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-08T19:33:40Z</dc:date>
    <item>
      <title>Using a comma-separated list of values in Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154370#M909775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a LET variable named vList, with the following value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;''Booking Confirmation', 'Container Documentation', 'Document Accuracy', 'Shipper Sent Docs''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, it's a list of comma separated values where each value is enclosed in single quotes, and finally the whole list is enclosed in single quotes as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use this variable in the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=match(vState, vList)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vState is another variable, its value can be any of the values in the list, and I want to know the position of vState value in the list using the match function. The match() function will be used in an expression in the 'Show Conditional' field in a chart object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thing is, I can't get this to work as I expect. I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=match(vState, vList)&amp;nbsp;&amp;nbsp;&amp;nbsp; the result is 0&lt;/P&gt;&lt;P&gt;=match(vState, $(vList))&amp;nbsp; the result is -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please kindly point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154370#M909775</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a comma-separated list of values in Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154371#M909776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 19:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154371#M909776</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T19:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a comma-separated list of values in Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154372#M909777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Match( 'C', 'A', 'B', 'C','D')&amp;nbsp; returns 3 as you would expect/&lt;/P&gt;&lt;P&gt;Perhaps you need to enclose your first variable in quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried&amp;nbsp; match('$(vState)', $(vList) )&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 20:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154372#M909777</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-06-08T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using a comma-separated list of values in Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154373#M909778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the working solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vList = Chr(39) &amp;amp;'Booking Confirmation' &amp;amp;Chr(39) &amp;amp;',' &amp;amp;Chr(39) &amp;amp;'Container Documentation' &amp;amp;Chr(39)&amp;amp;',' &amp;amp;Chr(39) &amp;amp;'Document Accuracy' &amp;amp;Chr(39)&amp;amp;',' &amp;amp;Chr(39) &amp;amp;'Shipper Sent Docs' &amp;amp;Chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vState= 'Document Accuracy';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In text box:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Match('$(vState)',$(vList))&amp;nbsp; &lt;STRONG&gt;&amp;lt;--- This will give you the result 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Attached is the working qlikview file. Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 20:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154373#M909778</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-08T20:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a comma-separated list of values in Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154374#M909779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thirumala, it worked. The key was to remove the outmost single quotes, as shown by your sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vList value should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Booking Confirmation', 'Container Documentation', 'Document Accuracy', 'Shipper Sent Docs'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;''Booking Confirmation', 'Container Documentation', 'Document Accuracy', 'Shipper Sent Docs''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 23:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154374#M909779</guid>
      <dc:creator />
      <dc:date>2016-06-08T23:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using a comma-separated list of values in Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154375#M909780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad that it worked out....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 11:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-comma-separated-list-of-values-in-Pick-function/m-p/1154375#M909780</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-09T11:20:14Z</dc:date>
    </item>
  </channel>
</rss>

