<?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 Help with Gross Profit % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287516#M1201762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following expression doesn't work?&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride&amp;gt; ItemCost)&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Nov 2010 18:53:35 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-11-11T18:53:35Z</dc:date>
    <item>
      <title>Help with Gross Profit %</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287515#M1201761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to work out Gross Profit.&lt;/P&gt;&lt;P&gt;I think the fields i need to use are salesvalue-cost/salesvalue... am i right?&lt;/P&gt;&lt;P&gt;i have to calculate an expression to get my total sales value and total cost value. My expressions are:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum(aggr(sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;EAN&amp;gt; SalesValue),[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride))&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;sum(aggr(sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;EAN&amp;gt; ItemCost),[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride))&lt;/P&gt;&lt;P&gt;Can anyone tell me what i would need to write to get the GP please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 16:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287515#M1201761</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-11T16:11:56Z</dc:date>
    </item>
    <item>
      <title>Help with Gross Profit %</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287516#M1201762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following expression doesn't work?&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride&amp;gt; ItemCost)&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 18:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287516#M1201762</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-11T18:53:35Z</dc:date>
    </item>
    <item>
      <title>Help with Gross Profit %</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287517#M1201763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply again, No that expression doesn't work....&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 10:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287517#M1201763</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-12T10:07:39Z</dc:date>
    </item>
    <item>
      <title>Help with Gross Profit %</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287518#M1201764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know the right expressions for sales and for cost, and you know how to calculate gross profit from sales and cost, where is the confusion? The only thing I'd point out is that (A-B)/A = 1-B/A. So gross profit margin is also 1-cost/sales, which will save you having to calculate the sales twice. So assuming you have the right expressions for sales and for cost:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;1-sum(aggr(sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;EAN&amp;gt; ItemCost ),[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride))&lt;BR /&gt; /sum(aggr(sum({$&amp;lt;LineType -= {V}&amp;gt;} total &amp;lt;EAN&amp;gt; SalesValue),[Cust Name],[Product Code],[Prod Desc],EAN,Size,PriceOverride))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 22:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Gross-Profit/m-p/287518#M1201764</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-12T22:18:07Z</dc:date>
    </item>
  </channel>
</rss>

