<?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 Set analysis or ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-or/m-p/424476#M158143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help with something.Please find attached&lt;/P&gt;&lt;P&gt;Notice the current year and the months(2nd quarter) selected but the the total recoveries includes the 1st quarter ie Jan,Feb and Mar and also the previous years.&lt;/P&gt;&lt;P&gt;Now i would want to separate the recoveries into previous years and the 1st quater&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2012 12:13:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-12T12:13:39Z</dc:date>
    <item>
      <title>Set analysis or ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-or/m-p/424476#M158143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help with something.Please find attached&lt;/P&gt;&lt;P&gt;Notice the current year and the months(2nd quarter) selected but the the total recoveries includes the 1st quarter ie Jan,Feb and Mar and also the previous years.&lt;/P&gt;&lt;P&gt;Now i would want to separate the recoveries into previous years and the 1st quater&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 12:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-or/m-p/424476#M158143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T12:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis or ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-or/m-p/424477#M158144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a calendar with Quarters using,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; DayNumberOfQuarter in your load statement, then in the set you can use that field to get max Quarter or previous Quarter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// for Max Month recovery&lt;BR /&gt;Sum( {&amp;lt;Year=, Month =, MONTH_NAME = {"$(=MonthName(max(MONTH_NAME)))"} &amp;gt;} Recoveries)&lt;BR /&gt;&lt;BR /&gt;// for max Year recovery&lt;BR /&gt;Sum( {&amp;lt;YEAR=, Month =, YEAR = {"$(=(max(YEAR)))"} &amp;gt;} &amp;gt;} Recoveries)&lt;BR /&gt;&lt;BR /&gt;//for prev month recovery&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sum({&amp;lt;YEAR=,&lt;BR /&gt;Month =,&lt;BR /&gt;MONTH_NAME = {"$(=MonthName(AddMonths(max(MONTH_NAME), -12)))"}&lt;BR /&gt;&amp;gt;} Recovery)&lt;BR /&gt;&lt;BR /&gt;// for Last Year recovery&lt;BR /&gt;Sum( {&amp;lt;YEAR=,&lt;BR /&gt;Month =,&lt;BR /&gt;YEAR = {"$(=(max(YEAR)-1))"}&lt;BR /&gt;&amp;gt;} Recoveries) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 12:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-or/m-p/424477#M158144</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2012-11-12T12:38:18Z</dc:date>
    </item>
  </channel>
</rss>

