<?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 Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348122#M414702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have QV document where data in the following table should be broken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original Table is as follows&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167873_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Table I want to extract should be as follows&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/167874_Screenshot_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the CC_CODE = 1 premium coming same BCOD should be split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG BW00 Premium 107472934 and Haldumulla Premium should be deducted and shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2017 05:21:21 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2017-06-23T05:21:21Z</dc:date>
    <item>
      <title>Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348122#M414702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have QV document where data in the following table should be broken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original Table is as follows&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167873_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Table I want to extract should be as follows&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/167874_Screenshot_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the CC_CODE = 1 premium coming same BCOD should be split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG BW00 Premium 107472934 and Haldumulla Premium should be deducted and shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 05:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348122#M414702</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-06-23T05:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348123#M414703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will you able to provide First image data in Excel rather than Image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 05:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348123#M414703</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-23T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348124#M414704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes of Course&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 05:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348124#M414704</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-06-23T05:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348125#M414705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi UPALI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this formula for calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Aggr(IF(MaxString({&amp;lt;[BCOD]=P([BCOD])&amp;gt;}[BCOD])=[BCOD],[BCOD]),[BCOD])=BCOD,&lt;/P&gt;&lt;P&gt;(num(if (Aggr(IF(MaxString({&amp;lt;[BCOD]=P([BCOD])&amp;gt;}[BCOD])=[BCOD],[BCOD]),[BCOD])=BCOD, PREMIUM),'##,##0')&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;if (Aggr(sum({$&amp;lt;CC_CODE={'CC*'}&amp;gt;}PREMIUM),BCOD)&amp;gt;0,Aggr(sum({$&amp;lt;CC_CODE={'CC*'}&amp;gt;}PREMIUM),BCOD),0)&lt;/P&gt;&lt;P&gt;),PREMIUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ss.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167891_ss.JPG" style="height: 160px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348125#M414705</guid>
      <dc:creator>ankur_abhishek</dc:creator>
      <dc:date>2017-06-23T07:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348126#M414706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;Pls help me to help a solution for the above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348126#M414706</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-06-23T07:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348127#M414707</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;May be like this (look attached file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Directory;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Distinct ACCOUNTANT, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCOD, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC_CODE, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRANCH, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREMIUM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[TEST (1).xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(BCOD=Previous(BCOD) And CC_CODE&amp;lt;&amp;gt;1, RangeSum(PREMIUM, peek('PREMIUM_SUM')), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(BCOD=Previous(BCOD) And CC_CODE=1, PREMIUM*2 - RangeSum(PREMIUM, peek('PREMIUM_SUM')),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PREMIUM)) as PREMIUM_SUM,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(BCOD=Previous(BCOD) And CC_CODE=1, PREMIUM*2 - RangeSum(PREMIUM, peek('PREMIUM_SUM')),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PREMIUM) as NEW_PREMIUM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By BCOD asc, CC_CODE desc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Field PREMIUM_SUM;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167880_1.jpg" style="height: 195px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 08:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348127#M414707</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-06-23T08:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348128#M414708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you pls send me the sample QV doc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 11:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348128#M414708</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-06-23T11:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348129#M414709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1348129#M414709</guid>
      <dc:creator>ankur_abhishek</dc:creator>
      <dc:date>2017-06-23T12:02:22Z</dc:date>
    </item>
  </channel>
</rss>

