<?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 or If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414231#M427383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I tried the first expression and it returned a blank result. Not sue why I can def see their are blue shirts with orders less that 240.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second expression gave me and error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 19:59:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-16T19:59:38Z</dc:date>
    <item>
      <title>Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414228#M427380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to Count all the Shirts that are blue with orders less that 240. However &lt;SPAN style="font-size: 13.3333px;"&gt;I am putting this data in a filter and keep getting invalid dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Below is the expressions that I wrote. I get an OK from the expression check in Qlik Sense but no display. Not sure what I am doing wrong but any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Shirts = {'Blue'} &amp;gt;} [Shirt Orders]&amp;lt;240)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Shirts = 'Blue',Count([Shirt Orders]) &amp;lt;240)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kurleigh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 19:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414228#M427380</guid>
      <dc:creator />
      <dc:date>2017-08-16T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414229#M427381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Count({$&amp;lt;Shirts = {'Blue'}&amp;gt;} [Shirt Orders]) &amp;lt; 240, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({$&amp;lt;Shirts = {'Blue'}&amp;gt;} [Shirt Orders]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 19:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414229#M427381</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T19:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414230#M427382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Shirts = {'Blue'}*{"=Count({$&amp;lt;Shirts = {'Blue'}&amp;gt;} [Shirt Orders]) &amp;lt; 240"}&amp;gt;} [Shirt Orders])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 19:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414230#M427382</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T19:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414231#M427383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I tried the first expression and it returned a blank result. Not sue why I can def see their are blue shirts with orders less that 240.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second expression gave me and error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 19:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414231#M427383</guid>
      <dc:creator />
      <dc:date>2017-08-16T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414232#M427384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Shirts='Blue' and [SHirt Orders]&amp;lt;240,Count([SHirt Orders]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 05:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414232#M427384</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2017-08-17T05:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414233#M427385</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;Try This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;Shirts={"Blue"},[SHirt Orders]={"&amp;lt;240"}&amp;gt;}[SHirt Orders])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 05:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414233#M427385</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-08-17T05:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414234#M427386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try both conditions in set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Shirts &lt;/SPAN&gt;={"Blue"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Shirt Orders]&lt;/SPAN&gt;={"&amp;lt;240"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; [Shirt Orders]&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 06:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414234#M427386</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2017-08-17T06:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414235#M427387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess if &lt;STRONG&gt;Shirts &lt;/STRONG&gt;actually holds color code, there has to be a separate field for shirt itself, may be like &lt;STRONG&gt;ShirtCode&lt;/STRONG&gt;. And then, you perhaps could try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: calibri, verdana, arial, sans-serif;"&gt;Count( &lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; {&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ShirtCode&lt;/STRONG&gt;&lt;/SPAN&gt;={"=Count({&amp;lt;Shirts={'Blue'}&amp;gt;} [Shirt Orders])&amp;lt;240"}&amp;gt;}&lt;STRONG&gt;ShirtCode&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Adjust the fields in your context.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit: DISTINCT&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 06:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414235#M427387</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-17T06:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414236#M427388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;Provide some data dumps.&lt;/P&gt;&lt;P&gt;The above solutions must work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 06:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414236#M427388</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-08-17T06:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count or If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414237#M427389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lakshmipathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution with what I was looking for. Also,Thanks everyone for chiming it with help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-or-If-statement/m-p/1414237#M427389</guid>
      <dc:creator />
      <dc:date>2017-08-17T15:16:31Z</dc:date>
    </item>
  </channel>
</rss>

