<?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 Condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condition/m-p/1252857#M396315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached files has item types with Demand and ONHAND, I am trying to get active, slow moving and obsolete item types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need &lt;/P&gt;&lt;P&gt;sum(if(DMND&amp;gt;0,(DMND&amp;gt;ON_HAND),ON_HAND)) //////////active&lt;/P&gt;&lt;P&gt;sum(if(DMND&amp;lt;&amp;gt;0,(ON_HAND&amp;gt;-DMND),HAND)) ////////////////////slow&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(if(DMND=0,ON_HAND&amp;gt;DMND,ON_HAND)) //////////////////////obs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but where ever ONHAND is '0'&lt;SPAN style="font-size: 10pt;"&gt;its giving me -1 which is wrong is there any other way to do it ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 14:57:09 GMT</pubDate>
    <dc:creator>dseelam</dc:creator>
    <dc:date>2017-03-21T14:57:09Z</dc:date>
    <item>
      <title>Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Condition/m-p/1252857#M396315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached files has item types with Demand and ONHAND, I am trying to get active, slow moving and obsolete item types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need &lt;/P&gt;&lt;P&gt;sum(if(DMND&amp;gt;0,(DMND&amp;gt;ON_HAND),ON_HAND)) //////////active&lt;/P&gt;&lt;P&gt;sum(if(DMND&amp;lt;&amp;gt;0,(ON_HAND&amp;gt;-DMND),HAND)) ////////////////////slow&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(if(DMND=0,ON_HAND&amp;gt;DMND,ON_HAND)) //////////////////////obs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but where ever ONHAND is '0'&lt;SPAN style="font-size: 10pt;"&gt;its giving me -1 which is wrong is there any other way to do it ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition/m-p/1252857#M396315</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2017-03-21T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Condition/m-p/1252858#M396316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DMND &amp;gt; ON_HAND, Sum(ON_HAND))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition/m-p/1252858#M396316</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-21T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Condition/m-p/1252859#M396317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to include other condition &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DMND should be always &amp;gt;0&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition/m-p/1252859#M396317</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2017-03-21T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Condition/m-p/1252860#M396318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This condition should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DMND &amp;gt; ON_HAND and DMND &amp;gt;0 and DMND &amp;lt;&amp;gt;0 , If(ON_HAND&amp;gt;DMND,Sum(ON_HAND)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your data, you may don;t have ON_HAND values &amp;gt; DMND Values. For this you can check. Whether you have value or it showing all "There are no Exceed"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DMND &amp;gt; ON_HAND and DMND &amp;gt;0 and DMND &amp;lt;&amp;gt;0 , If(ON_HAND&amp;gt;DMND,Sum(ON_HAND),'There are no Exceed'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 16:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition/m-p/1252860#M396318</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-21T16:09:48Z</dc:date>
    </item>
  </channel>
</rss>

