<?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: Return Position of an Element from a List in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163548#M379049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for the responses so far but I still cannot make it work.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'd like to stay away from using index() because the denominator does not have a constant length.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Match() returns a "-" for every value in my chart. I've attached a sample qvw.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any thoughts about where I'm going wrong?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 14:10:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-09T14:10:12Z</dc:date>
    <item>
      <title>Return Position of an Element from a List</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163545#M379046</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 am attempting to the find the position of a string within a list but can't get the expression right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a combination of unique strings stored in a field called "list". I have another field called "version" which contains a single element from "list". I'd like to find the position of "version" within "list".&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how I have it set up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list = '10.0.1', '10.0.2', '10.0.3', '10.0.4'....&lt;/P&gt;&lt;P&gt;version = '10.0.2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example I want an expression to return 2. I've tried using index() and other string functions but I can't quite get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163545#M379046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T13:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Return Position of an Element from a List</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163546#M379047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the attached link and you will be able to find the solution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1057277"&gt;Re: Using a comma-separated list of values in Pick() function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163546#M379047</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-09T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Return Position of an Element from a List</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163547#M379048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;if you want to use index you have to consider:&lt;/P&gt;&lt;P&gt;-the length of the item&lt;/P&gt;&lt;P&gt;-Also it must be a string, not a list.&lt;/P&gt;&lt;P&gt;-As index returns the position in the whole string, it must be divided by the length of the item (in this case 6) and also rounded up with the ceil function&lt;/P&gt;&lt;P&gt;=CEIL(INDEX('10.0.1,10.0.2,10.0.3,10.0.4,10.0.5,10.0.6','10.0.4')/6)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a list you can go with the match function, it will give you the position of the item to be found, like this:&lt;/P&gt;&lt;P&gt;=Match('10.0.3','10.0.1','10.0.2','10.0.3','10.0.4')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163547#M379048</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-06-09T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Return Position of an Element from a List</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163548#M379049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for the responses so far but I still cannot make it work.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'd like to stay away from using index() because the denominator does not have a constant length.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Match() returns a "-" for every value in my chart. I've attached a sample qvw.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any thoughts about where I'm going wrong?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163548#M379049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Return Position of an Element from a List</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163549#M379050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(Match(index(ver_list,version),1,13,25,37),1,2,3,4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163549#M379050</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2016-06-09T16:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Return Position of an Element from a List</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163550#M379051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as attached below:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Position-of-an-Element-from-a-List/m-p/1163550#M379051</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-09T16:58:20Z</dc:date>
    </item>
  </channel>
</rss>

