<?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: Logic Help? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679866#M246594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rob,&lt;/P&gt;&lt;P&gt;Both calculation have to be done in same column..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 08:04:58 GMT</pubDate>
    <dc:creator>rohitians</dc:creator>
    <dc:date>2014-07-01T08:04:58Z</dc:date>
    <item>
      <title>Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679863#M246591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a scenario where i need to calculate contribution of product to division and&amp;nbsp;&amp;nbsp;&amp;nbsp; division to company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 606px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" width="125"&gt;Division&lt;/TD&gt;&lt;TD class="xl63" height="21" width="125"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="208"&gt;Product Group&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="63"&gt;2014-15&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="87"&gt;Contr %&lt;BR /&gt; &lt;BR /&gt; &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="87"&gt;Required Contr %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;11,749&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;100.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl63" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4,260&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;36.26&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;36.26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;CYCLOPAM TAB&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;760&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6.47&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;17.84&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;CYCLOPAM SUS&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none;"&gt;351&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;2.99&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;8.23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;CLOBEN G - 15 GMS&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;269&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;2.29&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6.31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;MCBM 69 10S&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none;"&gt;240&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;2.04&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;5.63&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;VEPAN 500 TAB 10S&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;174&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1.48&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;4.08&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679863#M246591</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2014-06-30T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679864#M246592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI rohit&lt;/P&gt;&lt;P&gt;can you post an your sample file so that it will be easy to understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 13:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679864#M246592</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-06-30T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679865#M246593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Contribution of Product to Division:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Sales) / sum(TOTAL &amp;lt;Division&amp;gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contribution to Company:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Sales) / sum(TOTAL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 13:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679865#M246593</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-30T13:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679866#M246594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rob,&lt;/P&gt;&lt;P&gt;Both calculation have to be done in same column..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679866#M246594</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2014-07-01T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679867#M246595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You may enable "Show Partial Sums" option available in presentation tab for Division and Product to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sum.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61496_sum.PNG.png" style="width: 620px; height: 550px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679867#M246595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-01T08:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679868#M246596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't quite understand your comment about both calcs being in the same column. You mentioned two calcs in your post, which one do you want in the column? If you want as displayed in your post (pct of all), then just check the "relative: property for the expression or use the Sum(Sales) / Sum(TOTAL Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 12:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679868#M246596</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-01T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Help?</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679869#M246597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(((SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},MonthName=,Quarter=&lt;/P&gt;&lt;P&gt;,[Posting Date]={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear),0,4)}&amp;gt;}[Posting Date])))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}[Gross Sales Amount])&lt;/P&gt;&lt;P&gt;-SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},MonthName=,Quarter=&lt;/P&gt;&lt;P&gt;,[Posting Date]={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear),0,4)}&amp;gt;}[Posting Date])))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}[Sales Return Amount])&lt;/P&gt;&lt;P&gt;)/10000000)/vPNSValue)*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were&amp;nbsp;&amp;nbsp; vPNSValue contains total PNS value for current year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report has two dimension division and products..... on division level it shows proper contribution but on product level also it shows contribution to the whole i want the&amp;nbsp; products to show contribution to the divison rather then&amp;nbsp; vPNSValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 734px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="22" width="125"&gt;Division&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="208"&gt;Product Group&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="63"&gt;2014-15&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="135"&gt;Contr%-Tot PNS&lt;BR /&gt; &lt;BR /&gt; &lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="203"&gt;Required Contr%-Tot PNS&lt;BR /&gt; &lt;BR /&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="22"&gt; &lt;/TD&gt;&lt;TD class="xl64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;12,667&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;"&gt;100.00%&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-left: none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="22" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;4,586&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;36.21%&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top: none; border-left: none;"&gt;36.21%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;"&gt;CYCLOPAM TAB&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-left: none;"&gt;830&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: none;"&gt;6.55%&lt;/TD&gt;&lt;TD align="right" class="xl76"&gt;18.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;CYCLOPAM SUS&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none;"&gt;390&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;3.08%&lt;/TD&gt;&lt;TD align="right" class="xl76"&gt;47.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;CLOBEN G - 15 GMS&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;310&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;2.45%&lt;/TD&gt;&lt;TD align="right" class="xl76"&gt;79.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;MCBM 69 10S&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none;"&gt;259&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;2.05%&lt;/TD&gt;&lt;TD align="right" class="xl76"&gt;83.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="22" style="border-top: none;"&gt;INDOCO&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;VEPAN 500 TAB 10S&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;184&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1.45%&lt;/TD&gt;&lt;TD align="right" class="xl76"&gt;70.9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-Help/m-p/679869#M246597</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2014-07-03T06:11:46Z</dc:date>
    </item>
  </channel>
</rss>

