<?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: Error with count if for 2 conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623106#M733397</link>
    <description>&lt;P&gt;assuming that you want to check&amp;nbsp;&lt;SPAN&gt;PORT_ICCID and&amp;nbsp;CONNECTION_ICCID for each row, and add a indicator 1 or 0 to indicate that in port and then have subtotal showing all such port&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(if(&lt;SPAN&gt;PORT_ICCID=1 and&amp;nbsp;CONNECTION_ICCID=1, 1))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;if not I want to understand how are the relationship between field for ex:one to many&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 10:34:29 GMT</pubDate>
    <dc:creator>asinha1991</dc:creator>
    <dc:date>2019-09-12T10:34:29Z</dc:date>
    <item>
      <title>Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623088#M733392</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;New to Qlik and mostly self taught, so all of the fancy things still escape me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having difficulty with a Count if multiple conditions met expression.&amp;nbsp; Basically, I want the formula to calculate when an ICCID (SERIAL_NO) has both Ported (PORT_ICCID is not blank) and Connected (CONNECTION_ICCID is not blank).&amp;nbsp; The Expression (one of many that finally worked) that I came up with is:&lt;/P&gt;&lt;P&gt;If(((Count(DISTINCT([PORT_ICCID]))) =1 and Count(DISTINCT([CONNECTION_ICCID])) =1), COUNT(DISTINCT([SERIAL_NO])))&lt;/P&gt;&lt;P&gt;And, even though this expression populates within the expanded table... it is not totaling in the sub totals.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19060iB1AFFD63218AE0F8/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you could please help me figure out where I went wrong&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623088#M733392</guid>
      <dc:creator>Danelle</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623091#M733393</link>
      <description>&lt;P&gt;maybe this:&lt;/P&gt;&lt;P&gt;sum(If(((Count(DISTINCT([PORT_ICCID]))) =1 and Count(DISTINCT([CONNECTION_ICCID])) =1), COUNT(DISTINCT([SERIAL_NO]))))&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623091#M733393</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-09-12T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623098#M733394</link>
      <description>&lt;P&gt;Hey Frank, thanks, but is is not working&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623098#M733394</guid>
      <dc:creator>Danelle</dc:creator>
      <dc:date>2019-09-12T10:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623101#M733395</link>
      <description>&lt;P&gt;and this?&lt;/P&gt;&lt;P&gt;sum(If(((Count(DISTINCT([PORT_ICCID]))) =1 and Count(DISTINCT([CONNECTION_ICCID])) =1), COUNT(DISTINCT([SERIAL_NO])),0))&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623101#M733395</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-09-12T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623102#M733396</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;[SERIAL_NO] = {"=Count(DISTINCT [PORT_ICCID]) = 1 and Count(DISTINCT [CONNECTION_ICCID]) = 1"}&amp;gt;} [SERIAL_NO])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623102#M733396</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-12T10:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623106#M733397</link>
      <description>&lt;P&gt;assuming that you want to check&amp;nbsp;&lt;SPAN&gt;PORT_ICCID and&amp;nbsp;CONNECTION_ICCID for each row, and add a indicator 1 or 0 to indicate that in port and then have subtotal showing all such port&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(if(&lt;SPAN&gt;PORT_ICCID=1 and&amp;nbsp;CONNECTION_ICCID=1, 1))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;if not I want to understand how are the relationship between field for ex:one to many&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623106#M733397</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-09-12T10:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error with count if for 2 conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623109#M733398</link>
      <description>&lt;P&gt;Thanks Sunny, that worked brilliantly.&lt;/P&gt;&lt;P&gt;You've made my day, half of the brownie points I'm scoring with the boss belong to you!&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-with-count-if-for-2-conditions/m-p/1623109#M733398</guid>
      <dc:creator>Danelle</dc:creator>
      <dc:date>2019-09-12T10:36:55Z</dc:date>
    </item>
  </channel>
</rss>

