<?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: Should I use an 'if/and' expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478016#M1139958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you want include or exclude AcdWsvD = 0?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"},ActWsvD={"0"}&amp;gt;}OrderSentqtyD)&amp;nbsp; //include&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"},ActWsvD-={"0"}&amp;gt;}OrderSentqtyD) //exclude&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 13:24:23 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2013-09-25T13:24:23Z</dc:date>
    <item>
      <title>Should I use an 'if/and' expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478015#M1139957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to write an expression that has two conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have dimensions 'OrderSentqtyD' and 'ActWsvD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum the OrderSendqtyD, but excluding records where the OrderSendqtyD is -1 or less AND the ActWsvD equals zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I have been using the following expression successfully to exclude records with OrderSentqtyD -1 or less, but am unsure how to add the new condition of a zero ActWsvD:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"}&amp;gt;}OrderSentqtyD) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following, but the results all come out with 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"},ActWsvD={"0"}&amp;gt;}OrderSentqtyD) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need an 'if/and' expression?&amp;nbsp; If so, how should it be set out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all in advance, your help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leah &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478015#M1139957</guid>
      <dc:creator>ljackson</dc:creator>
      <dc:date>2013-09-25T13:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use an 'if/and' expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478016#M1139958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you want include or exclude AcdWsvD = 0?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"},ActWsvD={"0"}&amp;gt;}OrderSentqtyD)&amp;nbsp; //include&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"},ActWsvD-={"0"}&amp;gt;}OrderSentqtyD) //exclude&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478016#M1139958</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-25T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use an 'if/and' expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478017#M1139959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify, If the record has both a negative OrderSentqtyD AND a zero ActWsvD, I need the record excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if it has negative OrderSentqtyD and ActWsvD above zero it has to be included, and vice versa if the OrderSentqty is positive and ActWsvD is zero it needs to be included.&amp;nbsp;&amp;nbsp; I only want the exclusion when both conditions apply to a record).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478017#M1139959</guid>
      <dc:creator>ljackson</dc:creator>
      <dc:date>2013-09-25T13:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use an 'if/and' expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478018#M1139960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;Sum({$&amp;lt;OrderSentqtyD*={"&amp;gt;-1"},ActWsvD-={"0"}&amp;gt;}OrderSentqtyD) should return what you want&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478018#M1139960</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-25T13:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use an 'if/and' expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478019#M1139961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 14:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478019#M1139961</guid>
      <dc:creator>ljackson</dc:creator>
      <dc:date>2013-09-25T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use an 'if/and' expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478020#M1139962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you´re welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 14:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-an-if-and-expression/m-p/478020#M1139962</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-25T14:13:47Z</dc:date>
    </item>
  </channel>
</rss>

