<?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: Build a count function with two conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595511#M478339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex, &lt;/P&gt;&lt;P&gt;That's right&amp;nbsp; A, B&amp;nbsp; and [Is ... ] are fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your last answer was great ! &lt;/P&gt;&lt;P&gt;Cheers M8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 15:06:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-19T15:06:01Z</dc:date>
    <item>
      <title>Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595504#M478332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody can build an expression - function count names with two conditions : &lt;/P&gt;&lt;P&gt;first&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A - B &amp;gt; 0&lt;/P&gt;&lt;P&gt;second&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Is it subject'= Yes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595504#M478332</guid>
      <dc:creator />
      <dc:date>2014-03-19T13:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595505#M478333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression you are looking for is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If( Condition1 and Condition2, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is equivalemt to a count infact it sums 1 if both condition are satisfied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595505#M478333</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-19T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595506#M478334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alessandro, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed It will be &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum( If ( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A - B &amp;gt; 0&lt;/SPAN&gt; and [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is it subject]= {Yes&lt;/SPAN&gt;}, 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;but I am a new community member and I don't know where to put a 'name' which will be summed &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595506#M478334</guid>
      <dc:creator />
      <dc:date>2014-03-19T13:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595507#M478335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Sum( If ( (&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A - B) &amp;gt; 0&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt; and [&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is it subject]= {'Yes'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;}, 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595507#M478335</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-19T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595508#M478336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If [Is it subject] is a field name and Yes is the value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try to set the second condition as [Is it subject] = 'Yes'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the final syntax would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If A-B &amp;gt;0 And [Is it subject] = 'Yes',1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595508#M478336</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2014-03-19T13:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595509#M478337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answers , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build a functions but is error in expression and it no use . &lt;/P&gt;&lt;P&gt;Sum( If ( (&lt;A&gt;-&lt;B&gt;) &amp;gt; 0 and [Is it subject]= {'YES'}, 1, 0)) &lt;/B&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be an issue that A = one value + second&amp;nbsp; and the same B (C+D)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have any idea ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595509#M478337</guid>
      <dc:creator />
      <dc:date>2014-03-19T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595510#M478338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I didn't understand you well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A, B and [Is it subject] are fields, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I think this expression should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(A-B&amp;gt;0 AND [Is it subject] = 'YES', 1, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see it it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595510#M478338</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2014-03-19T15:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Build a count function with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595511#M478339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex, &lt;/P&gt;&lt;P&gt;That's right&amp;nbsp; A, B&amp;nbsp; and [Is ... ] are fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your last answer was great ! &lt;/P&gt;&lt;P&gt;Cheers M8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Build-a-count-function-with-two-conditions/m-p/595511#M478339</guid>
      <dc:creator />
      <dc:date>2014-03-19T15:06:01Z</dc:date>
    </item>
  </channel>
</rss>

