<?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: QV not reading the correct field value due to similar values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510088#M685824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am testing as I write.&lt;/P&gt;&lt;P&gt;Thanks for the lead, I'll let you know in a second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 15:25:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-19T15:25:45Z</dc:date>
    <item>
      <title>QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510086#M685822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am faced with a nasty bug, that I am unable to solve.&lt;/P&gt;&lt;P&gt;HEre is the scenario:&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;f1, f2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="72"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="30"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="9"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="33"&gt;85&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;F&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;G&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;H&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;I&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;J&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;K&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;L&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;M&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;N&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;,&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to count the field values of each occurence and store in a variable to reuse later on.&lt;/P&gt;&lt;P&gt;LET j = NoOfRows('T1');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR i = 1 to $(j)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vLines$(i) = FieldValue('f2',$(i));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NEXT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is failing to assign values for similar fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on the matter?&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;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510086#M685822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510087#M685823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Field will only hold distinct values, Include the concept of table to the above using Peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vLines$(i) = peek('f2',$(i),'T1'); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the counter to start from 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510087#M685823</guid>
      <dc:creator />
      <dc:date>2013-12-19T15:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510088#M685824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am testing as I write.&lt;/P&gt;&lt;P&gt;Thanks for the lead, I'll let you know in a second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510088#M685824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510089#M685825</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 think you wanted to store all the values of field in the perticular variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not possible. you can store only one value into variable at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the other hand if you wanted to reuse it, load another table in the for loop and create one more table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510089#M685825</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2013-12-19T15:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510090#M685826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No no, I wanted to store them in separate variables (indexed).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510090#M685826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510091#M685827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the above worked? I tested and it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV_question.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50685_QV_question.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510091#M685827</guid>
      <dc:creator />
      <dc:date>2013-12-19T15:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510092#M685828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running it inside the entire code, since I have a gut feeling that it will force QV to read at the line level.&lt;/P&gt;&lt;P&gt;A few more minutes my friend and I'll update the thread &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510092#M685828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T15:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510093#M685829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vf2 = Concat(f2, '|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET j = NoOfRows('T1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = 1 to $(j)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vLines$(i) = subfield($(vf2), '|', $(i));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510093#M685829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T15:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: QV not reading the correct field value due to similar values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510094#M685830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a smart routine.&lt;/P&gt;&lt;P&gt;I learned a lot today &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to both of you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-reading-the-correct-field-value-due-to-similar-values/m-p/510094#M685830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T15:59:18Z</dc:date>
    </item>
  </channel>
</rss>

