<?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 Previous and Current month comparisons in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-and-Current-month-comparisons/m-p/936366#M956911</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;I want to perform the following on Qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the data set I have a field 'class' that holds two outcomes 'legal' and 'not legal'&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;sum&lt;/STRONG&gt; the total amount when:&lt;/P&gt;&lt;P&gt;- in the previous month, the accountNumber's class was 'not legal'&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;and&lt;/STRONG&gt; current month, the accountNumber's class is 'legal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meaning i want to sum total amount for only the accountNumbers that have transitioned from not legal (in the previous month) to legal (current month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 13:22:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-04T13:22:29Z</dc:date>
    <item>
      <title>Previous and Current month comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-and-Current-month-comparisons/m-p/936366#M956911</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;I want to perform the following on Qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the data set I have a field 'class' that holds two outcomes 'legal' and 'not legal'&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;sum&lt;/STRONG&gt; the total amount when:&lt;/P&gt;&lt;P&gt;- in the previous month, the accountNumber's class was 'not legal'&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;and&lt;/STRONG&gt; current month, the accountNumber's class is 'legal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meaning i want to sum total amount for only the accountNumbers that have transitioned from not legal (in the previous month) to legal (current month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 13:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-and-Current-month-comparisons/m-p/936366#M956911</guid>
      <dc:creator />
      <dc:date>2015-11-04T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Previous and Current month comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-and-Current-month-comparisons/m-p/936367#M956912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please don't clutter this site with duplicate discussions: &lt;A href="https://community.qlik.com/thread/190315"&gt;Previous and Current Month data comparison&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression if your month field contains numeric month values:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month={"$(=max(Month))"},&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;class={'legal'},&lt;/SPAN&gt;accountNumber=P({&amp;lt;Month={"$(=max(Month)-1)"},class={'not legal'}&amp;gt;}accountNumber) &amp;gt;}amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-and-Current-month-comparisons/m-p/936367#M956912</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-04T16:46:23Z</dc:date>
    </item>
  </channel>
</rss>

