<?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: Help with Margin % expression, problem with division by zero? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406544#M1165634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mellerbeck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, change your "Bid Cost" Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(CurrentCostPerLB * NewVolume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know, if this change was helpful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 21:13:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-13T21:13:29Z</dc:date>
    <item>
      <title>Help with Margin % expression, problem with division by zero?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406543#M1165633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two rows of data, Customer, Product, Cost &amp;amp; inputfields of New Price and New Volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Bid Sales is calculated by New Price * New Volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Bid Cost is Cost/LB * New Volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Margin $ Is Bid Sales - Bid Cost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Margin % is Margin $ / Bid Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to work but when I put in values for the first product for the first New Price and New Volume the total for the Margin % shows 10% when I would expect it to be 50%, matching the single row of data's margin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21827" class="jive-image-thumbnail jive-image" height="77" onclick="" alt="margin.PNG" src="https://community.qlik.com/legacyfs/online/21827_margin.PNG" style="height: 77px; width: 805.8139534883721px;" width="806" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 20:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406543#M1165633</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2012-09-13T20:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Margin % expression, problem with division by zero?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406544#M1165634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mellerbeck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, change your "Bid Cost" Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(CurrentCostPerLB * NewVolume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know, if this change was helpful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406544#M1165634</guid>
      <dc:creator />
      <dc:date>2012-09-13T21:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Margin % expression, problem with division by zero?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406545#M1165635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried similar things to that, but that isn't quite it. I have to use sum(CurrentCostPerLB * Column(3)) but that still doesn't do the trick?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406545#M1165635</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2012-09-13T21:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Margin % expression, problem with division by zero?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406546#M1165636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my release. It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406546#M1165636</guid>
      <dc:creator />
      <dc:date>2012-09-13T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Margin % expression, problem with division by zero?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406547#M1165637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh! I see now, thank you! I was trying to use the [New Volume] calculated for the column, instead of going straight to the data that is in the NewVolume...&amp;nbsp; at least that is how I see it! Anyways, yes it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Margin-expression-problem-with-division-by-zero/m-p/406547#M1165637</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2012-09-13T21:32:38Z</dc:date>
    </item>
  </channel>
</rss>

