<?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: Is there a way assign an aggregated load statement to a variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-there-a-way-assign-an-aggregated-load-statement-to-a-variable/m-p/132809#M603023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABC:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT AVG(ECO_Icalificacion) as Avg_Value &lt;/P&gt;&lt;P&gt;FROM TH_EncuestaECO E&amp;nbsp; &lt;/P&gt;&lt;P&gt;INNER JOIN Td_Tiempo T ON E.TPO_CFecha=T.TPO_CFecha&amp;nbsp; &lt;/P&gt;&lt;P&gt;WHERE TPO_CAnioFiscal=@vAnioCY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vAvg = Peek('Avg_Value',0,'ABC');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vAvg = Fieldvalue('Avg_Value',1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the above variable in different tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2018 06:29:18 GMT</pubDate>
    <dc:creator>BalaBhaskar_Qlik</dc:creator>
    <dc:date>2018-07-27T06:29:18Z</dc:date>
    <item>
      <title>Is there a way assign an aggregated load statement to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-way-assign-an-aggregated-load-statement-to-a-variable/m-p/132808#M603022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know if there is any way of assigning an aggregated load statement to a variable just as in SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15326529410828884" jivemacro_uid="_15326529410828884"&gt;
&lt;P&gt;DECLARE @vAnioCY INT=2018;&lt;/P&gt;
&lt;P&gt;DECLARE @vECOCY FLOAT;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SET @vECOCY=(&lt;/P&gt;
&lt;P&gt;SELECT AVG(ECO_Icalificacion)&lt;/P&gt;
&lt;P&gt;FROM TH_EncuestaECO E&lt;/P&gt;
&lt;P&gt;INNER JOIN Td_Tiempo T ON E.TPO_CFecha=T.TPO_CFecha&lt;/P&gt;
&lt;P&gt;WHERE TPO_CAnioFiscal=@vAnioCY&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 00:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-way-assign-an-aggregated-load-statement-to-a-variable/m-p/132808#M603022</guid>
      <dc:creator>julioarriaga</dc:creator>
      <dc:date>2018-07-27T00:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way assign an aggregated load statement to a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-way-assign-an-aggregated-load-statement-to-a-variable/m-p/132809#M603023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABC:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT AVG(ECO_Icalificacion) as Avg_Value &lt;/P&gt;&lt;P&gt;FROM TH_EncuestaECO E&amp;nbsp; &lt;/P&gt;&lt;P&gt;INNER JOIN Td_Tiempo T ON E.TPO_CFecha=T.TPO_CFecha&amp;nbsp; &lt;/P&gt;&lt;P&gt;WHERE TPO_CAnioFiscal=@vAnioCY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vAvg = Peek('Avg_Value',0,'ABC');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vAvg = Fieldvalue('Avg_Value',1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the above variable in different tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-way-assign-an-aggregated-load-statement-to-a-variable/m-p/132809#M603023</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-07-27T06:29:18Z</dc:date>
    </item>
  </channel>
</rss>

