<?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: Using aggregated fields for further processing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554151#M686645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Srikanth,&lt;/P&gt;&lt;P&gt;You could be getting an error message as the fields used for Calculating &lt;SPAN style="color: #ff9900; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[ModTempIns]&lt;/SPAN&gt; are created after summation. So the place where you are doing this is correct.&lt;/P&gt;&lt;P&gt;Also make sure you are not dropping the table/field. Also please check the Table viewer and look for the field in that table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 22:05:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-22T22:05:49Z</dc:date>
    <item>
      <title>Using aggregated fields for further processing</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554150#M686644</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 have a few aggregated fields in my load script and want to do some calculations on these fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;If([Energy Diff] = 0 OR [MedianModTemp] = 0 OR [MedianIrr] = 0, 0,[MedianModTemp]) as [CommCorrectedModTemp],&lt;/P&gt;&lt;P&gt;If([Energy Diff] = 0 OR [MedianModTemp] = 0 OR [MedianIrr] = 0, 0, [Energy Diff]) as [CommCorrectedEnergy],&lt;/P&gt;&lt;P&gt;If([Energy Diff] = 0 OR [MedianModTemp] = 0 OR [MedianIrr] = 0,0, [MedianIrr]) as [CommCorrectedIrr]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Project, &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Energy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Irr1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Irr2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ModTemp1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ModTemp2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (IsNull(Energy),0, Energy) - (if (IsNull (Previous(Energy)),0,Previous(Energy))) as [Energy Diff],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (IsNull(ModTemp1),0,ModTemp1) + if(IsNull(ModTemp2),0,ModTemp2))/2&amp;nbsp; as [MedianModTemp],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (IsNull(Irr1),0,Irr1) + if(IsNull(Irr2),0,Irr2))/2 as [MedianIrr]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[SUMMATION]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Sum(CommCorrectedEnergy) as [Daily Energy],&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Resident MAIN&lt;/P&gt;&lt;P&gt;Group By Date &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Sum(CommCorrectedIrr) as [Daily IRR],&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Resident MAIN&lt;/P&gt;&lt;P&gt;Group By Date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Sum(CommCorrectedModTemp) as [Daily ModTemp],&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Resident MAIN&lt;/P&gt;&lt;P&gt;Group By Date &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do the following&lt;/P&gt;&lt;P&gt;[GetIns]:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;[Daily modTemp]/[Daily IRR] as [ModTempIns]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I get an error when I do this. Where should I be placing this?&lt;/SPAN&gt; If I place before [SUMMATION], I get an error, if I place in the end after [SUMMATION], I don't get an error, but it does not seem to be doing anything as I don't see the field [ModTempIns] created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 22:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554150#M686644</guid>
      <dc:creator />
      <dc:date>2014-01-22T22:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated fields for further processing</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554151#M686645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Srikanth,&lt;/P&gt;&lt;P&gt;You could be getting an error message as the fields used for Calculating &lt;SPAN style="color: #ff9900; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[ModTempIns]&lt;/SPAN&gt; are created after summation. So the place where you are doing this is correct.&lt;/P&gt;&lt;P&gt;Also make sure you are not dropping the table/field. Also please check the Table viewer and look for the field in that table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 22:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554151#M686645</guid>
      <dc:creator />
      <dc:date>2014-01-22T22:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated fields for further processing</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554152#M686646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Ajay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding it at the end of the script does not give an error, but the field is not visible/accessible either. It is not in Table viewer as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Sum(CommCorrectedModTemp) as [Daily ModTemp],&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Resident MAIN&lt;/P&gt;&lt;P&gt;Group By Date &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[GetIns]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Daily ModTemp]/ [Daily IRR] as [ModTempIns]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 22:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554152#M686646</guid>
      <dc:creator />
      <dc:date>2014-01-22T22:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated fields for further processing</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554153#M686647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this as the summation table. Its a preload:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[SUMMATION]:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff9900; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Daily modTemp]/[Daily IRR] as [ModTempIns]&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(CommCorrectedEnergy) as [Daily Energy],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(CommCorrectedIrr) as [Daily IRR],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(CommCorrectedModTemp) as [Daily ModTemp],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident MAIN&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By Date ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 22:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554153#M686647</guid>
      <dc:creator />
      <dc:date>2014-01-22T22:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated fields for further processing</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554154#M686648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 23:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-fields-for-further-processing/m-p/554154#M686648</guid>
      <dc:creator />
      <dc:date>2014-01-22T23:49:17Z</dc:date>
    </item>
  </channel>
</rss>

