<?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 Help with Historical average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Historical-average/m-p/861727#M301619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bit of a newbie question I think.&lt;/P&gt;&lt;P&gt;I am trying to figure out how to calculate the change in the historical average for a value, and display in a chart or table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="211"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl87" height="48" width="64"&gt;Trade Date&lt;/TD&gt;&lt;TD class="xl87" width="83"&gt;Cusip&lt;/TD&gt;&lt;TD class="xl87" width="64"&gt;Current TES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/2/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;154.6654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/2/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;156.0904&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/2/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;170.3641&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/3/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;150.2771&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/11/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;161.8665&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The historical average is the average(Current TES) of all records other than the ones on the most recent date. The change in the historical average is the difference between the average of all records prior to most recent date and the average of the records on the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 20:06:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-30T20:06:43Z</dc:date>
    <item>
      <title>Help with Historical average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Historical-average/m-p/861727#M301619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bit of a newbie question I think.&lt;/P&gt;&lt;P&gt;I am trying to figure out how to calculate the change in the historical average for a value, and display in a chart or table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="211"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl87" height="48" width="64"&gt;Trade Date&lt;/TD&gt;&lt;TD class="xl87" width="83"&gt;Cusip&lt;/TD&gt;&lt;TD class="xl87" width="64"&gt;Current TES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/2/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;154.6654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/2/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;156.0904&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/2/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;170.3641&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/3/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;150.2771&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl82" height="20"&gt;3/11/2015&lt;/TD&gt;&lt;TD class="xl66"&gt;00037CRG7&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;161.8665&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The historical average is the average(Current TES) of all records other than the ones on the most recent date. The change in the historical average is the difference between the average of all records prior to most recent date and the average of the records on the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 20:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Historical-average/m-p/861727#M301619</guid>
      <dc:creator />
      <dc:date>2015-04-30T20:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Historical average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Historical-average/m-p/861728#M301620</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14304326517548312" jivemacro_uid="_14304326517548312"&gt;
&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Current TES]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Above&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Current TES]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),1,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;()-1))/&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Above&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Current TES]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),1,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;()-1))&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;IMG alt="QlikCommunity_Thread_162411_Pic2.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/85464_QlikCommunity_Thread_162411_Pic2.JPG" style="height: 374px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_162411_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/85463_QlikCommunity_Thread_162411_Pic3.JPG" style="height: 230px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;IMG alt="QlikCommunity_Thread_162411_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85461_QlikCommunity_Thread_162411_Pic1.JPG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 22:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Historical-average/m-p/861728#M301620</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-04-30T22:26:56Z</dc:date>
    </item>
  </channel>
</rss>

