<?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 3 Month Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3-Month-Calculation/m-p/604049#M223209</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 have a straight table with 3 items:&lt;/P&gt;&lt;P&gt;1. LOT 1 - Lots per Month - Year&lt;/P&gt;&lt;P&gt;2. Defect - Defects per Month - Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. 3 Month Lot - I want the calculation for 3 Month Lot =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ SUM(LOTS for 3 month) - COUNT (Defects for 3 month) ] &lt;STRONG style=": ; font-size: 14pt;"&gt; / &lt;/STRONG&gt; SUM(LOTS for 3 month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: If you look at the attached file the calculation for the 3 MONTH LOT under Mar 2012 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(18 + 24 + 14) - (2+1+0) / (18 + 24 + 14) = 0.94&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 21:54:36 GMT</pubDate>
    <dc:creator>hkg_qlik</dc:creator>
    <dc:date>2014-03-20T21:54:36Z</dc:date>
    <item>
      <title>3 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Calculation/m-p/604049#M223209</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 have a straight table with 3 items:&lt;/P&gt;&lt;P&gt;1. LOT 1 - Lots per Month - Year&lt;/P&gt;&lt;P&gt;2. Defect - Defects per Month - Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. 3 Month Lot - I want the calculation for 3 Month Lot =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ SUM(LOTS for 3 month) - COUNT (Defects for 3 month) ] &lt;STRONG style=": ; font-size: 14pt;"&gt; / &lt;/STRONG&gt; SUM(LOTS for 3 month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: If you look at the attached file the calculation for the 3 MONTH LOT under Mar 2012 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(18 + 24 + 14) - (2+1+0) / (18 + 24 + 14) = 0.94&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 21:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Calculation/m-p/604049#M223209</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2014-03-20T21:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Month Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/3-Month-Calculation/m-p/604050#M223210</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;Can you attach some sample data?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Try this expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum({&amp;lt;DateDimensionName={'&amp;gt;=$(=MonthStart(Max(DateDimensionName), -2))&amp;lt;=$(=MonthEnd(Max(DateDimensionName)))'}&amp;gt;} LOTS) + Count({&amp;lt;DateDimensionName={'&amp;gt;=$(=MonthStart(Max(DateDimensionName), -2))&amp;lt;=$(=MonthEnd(Max(DateDimensionName)))'}&amp;gt;} DEFECTS) ) / Sum({&amp;lt;DateDimensionName={'&amp;gt;=$(=MonthStart(Max(DateDimensionName), -2))&amp;lt;=$(=MonthEnd(Max(DateDimensionName)))'}&amp;gt;} LOTS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 01:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Month-Calculation/m-p/604050#M223210</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-21T01:51:53Z</dc:date>
    </item>
  </channel>
</rss>

