<?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 expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277675#M1178364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i am trying to get an expression to show me TotalValue of some Stock Movement Reason Codes but excludding some descriptions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fields are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StockValue&lt;/P&gt;&lt;P&gt;Stock movement Reason Code&lt;/P&gt;&lt;P&gt;Narrative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the sum of StockValue for Stock Movement Reason Codes '3,5,16,18' but exclude values with a Narrative of either 'WASTAGE' or 'DAMAGED'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following working for the first part..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&amp;nbsp; ( {&amp;lt;[Stock Movement Reason Code] ={3, 5,16,18}&amp;gt;} StockValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am unsure on how to add the 2nd part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 14:23:27 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2012-02-13T14:23:27Z</dc:date>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277675#M1178364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i am trying to get an expression to show me TotalValue of some Stock Movement Reason Codes but excludding some descriptions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fields are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StockValue&lt;/P&gt;&lt;P&gt;Stock movement Reason Code&lt;/P&gt;&lt;P&gt;Narrative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the sum of StockValue for Stock Movement Reason Codes '3,5,16,18' but exclude values with a Narrative of either 'WASTAGE' or 'DAMAGED'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following working for the first part..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&amp;nbsp; ( {&amp;lt;[Stock Movement Reason Code] ={3, 5,16,18}&amp;gt;} StockValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am unsure on how to add the 2nd part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277675#M1178364</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2012-02-13T14:23:27Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277676#M1178365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum&amp;nbsp; ( {&amp;lt;[Stock Movement Reason Code] ={'WASTAGE','DAMAGED'}&amp;gt;} StockValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277676#M1178365</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-13T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277677#M1178366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks but that doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it to INCLUDE Stock Movement Reason Code 3, 5,16,18 and EXCLUDE Narratives WASTAGE and DAMAGED.&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, 13 Feb 2012 14:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277677#M1178366</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2012-02-13T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277678#M1178367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry wrongly understood your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is the solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum&amp;nbsp; ( {&amp;lt;[Stock Movement Reason Code] ={3, 5,16,18},Narrative-={'WASTAGE','DAMAGED'}&amp;gt;} StockValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277678#M1178367</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-13T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277679#M1178368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this (assuming Narrative is also a field): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {$ &amp;lt;[Stock Movement Reason Code] = {3,5,16,18} , [Narrative] -= {'WASTAGE','DAMAGED'}&amp;gt;}StockValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277679#M1178368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-13T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277680#M1178369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great, thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/277680#M1178369</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2012-02-13T14:36:49Z</dc:date>
    </item>
  </channel>
</rss>

