<?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: Problem in Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380290#M571883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Query I had mentioned the Code which I had used in the expression &lt;/P&gt;&lt;P&gt;"&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;=count({&amp;lt;EKORG = {'serv'}&amp;gt;}{&amp;lt;BANFN = {' '}&amp;gt;}distinct EBELN)&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this to work I had to pass the Null Value and therefore I had to use the following code while loading the data from .QVD File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Len( Trim( ANFNR ) ) &amp;gt; 0, ANFNR, '$(NullValue)' ) as ANFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If( Len( Trim( BANFN ) ) &amp;gt; 0, BANFN, '$(NullValue)' ) as BANFN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after using this the Results started coming correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Animesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 05:48:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-10T05:48:13Z</dc:date>
    <item>
      <title>Problem in Count</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380288#M571881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am encountering Problem in Count Function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Following Fields&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="114" style="height: 64px; width: 204px; border-width: 1px; border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Field Name&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Description&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Werks&lt;/TD&gt;&lt;TD&gt;Plant&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EBELN&lt;/TD&gt;&lt;TD&gt;PO NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BANFN&lt;/TD&gt;&lt;TD&gt;PR NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ANFNR&lt;/TD&gt;&lt;TD&gt;RFQ NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EKORG&lt;/TD&gt;&lt;TD&gt;Purchase ORG&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to count the NO. PO's which are made without Referencing PR and NO of POs made without Referencing RFQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then I will find out % Non Complaince (PR) =( NO. of PO without PR)/ (Total No of PO) and similarly for RFQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Expression I am restricting using following code "&lt;STRONG&gt;=count({&amp;lt;EKORG = {'serv'}&amp;gt;}distinct EBELN)&lt;/STRONG&gt;" this is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I am using "&lt;STRONG&gt;=count({&amp;lt;EKORG = {'serv'}&amp;gt;}{&amp;lt;BANFN = {' '}&amp;gt;}distinct EBELN)&lt;/STRONG&gt;" it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the excel with the Example and Desired Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Help will be highly &lt;SPAN style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;EM&gt;appreciated&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;EM&gt;Thanks and Regards,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;EM&gt;Animesh&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 10:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380288#M571881</guid>
      <dc:creator />
      <dc:date>2012-08-23T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Count</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380289#M571882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 11.818181991577148px; color: #636363; font-family: Arial;"&gt;count({&amp;lt;EKORG = {'serv'}, BANFN = {' '}&amp;gt;}distinct EBELN)&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>Wed, 29 Aug 2012 20:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380289#M571882</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-08-29T20:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Count</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380290#M571883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Query I had mentioned the Code which I had used in the expression &lt;/P&gt;&lt;P&gt;"&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;=count({&amp;lt;EKORG = {'serv'}&amp;gt;}{&amp;lt;BANFN = {' '}&amp;gt;}distinct EBELN)&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this to work I had to pass the Null Value and therefore I had to use the following code while loading the data from .QVD File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Len( Trim( ANFNR ) ) &amp;gt; 0, ANFNR, '$(NullValue)' ) as ANFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If( Len( Trim( BANFN ) ) &amp;gt; 0, BANFN, '$(NullValue)' ) as BANFN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after using this the Results started coming correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Animesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 05:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-Count/m-p/380290#M571883</guid>
      <dc:creator />
      <dc:date>2012-09-10T05:48:13Z</dc:date>
    </item>
  </channel>
</rss>

