<?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: Aggregate function year to month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1660#M792785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your response, but I'm looking for months&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;1-12 months&amp;nbsp; - AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;13-36 months - BBB&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;37-60 months - CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 15:10:32 GMT</pubDate>
    <dc:creator>karan_kn</dc:creator>
    <dc:date>2018-01-16T15:10:32Z</dc:date>
    <item>
      <title>Aggregate function year to month</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1658#M792783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you help me to update the Aggrgate function with Year to Month in Load statement:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-12 months&amp;nbsp; - AAA &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;13-36 months - BBB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;37-60 months - CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(aggr(max(year(Sales_Date)),CustID)-aggr(max(year(Sales_Date),2),CustID)=1,'AAA',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((aggr(max(year(Sales_Date)),CustID)-aggr(max(year(Sales_Date),2),CustID))&amp;gt;=2&amp;nbsp; and ((aggr(max(year(Sales_Date)),CustID)-aggr(max(year(Sales_Date),2),CustID))&amp;lt;=3),'BBB',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((aggr(max(year(Sales_Date)),CustID)-aggr(max(year(Sales_Date),2),CustID))&amp;gt;=4&amp;nbsp; and ((aggr(max(year(Sales_Date)),CustID)-aggr(max(year(Sales_Date),2),CustID))&amp;lt;=5),'CCC')))&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1658#M792783</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function year to month</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1659#M792784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD CustID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales_Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Sales_Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Fact)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Cust_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(MaxYear - MaxYear2 = 1, 'AAA',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(MaxYear - MaxYear2 &amp;lt;= 3, 'BBB',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(MaxYear - MaxYear2 &amp;lt;= 5, 'CCC'))) as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Cust_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Year) as MaxYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Year, 2) as MaxYear2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Fact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Cust_ID;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1659#M792784</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-16T14:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function year to month</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1660#M792785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your response, but I'm looking for months&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;1-12 months&amp;nbsp; - AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;13-36 months - BBB&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;37-60 months - CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 15:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1660#M792785</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2018-01-16T15:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function year to month</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1661#M792786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you mean... do you have a sample or sample data you can share? and explain what you need as an output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 15:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function-year-to-month/m-p/1661#M792786</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-16T15:12:46Z</dc:date>
    </item>
  </channel>
</rss>

