<?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: Why null values stored in variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392991#M820185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find this attached QVW file. I'm having the same null values issue, but I've used Peek function only. Kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2017 14:45:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-14T14:45:36Z</dc:date>
    <item>
      <title>Why null values stored in variables</title>
      <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392986#M820180</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;In the below screenshot, I've got null values in variables as marked in the screenshot. Please anyone could say what I did wrong in the script?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173215_Screenshot_3.png" style="font-size: 13.3333px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD VarCustomer, IN, OUT&lt;/P&gt;&lt;P&gt;FROM &lt;C&gt; (biff, embedded labels, table is Sheet1$);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;let noRows = NoOfRows('A'); &lt;/P&gt;&lt;P&gt;TRACE '$(noRows)';&lt;/P&gt;&lt;P&gt;for i=1 to $(noRows)&lt;/P&gt;&lt;P&gt;TRACE '----------------------------------------------';&amp;nbsp; &lt;/P&gt;&lt;P&gt;TRACE '$(i)';&amp;nbsp; &lt;/P&gt;&lt;P&gt;let vVar=&amp;nbsp; FieldValue('VarCustomer',$(i)) ;&lt;/P&gt;&lt;P&gt;let vOriginFormat = FieldValue('IN',$(i));&lt;/P&gt;&lt;P&gt;let vDestinationFormat = FieldValue('OUT',$(i));&lt;/P&gt;&lt;P&gt;TRACE '$(vVar)';&lt;/P&gt;&lt;P&gt;TRACE '$(vOriginFormat)';&lt;/P&gt;&lt;P&gt;TRACE '$(vDestinationFormat)';&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&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/Why-null-values-stored-in-variables/m-p/1392986#M820180</guid>
      <dc:creator>vengadeshpalani</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why null values stored in variables</title>
      <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392987#M820181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May bebe for thatthat field index value you dont have data so then null produced. Check that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 00:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392987#M820181</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-12T00:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why null values stored in variables</title>
      <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392988#M820182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because IN has only one value HR, so FieldValue('IN', 2) and FieldValue('IN', 3) and FieldValue('IN', 4) are all null. Out has two values, so 3 and 4 are null... FieldValue looks at the distinct value within a field and that's why 2, 3, 4 for IN doesn't show anything &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 02:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392988#M820182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-12T02:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why null values stored in variables</title>
      <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392989#M820183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show related value instead of null value means what I want to change in script &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 11:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392989#M820183</guid>
      <dc:creator>vengadeshpalani</dc:creator>
      <dc:date>2017-08-12T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why null values stored in variables</title>
      <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392990#M820184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Peek()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD VarCustomer,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IN,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [test2.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let noRows = NoOfRows('A'); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE '$(noRows)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i=&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt; to $(noRows)&lt;SPAN style="color: #ff0000;"&gt;-1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE '----------------------------------------------';&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE '$(i)';&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vVar=&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;Peek&lt;/SPAN&gt;('VarCustomer',$(i)) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vOriginFormat = &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Peek&lt;/STRONG&gt;('IN',$(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vDestinationFormat = &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Peek&lt;/STRONG&gt;('OUT',$(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE '$(vVar)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE '$(vOriginFormat)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE '$(vDestinationFormat)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next i&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXIT SCRIPT;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 12:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392990#M820184</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-12T12:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why null values stored in variables</title>
      <link>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392991#M820185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find this attached QVW file. I'm having the same null values issue, but I've used Peek function only. Kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-null-values-stored-in-variables/m-p/1392991#M820185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-14T14:45:36Z</dc:date>
    </item>
  </channel>
</rss>

