<?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 Exclude negative Values from expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957353#M649819</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;I have the expression to calculate the Units. But i am having some negative Units (Value) which i dont want to include in the calculation.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=num((Sum({&amp;lt;Type = {'AB','CL'}, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Year] = {$(=max([Year]))}, [Month] = {"&amp;lt;=$(=max({&amp;lt;[Year]={$(=max([Year]))}&amp;gt;} [Month]))"}&amp;gt;}[Units])),'##,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help please?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=num((Sum({&amp;lt;Type = {'AB','CL'}, Units -={},&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Year] = {$(=max([Year]))}, [Month] = {"&amp;lt;=$(=max({&amp;lt;[Year]={$(=max([Year]))}&amp;gt;} [Month]))"}&amp;gt;}[Units])),'##,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Ahmed&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 17:29:47 GMT</pubDate>
    <dc:creator>AH</dc:creator>
    <dc:date>2015-08-19T17:29:47Z</dc:date>
    <item>
      <title>Exclude negative Values from expression</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957353#M649819</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;I have the expression to calculate the Units. But i am having some negative Units (Value) which i dont want to include in the calculation.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=num((Sum({&amp;lt;Type = {'AB','CL'}, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Year] = {$(=max([Year]))}, [Month] = {"&amp;lt;=$(=max({&amp;lt;[Year]={$(=max([Year]))}&amp;gt;} [Month]))"}&amp;gt;}[Units])),'##,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help please?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=num((Sum({&amp;lt;Type = {'AB','CL'}, Units -={},&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Year] = {$(=max([Year]))}, [Month] = {"&amp;lt;=$(=max({&amp;lt;[Year]={$(=max([Year]))}&amp;gt;} [Month]))"}&amp;gt;}[Units])),'##,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Ahmed&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 17:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957353#M649819</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2015-08-19T17:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude negative Values from expression</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957354#M649820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using it like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num((Sum({&amp;lt;Type = {'AB','CL'}, &lt;STRONG style="color: #ff0000;"&gt;Units ={"&amp;gt;0"}&lt;/STRONG&gt;,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;[Year] = {$(=max([Year]))}, [Month] = {"&amp;lt;=$(=max({&amp;lt;[Year]={$(=max([Year]))}&amp;gt;} [Month]))"}&amp;gt;}[Units])),'##,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 17:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957354#M649820</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-19T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude negative Values from expression</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957355#M649821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num((Sum({&amp;lt;Type = {'AB','CL'},&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;[Year] = {$(=max([Year]))}, [Month] = {"&amp;lt;=$(=max({&amp;lt;[Year]={$(=max([Year]))}&amp;gt;} [Month]))"}&amp;gt;} rangemax(0,[Units]) )),'##,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 17:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-negative-Values-from-expression/m-p/957355#M649821</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-19T17:38:58Z</dc:date>
    </item>
  </channel>
</rss>

