<?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 Setting variable value to a value retrieved  from resident table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152333#M29808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into this too. This is what I did to get my statistic.&lt;/P&gt;&lt;P&gt;mydatasummed:&lt;BR /&gt;load sum(MyVariable) as MyVariableSum resident mydata ;&lt;/P&gt;&lt;P&gt;let x = peek('MyVariableSum',0,'mydatasummed');&lt;/P&gt;&lt;P&gt;See if that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 07:07:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-19T07:07:44Z</dc:date>
    <item>
      <title>Setting variable value to a value retrieved  from resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152330#M29805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, is there a way to set a variable value directly to a value retrieved from a resident table, something like this:&lt;/P&gt;&lt;P&gt;SET myVariable = SUM(Quantity) RESIDENT myTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 19:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152330#M29805</guid>
      <dc:creator />
      <dc:date>2010-02-18T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Setting variable value to a value retrieved  from resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152331#M29806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Let myVariable=sum(Quantity);&lt;/P&gt;&lt;P&gt;will assign to myVariable the result of fhe sum.&lt;/P&gt;&lt;P&gt;Qlikview don't care with which table the field has been loaded.&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 21:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152331#M29806</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-02-18T21:57:45Z</dc:date>
    </item>
    <item>
      <title>Setting variable value to a value retrieved  from resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152332#M29807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for replying,&lt;/P&gt;&lt;P&gt;Using the syntax LET myVariable = SUM(Quantity);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting this message:&lt;/P&gt;&lt;P&gt;"Aggregation expressions not allowed in GROUP BY clause"&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 00:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152332#M29807</guid>
      <dc:creator />
      <dc:date>2010-02-19T00:35:56Z</dc:date>
    </item>
    <item>
      <title>Setting variable value to a value retrieved  from resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152333#M29808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into this too. This is what I did to get my statistic.&lt;/P&gt;&lt;P&gt;mydatasummed:&lt;BR /&gt;load sum(MyVariable) as MyVariableSum resident mydata ;&lt;/P&gt;&lt;P&gt;let x = peek('MyVariableSum',0,'mydatasummed');&lt;/P&gt;&lt;P&gt;See if that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 07:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152333#M29808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-19T07:07:44Z</dc:date>
    </item>
    <item>
      <title>Setting variable value to a value retrieved  from resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152334#M29809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can propose another syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;mydatasummed:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;mapping&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'mysum'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;as&lt;/B&gt; mysum,&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Quantity) &lt;B&gt;as&lt;/B&gt; myquantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the syntax proposed by Tim, do not forget to drop the table&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;myTable;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;let&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;myvariable=applymap('mydatasummed','myquantity');&lt;B&gt;load&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 09:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152334#M29809</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-02-19T09:26:14Z</dc:date>
    </item>
    <item>
      <title>Setting variable value to a value retrieved  from resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152335#M29810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This Works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 21:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variable-value-to-a-value-retrieved-from-resident-table/m-p/152335#M29810</guid>
      <dc:creator />
      <dc:date>2011-10-20T21:39:31Z</dc:date>
    </item>
  </channel>
</rss>

