<?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: 3-months Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961298#M329914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a number of ways to approach this problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using QlikView "Accumulation" feature, you can have your Expression get accumulated automatically. This will only work in a chart with the Period being the only Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can use Conditional Aggregation. In this case, you can't use Set Analysis because Set Analysis s only calculated once per chart and cannot be sensitive to chart dimensions. Hence, you have to use the IF() function. This approach may work on a small dataset, but it's not scalable&amp;nbsp; - IF statements get very slow with large datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can build the "As of Date" table and split your "Display" periods and your "Transaction" periods. Using the "As of Date" table, you can associate your display periods with the transaction periods and calculate a number of conditional flags - for example "Last 3 months" flag. There are many sources that describe how to build and use the "As of Date" table, including &lt;A href="http://www.naturalsynergies.com/q-tip-4-how-to-use-as-of-date-table/"&gt;my blog&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also described it in a lot of detail in my new book&lt;EM&gt; QlikView Your Business&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 15:50:34 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2015-09-02T15:50:34Z</dc:date>
    <item>
      <title>3-months Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961297#M329913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a simple dataset.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Customer Period&amp;nbsp;&amp;nbsp; amount&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201507&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201507&amp;nbsp;&amp;nbsp; 8&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201506&amp;nbsp;&amp;nbsp; 17&lt;BR /&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201506&amp;nbsp;&amp;nbsp; 19&lt;BR /&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201505&amp;nbsp;&amp;nbsp; 8&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201505&amp;nbsp;&amp;nbsp; 16&lt;BR /&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201504&amp;nbsp;&amp;nbsp; 9&lt;BR /&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201503&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;I want to make a table with period as dimension.&lt;BR /&gt;For each period I want to calculate the average amount over the last 3 months&lt;/P&gt;&lt;P&gt;Period 201507 : average for 201507,201506 &amp;amp; 201505&lt;BR /&gt;Period 201506 : average for 201506,201505 &amp;amp; 201504&lt;BR /&gt;Period 201505 : average for 201505,201504 &amp;amp; 201503&lt;BR /&gt;Period 201504 : average for 201504,201503 &amp;amp; 201502&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions for the expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961297#M329913</guid>
      <dc:creator />
      <dc:date>2015-09-02T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: 3-months Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961298#M329914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a number of ways to approach this problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using QlikView "Accumulation" feature, you can have your Expression get accumulated automatically. This will only work in a chart with the Period being the only Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can use Conditional Aggregation. In this case, you can't use Set Analysis because Set Analysis s only calculated once per chart and cannot be sensitive to chart dimensions. Hence, you have to use the IF() function. This approach may work on a small dataset, but it's not scalable&amp;nbsp; - IF statements get very slow with large datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can build the "As of Date" table and split your "Display" periods and your "Transaction" periods. Using the "As of Date" table, you can associate your display periods with the transaction periods and calculate a number of conditional flags - for example "Last 3 months" flag. There are many sources that describe how to build and use the "As of Date" table, including &lt;A href="http://www.naturalsynergies.com/q-tip-4-how-to-use-as-of-date-table/"&gt;my blog&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also described it in a lot of detail in my new book&lt;EM&gt; QlikView Your Business&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961298#M329914</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-09-02T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: 3-months Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961299#M329915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="97753" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97753_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;=RangeAvg(Below(Sum(amount), 0, 3))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961299#M329915</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-02T15:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: 3-months Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961300#M329916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and you can also read this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/docs/DOC-4252" title="https://community.qlikview.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages o... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961300#M329916</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-02T15:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: 3-months Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961301#M329917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-months-Average/m-p/961301#M329917</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-09-02T16:03:20Z</dc:date>
    </item>
  </channel>
</rss>

