<?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: Load a variable from a a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679869#M727090</link>
    <description>&lt;P&gt;Try this after MaxNumberCommat table&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET vMaxNumberCommat = Peek('MaxNumberCommat');

FOR i =1 to $(vMaxNumberCommat)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 27 Feb 2020 13:30:30 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-02-27T13:30:30Z</dc:date>
    <item>
      <title>Load a variable from a a field</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679862#M727089</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I want to initialize a variable from a field.&lt;/P&gt;&lt;P&gt;I use a script like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 340px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29187i97D2E9862A7F451D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, i just want to replace the value&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt; by the value MaxNumberCommat.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I've tried&amp;nbsp;Let Vi=Max(Comptelesvirgules) just before For i = 1 to&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;, but it does not work&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance for your help&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679862#M727089</guid>
      <dc:creator>Fanch</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load a variable from a a field</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679869#M727090</link>
      <description>&lt;P&gt;Try this after MaxNumberCommat table&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET vMaxNumberCommat = Peek('MaxNumberCommat');

FOR i =1 to $(vMaxNumberCommat)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679869#M727090</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-27T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load a variable from a a field</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679873#M727091</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You should use variable to take max value.&lt;/P&gt;&lt;P&gt;After getting max value in table, you should create a variable to carry its value. Then you can use this variable on your for loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let vMax = peek('MaxNumberCommat');

for i=1 to $(vMax)
.
.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oops..Sunny is faster than me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679873#M727091</guid>
      <dc:creator>mfarsln</dc:creator>
      <dc:date>2020-02-27T13:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load a variable from a a field</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679891#M727092</link>
      <description>&lt;P&gt;Too strong !!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beer_mug:"&gt;🍺&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-from-a-a-field/m-p/1679891#M727092</guid>
      <dc:creator>Fanch</dc:creator>
      <dc:date>2020-02-27T13:40:43Z</dc:date>
    </item>
  </channel>
</rss>

