<?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: FieldValue() and FieldIndex() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486763#M181846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did change this shortly after posting; realized it was not that, that was causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply! Coincidentally, all my previous applications of this function worked because the field I was referencing by default was distinct for each line within a table. This obviously led me to believe it was behaving in a way it was not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you mentioned this, I realized that this function would return the correct result&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MeasureName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vVolumeAccounts)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Frequency&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 11:50:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-27T11:50:20Z</dc:date>
    <item>
      <title>FieldValue() and FieldIndex()</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486761#M181844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data table that has two fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Measure&lt;/LI&gt;&lt;LI&gt;Frequency&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to output the value for Frequency when the user selects a measure. I thought this would be easy, but it is giving me issues. A simplified version of my expression is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldValue('Frequency',5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed something unusual. My frequency table only has 3 distinct values i.e. Daily, Weekly, Monthly. The fieldvalue() has taken the distinct count and rearranged my elem_no so that any elem_no I enter above 3 returns a null. How is this possible when it looks at the internal table as per load order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help understanding this problem would be greatly appreciated. If you need more info, let me know &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;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486761#M181844</guid>
      <dc:creator />
      <dc:date>2013-09-27T11:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: FieldValue() and FieldIndex() - Recognise Text with Space</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486762#M181845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I am a little bit confused, maybe because your thread title 'Recognise Text with Space'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldValue is not looking at a table, it's looking at the field (similar to a list box) with its stored distinct values.&lt;/P&gt;&lt;P&gt;So what you expect to be returned if you enter an elem_no larger than the amount of distinct values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486762#M181845</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-27T11:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: FieldValue() and FieldIndex()</title>
      <link>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486763#M181846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did change this shortly after posting; realized it was not that, that was causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply! Coincidentally, all my previous applications of this function worked because the field I was referencing by default was distinct for each line within a table. This obviously led me to believe it was behaving in a way it was not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you mentioned this, I realized that this function would return the correct result&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MeasureName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vVolumeAccounts)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Frequency&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FieldValue-and-FieldIndex/m-p/486763#M181846</guid>
      <dc:creator />
      <dc:date>2013-09-27T11:50:20Z</dc:date>
    </item>
  </channel>
</rss>

