<?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 writing expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272725#M1186697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an expression to give me WASTE as a % of SALES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StockValue / SalesValue&lt;/P&gt;&lt;P&gt;but i need it to exclude any selections made from the field [Stock Reason], so this is what i have so far which seems to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(StockValue)/Sum({$&amp;lt;[Stock Reason] = &amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i also need to exclude any sales from DEPT = U .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where i am having problems, can anyone help me to write the expression to do all of the above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StockValue needs to be divided by SalesValue excluding Dept U and ignoring selections from StockReason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help woulf be appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 12:55:18 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2011-09-19T12:55:18Z</dc:date>
    <item>
      <title>Help writing expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272725#M1186697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an expression to give me WASTE as a % of SALES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StockValue / SalesValue&lt;/P&gt;&lt;P&gt;but i need it to exclude any selections made from the field [Stock Reason], so this is what i have so far which seems to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(StockValue)/Sum({$&amp;lt;[Stock Reason] = &amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i also need to exclude any sales from DEPT = U .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where i am having problems, can anyone help me to write the expression to do all of the above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StockValue needs to be divided by SalesValue excluding Dept U and ignoring selections from StockReason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help woulf be appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272725#M1186697</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-19T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Help writing expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272726#M1186698</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;try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(StockValue)/Sum({$&amp;lt;[Stock Reason]=, DEPT-={'U'}&amp;gt;}SalesValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gills&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272726#M1186698</guid>
      <dc:creator />
      <dc:date>2011-09-19T13:11:43Z</dc:date>
    </item>
    <item>
      <title>Help writing expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272727#M1186699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks very much Gills..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-writing-expression/m-p/272727#M1186699</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-09-19T13:29:22Z</dc:date>
    </item>
  </channel>
</rss>

