<?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: Last 3 month usage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576453#M214467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="color: blue;"&gt;Try this You Date Field&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;({&amp;lt;DateField&lt;/SPAN&gt;={'&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: maroon;"&gt;&amp;gt;=$(=num(monthstart(max(Datefield),-3)))&amp;lt;$(=num(Monthend(max(Datefield),-1)))'},YearField=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; Quantity)/3 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 10:03:32 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2014-01-28T10:03:32Z</dc:date>
    <item>
      <title>Last 3 month usage</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576451#M214465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I am trying to to calculate the last 3 months quantity. I have set this up as set analysis as I don't want dates selected from the list box affecting the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The expression as it stands is showing the last 2 months and the current month to date. I.e. today it is showing usage from 1&lt;SUP&gt;st&lt;/SUP&gt; November to 28&lt;SUP&gt;th&lt;/SUP&gt; January.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN lang="EN-IE" style="color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; &lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;YearMonth={&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: maroon;"&gt;"&amp;gt;=$(=Date(AddMonths(Max(YearMonth),-2),'YYYY-MMM'))"&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt;} &amp;gt;} Quantity/3)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;As I am trying to calculate average monthly usage (based on the last 3 months) I would need the expression to calculate for exactly 3 months. This could be the last 3 complete months (i.e. Oct, Nov &amp;amp; Dec) or 3 months from today’s date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I appreciate any help that you could provide.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 09:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576451#M214465</guid>
      <dc:creator />
      <dc:date>2014-01-28T09:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month usage</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576452#M214466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you have it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN lang="EN-IE" style="color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; &lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;YearMonth={&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: maroon;"&gt;"&amp;gt;=$(=Date(AddMonths(Max(YearMonth),-3),'YYYY-MMM'))&amp;nbsp; &amp;lt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN lang="EN-IE" style="color: maroon;"&gt;=$(=Date((Max(YearMonth),'YYYY-MMM'))"&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt;} &amp;gt;} Quantity)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;gives you 3 months from max(YearMonth) selected&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Chris&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 09:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576452#M214466</guid>
      <dc:creator />
      <dc:date>2014-01-28T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month usage</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576453#M214467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="color: blue;"&gt;Try this You Date Field&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;({&amp;lt;DateField&lt;/SPAN&gt;={'&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: maroon;"&gt;&amp;gt;=$(=num(monthstart(max(Datefield),-3)))&amp;lt;$(=num(Monthend(max(Datefield),-1)))'},YearField=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: black;"&gt; Quantity)/3 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 10:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576453#M214467</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-01-28T10:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month usage</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576454#M214468</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;If you have a date field in your data model then try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: blue;"&gt;=Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;({&amp;lt;DateDimensionName&lt;/SPAN&gt;={'&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: maroon;"&gt;&amp;gt;=$(=MonthStart(Max(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateDimensionName&lt;/SPAN&gt;),-3))&amp;lt;$(=MonthEnd(Max(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateDimensionName&lt;/SPAN&gt;),-1))'},YearDimensionName=, MonthDimensionName=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: black;"&gt; Quantity)/3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: black;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 10:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-usage/m-p/576454#M214468</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-28T10:09:57Z</dc:date>
    </item>
  </channel>
</rss>

