<?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 Having conditional count on columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318353#M117372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many thanks for your help Roland &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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>Fri, 24 Jun 2011 14:26:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-24T14:26:24Z</dc:date>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318345#M117364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are orders in the system which will be at a STAGE for 'n' number of days.And for each stage there will be 'M' days given as SLA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to have a column&amp;nbsp; which gives me count of orders which have crossed the SLA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie, against each stage, I want the count of orders which has n&amp;gt;M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some body pleeeease help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 08:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318345#M117364</guid>
      <dc:creator />
      <dc:date>2011-06-24T08:09:25Z</dc:date>
    </item>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318346#M117365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lavanya,&lt;/P&gt;&lt;P&gt;here a first guess for your chart-expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( if(STAGE &amp;gt; SLA, order)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 08:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318346#M117365</guid>
      <dc:creator />
      <dc:date>2011-06-24T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318347#M117366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks very much Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it count(if(n&amp;gt;M, order)) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, STAGE is a stage at which Order is at.&lt;/P&gt;&lt;P&gt;I have tried it like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension as STAGE_CODE and&lt;/P&gt;&lt;P&gt;Expression as ﻿﻿﻿﻿count(if(n&amp;gt;M, order)) but it dint fetch me any result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 09:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318347#M117366</guid>
      <dc:creator />
      <dc:date>2011-06-24T09:08:45Z</dc:date>
    </item>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318348#M117367</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;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Create a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Add dimension as Stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Add expression as count({&amp;lt;N = {"&amp;gt;M"}&amp;gt;}Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 09:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318348#M117367</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-24T09:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318349#M117368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should work when 'n' and 'M' are fields belonging to the same table as 'STAGE_CODE' and 'order'. Or they are in a table with a link to the "order-table". &lt;/P&gt;&lt;P&gt;I am quite sure you (we)&amp;nbsp; are not far away from the solution, but to find the last missing part it would be very helpfull if you post a little exam app. This can explain more then any description. &lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 09:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318349#M117368</guid>
      <dc:creator />
      <dc:date>2011-06-24T09:36:34Z</dc:date>
    </item>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318350#M117369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Roland. &lt;/P&gt;&lt;P&gt;You are right. I got it as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(if(NUMBEROFDAYS &amp;gt;=SLA, PAG_ID)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Koushik, I am there with Roland's suggestion. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now since I have got it, is it possible for me into include some range in 'IF' condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&amp;nbsp; &lt;STRONG&gt;count( if ( n&amp;gt;m and n&amp;lt;p), pag_id)&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I am just missing with small bit of logic.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your time and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 11:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318350#M117369</guid>
      <dc:creator />
      <dc:date>2011-06-24T11:00:58Z</dc:date>
    </item>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318351#M117370</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes you can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to achieve with set analysis. you will use below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count({&amp;lt;N = {"&amp;gt;M&amp;lt;P"}&amp;gt;}Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 11:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318351#M117370</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-24T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318352#M117371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;glad to help you.&lt;/P&gt;&lt;P&gt;To answer your second quest: Yes you can, but take care of the brackets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count( if ( n&amp;gt;m and n&amp;lt;p), pag_id)&lt;/STRONG&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;---&amp;gt; should be: &lt;STRONG&gt;count( if ( n&amp;gt;m and n&amp;lt;p, pag_id))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This means that the if() delivers only those pag_ids to the count() which passed its filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 12:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318352#M117371</guid>
      <dc:creator />
      <dc:date>2011-06-24T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Having conditional count on columns</title>
      <link>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318353#M117372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many thanks for your help Roland &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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>Fri, 24 Jun 2011 14:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-conditional-count-on-columns/m-p/318353#M117372</guid>
      <dc:creator />
      <dc:date>2011-06-24T14:26:24Z</dc:date>
    </item>
  </channel>
</rss>

