<?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: Rolling average for previous 12 months as a percentage in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23659#M1599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be share a sample with expected output to help you better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2018 01:53:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-14T01:53:28Z</dc:date>
    <item>
      <title>Rolling average for previous 12 months as a percentage</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23657#M1597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all;&lt;/P&gt;&lt;P&gt;I am trying to write an expression that will look at the previous 12 months of data and provide an average for those 12 months as a percentage.&amp;nbsp; My data set is 79 months, roughly 341k rows of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can write the expression to look at only the previous month's average easily, &lt;STRONG style="text-decoration: underline;"&gt;Avg({&amp;lt;[=[Created on.autoCalendar.MonthsAgo]={1}&amp;gt;} 1-[Late to Confirm])&lt;/STRONG&gt;, but I am struggling to write the expression for the average of 12 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read through several other posts and have copied those expressions over and, while they work, I most definitely do not get the correct answer.&amp;nbsp; An example is this:&amp;nbsp; &lt;STRONG style="text-decoration: underline;"&gt;RangeAvg(Above(Sum({&amp;lt;[Created on]&amp;gt;} [Late to Confirm]), 0, 12)) * Avg(1)&lt;/STRONG&gt;.&amp;nbsp; This expression gave me 4,722,300.0%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my fields:&lt;/P&gt;&lt;P&gt;Created on&lt;/P&gt;&lt;P&gt;Late to Request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created on is each date an order is created which is why I have so many rows of data.&amp;nbsp; For any given date there could be dozens upon dozens of lines created.&lt;/P&gt;&lt;P&gt;Late to Request is binary.&amp;nbsp; 0 is on time, 1 is late.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23657#M1597</guid>
      <dc:creator>wschefter</dc:creator>
      <dc:date>2018-06-13T21:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average for previous 12 months as a percentage</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23658#M1598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg({&amp;lt;[=[Created on.autoCalendar.MonthsAgo]={'&amp;lt;=12'}&amp;gt;} 1-[Late to Confirm])&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23658#M1598</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-06-13T21:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average for previous 12 months as a percentage</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23659#M1599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be share a sample with expected output to help you better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 01:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23659#M1599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-14T01:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average for previous 12 months as a percentage</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23660#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys.&amp;nbsp; I don't know why I didn't think of &amp;lt;= but that was it.&amp;nbsp; Once my brain starts functioning correctly this all will come as second nature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-average-for-previous-12-months-as-a-percentage/m-p/23660#M1600</guid>
      <dc:creator>wschefter</dc:creator>
      <dc:date>2018-06-14T15:08:26Z</dc:date>
    </item>
  </channel>
</rss>

