<?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: count and if in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031527#M937237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like Count({&amp;lt;Item={"=sum(..invoice..)-sum(..credit note..)&amp;lt;0"}&amp;gt;}Item). If you need more help please post a small qlikview document that illustrates the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2016 17:57:59 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-02-15T17:57:59Z</dc:date>
    <item>
      <title>count and if in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031526#M937236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i am using the formula &lt;/P&gt;&lt;P&gt;=count(DISTINCT if(sum({&amp;lt;Year={$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType={'INVOICE'},Year=,Month,Quarter=&amp;gt;}#InvNetSales)&amp;nbsp; &lt;/P&gt;&lt;P&gt; -&amp;nbsp; sum({&amp;lt;Year={$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType={'CreditNote'},Year=,Month,Quarter=&amp;gt;}#InvNetSales))&amp;lt;0,Item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to count the item whose invoice netsales - credit netsales value is lesser than zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 05:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031526#M937236</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2016-02-15T05:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: count and if in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031527#M937237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like Count({&amp;lt;Item={"=sum(..invoice..)-sum(..credit note..)&amp;lt;0"}&amp;gt;}Item). If you need more help please post a small qlikview document that illustrates the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031527#M937237</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-15T17:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: count and if in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031528#M937238</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;May be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14555615116559351" jivemacro_uid="_14555615116559351"&gt;
&lt;P&gt;=if(sum({&amp;lt;Year={$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType={'INVOICE'},Year=,Month,Quarter=&amp;gt;}#InvNetSales)&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Year={$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType={'CreditNote'},Year=,Month,Quarter=&amp;gt;}#InvNetSales)&amp;lt;0,&lt;/P&gt;
&lt;P&gt;Count(Distinct Item) )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 18:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031528#M937238</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-15T18:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: count and if in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031529#M937239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this attached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14555618623769486" jivemacro_uid="_14555618623769486"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEM, Sales 1, Sales 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 100, 888&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 111, 22&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 21, 11&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 111, 1111&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Front end:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Conditional Count-205506.PNG" class="jive-image image-1" src="/legacyfs/online/114691_Conditional Count-205506.PNG" style="height: 192px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 18:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-and-if-in-set-analysis/m-p/1031529#M937239</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-15T18:46:16Z</dc:date>
    </item>
  </channel>
</rss>

