<?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: I want to calculate a product with frozen and final calculation based on the product introduction date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138584#M910576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have a fact table with fields like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;Product, Date, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can find the introduction date per Product and join back to your Fact table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Fact)&lt;/P&gt;&lt;P&gt;LOAD Product, DATE(MIN(Date)) AS IntroductionDate&lt;/P&gt;&lt;P&gt;RESIDENT Fact&lt;/P&gt;&lt;P&gt;GROUP BY Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do a RESIDENT LOAD of your Fact table and create the flags:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ResultFact:&lt;/P&gt;&lt;P&gt;LOAD Product, Date, Amount, IntroductionDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Date &amp;lt;= AddMonths(IntroductionDate,3), 'Final','Frozen') as PeriodFlag&lt;/P&gt;&lt;P&gt;RESIDENT Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your charts, you can filter amounts by PeriodFlag:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PeriodFlag = {Final} &amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 09:21:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-07T09:21:27Z</dc:date>
    <item>
      <title>I want to calculate a product with frozen and final calculation based on the product introduction date</title>
      <link>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138583#M910575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to calculate a product with frozen and final calculation based on the product introduction date. When the product introduced, the first 3 months will be considered as the final and the remaining months will be considered as frozen.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;How the overall calculation will be calculated. Please give some suggestion. For Eg:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If product p1,p2,p3:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;P1 introduced on Jan - then Final Calculation is Jan + Feb + March, Frozen calculation is April to Dec&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;P2 introduced on Mar - &lt;SPAN style="font-size: 13.3333px;"&gt;then Final Calculation is March+April+May, Frozen calculation is June to Dec&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;And also to calculate the overall.&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/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138583#M910575</guid>
      <dc:creator>neha12160</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: I want to calculate a product with frozen and final calculation based on the product introduction date</title>
      <link>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138584#M910576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have a fact table with fields like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;Product, Date, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can find the introduction date per Product and join back to your Fact table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Fact)&lt;/P&gt;&lt;P&gt;LOAD Product, DATE(MIN(Date)) AS IntroductionDate&lt;/P&gt;&lt;P&gt;RESIDENT Fact&lt;/P&gt;&lt;P&gt;GROUP BY Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do a RESIDENT LOAD of your Fact table and create the flags:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ResultFact:&lt;/P&gt;&lt;P&gt;LOAD Product, Date, Amount, IntroductionDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Date &amp;lt;= AddMonths(IntroductionDate,3), 'Final','Frozen') as PeriodFlag&lt;/P&gt;&lt;P&gt;RESIDENT Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your charts, you can filter amounts by PeriodFlag:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PeriodFlag = {Final} &amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 09:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138584#M910576</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-07T09:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: I want to calculate a product with frozen and final calculation based on the product introduction date</title>
      <link>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138585#M910577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the overall amount should contain both the frozen as well as final calculation for all the products. So How it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have calculate and add both final and frozen with the flag as the mentioned for sum for final&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 11:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138585#M910577</guid>
      <dc:creator>neha12160</dc:creator>
      <dc:date>2016-06-07T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want to calculate a product with frozen and final calculation based on the product introduction date</title>
      <link>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138586#M910578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using PeriodFlag as additional dimension with e.g. Product, then &lt;/P&gt;&lt;P&gt;=Sum(Amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should return both the correct sums for the periods as well as the total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 12:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-want-to-calculate-a-product-with-frozen-and-final-calculation/m-p/1138586#M910578</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-07T12:00:49Z</dc:date>
    </item>
  </channel>
</rss>

