<?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: Simple variable question [Load scripts] in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411563#M153198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems the way I got it working was: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Testing:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MIN([Selling Gross]) AS MinSellingGross,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MAX([Selling Gross]) AS MaxSellingGross&lt;/P&gt;&lt;P&gt;Resident Main;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;let vMinSellingGross = Peek('MinSellingGross');&lt;/P&gt;&lt;P&gt;let vMaxSellingGross = Peek('MaxSellingGross');&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 15:12:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-10T15:12:04Z</dc:date>
    <item>
      <title>Simple variable question [Load scripts]</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411561#M153196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple question, hopefully my code will speak a thousand words here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do BELOW In my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;let minSellingGross = MIN([Selling Gross]) ;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this isn't assigning the variable? I assume because the data hasn't been actually loaded it can't do it yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is best practice whilst trying to hardcode a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411561#M153196</guid>
      <dc:creator />
      <dc:date>2013-01-10T14:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simple variable question [Load scripts]</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411562#M153197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if Selling Gross is a field previously loaded in the script, you should use fieldvalue function to assign its min value to a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411562#M153197</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-01-10T14:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Simple variable question [Load scripts]</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411563#M153198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems the way I got it working was: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Testing:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MIN([Selling Gross]) AS MinSellingGross,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MAX([Selling Gross]) AS MaxSellingGross&lt;/P&gt;&lt;P&gt;Resident Main;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;let vMinSellingGross = Peek('MinSellingGross');&lt;/P&gt;&lt;P&gt;let vMaxSellingGross = Peek('MaxSellingGross');&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 15:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-variable-question-Load-scripts/m-p/411563#M153198</guid>
      <dc:creator />
      <dc:date>2013-01-10T15:12:04Z</dc:date>
    </item>
  </channel>
</rss>

