<?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: Creating Average for Last 24 Months Based on Date Selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921691#M650535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DateField={"&amp;gt;=$(=AddMonths(Max(DateField), -24))&amp;lt;=$(=Max(DateField))"}&amp;gt;}&lt;/SPAN&gt; Sales)/24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 17:54:38 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2015-08-12T17:54:38Z</dc:date>
    <item>
      <title>Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921688#M650532</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;&lt;/P&gt;&lt;P&gt;I need to calculate average of past 24 months based on Date Selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well the scenario is if the selected date is 12/Aug/2015 then i need to get all the values between 12/Aug/2015 and 12/Aug/2012 and Averaged those 24 Months Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/120618"&gt;MRKachhiaIMP&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/47027"&gt;dvqlikview&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/70029"&gt;celambarasan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/17633"&gt;mby&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/space/1"&gt;Qlik Community&lt;/A&gt;‌&lt;A href="https://community.qlik.com/space/2061"&gt;Scripting&lt;/A&gt;‌&lt;A href="https://community.qlik.com/space/2051"&gt;App Development&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921688#M650532</guid>
      <dc:creator />
      <dc:date>2015-08-12T17:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921689#M650533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;Date={"&amp;gt;= $(=AddMonths(Max(Date),-24) ) &amp;lt;=$(=Max(Date))"}&amp;gt;} value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921689#M650533</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-12T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921690#M650534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDITED:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you looking for 36 Months data or 24 Months?&lt;/P&gt;&lt;P&gt;Use something as below for 24 Months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Date = {"&amp;gt;=$(=Date(AddMonths(Max(Date),&lt;STRONG&gt;-24&lt;/STRONG&gt;)))&amp;lt;=$(=Date(Max(Date)))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921690#M650534</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-12T17:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921691#M650535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DateField={"&amp;gt;=$(=AddMonths(Max(DateField), -24))&amp;lt;=$(=Max(DateField))"}&amp;gt;}&lt;/SPAN&gt; Sales)/24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921691#M650535</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2015-08-12T17:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921692#M650536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;avg{&amp;lt;YourDate = {"&amp;gt;=$(=Date(AddMonths(Max(YourDate),-24))) &amp;lt;=$(=Date(Max(YourDate)))"}&amp;gt;}YourValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 19:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921692#M650536</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-12T19:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921693#M650537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If it is 12/Aug/2015 and 12/Aug/2012&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&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;Sum({&amp;lt;YearFieldName=, QuarterFieldName=, MonthFieldName=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateFieldName={"&amp;gt;=$(=AddMonths(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DateFieldName&lt;/SPAN&gt;), -36))&amp;lt;=$(=Date(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DateFieldName&lt;/SPAN&gt;)))"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Sales)/36&lt;/SPAN&gt;&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;BR /&gt;&lt;/SPAN&gt;&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;If it last 24 months then use&lt;/SPAN&gt;&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 style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YearFieldName=, QuarterFieldName=, MonthFieldName=, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DateFieldName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={"&amp;gt;=$(=AddMonths(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DateFieldName&lt;/SPAN&gt;), -24))&amp;lt;=$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DateFieldName&lt;/SPAN&gt;))"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Sales)/24&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hopw this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 02:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921693#M650537</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-13T02:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Average for Last 24 Months Based on Date Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921694#M650538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a sample hop this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 03:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Average-for-Last-24-Months-Based-on-Date-Selected/m-p/921694#M650538</guid>
      <dc:creator>svenkita</dc:creator>
      <dc:date>2015-08-13T03:47:30Z</dc:date>
    </item>
  </channel>
</rss>

