<?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 how to use count function with if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241518#M91932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;you can try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create one variable eg vCountYear and assign this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Count(DISTINCT Year) formula to it&lt;/P&gt;&lt;P&gt;After that in list box Expression use this&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;if(&lt;B&gt;&lt;I&gt;vcountYear&lt;/I&gt;&lt;/B&gt;=1, Month,Year)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2011 08:07:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-08T08:07:32Z</dc:date>
    <item>
      <title>how to use count function with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241513#M91927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I want to count year, if the distinct year = 1 , then shws the list of month , otherwise list of year.&lt;/P&gt;&lt;P&gt;how to make if condition,&lt;/P&gt;&lt;P&gt;I am using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;if( count(distinct YEAR)=1 ,MONTH,YEAR) &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;, but it is not getting sufficient output. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 06:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241513#M91927</guid>
      <dc:creator />
      <dc:date>2011-03-08T06:46:23Z</dc:date>
    </item>
    <item>
      <title>how to use count function with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241514#M91928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try this one&lt;/P&gt;&lt;P&gt;count(distinct if(YEAR=1,MONTH,YEAR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 06:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241514#M91928</guid>
      <dc:creator />
      <dc:date>2011-03-08T06:53:53Z</dc:date>
    </item>
    <item>
      <title>how to use count function with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241515#M91929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 07:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241515#M91929</guid>
      <dc:creator />
      <dc:date>2011-03-08T07:00:45Z</dc:date>
    </item>
    <item>
      <title>how to use count function with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241516#M91930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a drilldown dimension group that includes year and month you will get the behavior you want and not have to use an expression.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 07:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241516#M91930</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-03-08T07:07:35Z</dc:date>
    </item>
    <item>
      <title>how to use count function with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241517#M91931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Uneed to use the aggr function while using the nested aggrigate functions.&lt;/P&gt;&lt;P&gt;U can use the count(if(aggr(count(distinct YEAR),YEAR)=1,MONTH,YEAR))&lt;/P&gt;&lt;P&gt;Or Send me sample application&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MAnesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 07:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241517#M91931</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-03-08T07:16:30Z</dc:date>
    </item>
    <item>
      <title>how to use count function with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241518#M91932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;you can try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create one variable eg vCountYear and assign this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Count(DISTINCT Year) formula to it&lt;/P&gt;&lt;P&gt;After that in list box Expression use this&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;if(&lt;B&gt;&lt;I&gt;vcountYear&lt;/I&gt;&lt;/B&gt;=1, Month,Year)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 08:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-count-function-with-if-condition/m-p/241518#M91932</guid>
      <dc:creator />
      <dc:date>2011-03-08T08:07:32Z</dc:date>
    </item>
  </channel>
</rss>

