<?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 Where Field Is Populated or Not in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242963#M873715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Everyone - All your solutions work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2016 12:54:48 GMT</pubDate>
    <dc:creator>haymarketpaul</dc:creator>
    <dc:date>2016-11-14T12:54:48Z</dc:date>
    <item>
      <title>Count Where Field Is Populated or Not</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242958#M873710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV12 SR3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to count instances where users have a job title or not but i'm not having much luck with my counting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my qvw filtered to the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example i would expect the Last Page Type of Bulletin to have a With Job Title count of 3 based on the 3 data rows you can see that clearly have job titles.&amp;nbsp; For some reason it's showing the count of 3 in the Without Job Title column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i'm using to count the field when it's populated:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fieldname:&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Job_Title_Free_Text_Windpower_Master&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Len(Trim(Job_Title_Free_Text_Windpower_Master))&amp;gt;0,Count([Row #]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when it's not populated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Len(Trim(Job_Title_Free_Text_Windpower_Master))=0,Count([Row #]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Job Title.png" class="jive-image image-1" src="/legacyfs/online/143778_Job Title.png" style="height: 178px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Not quite sure where i'm going wrong or even why the count of 1 for the Standard Last Page Type is showing correctly and the Bulletin count is not so any pointers much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242958#M873710</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Is Populated or Not</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242959#M873711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({$ &amp;lt;UserID={"=len(trim(Job_Title_Free_Text_Windpower_Master))&amp;gt;0"}&amp;gt;} distinct UserID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({$ &amp;lt;UserID={"=len(trim(Job_Title_Free_Text_Windpower_Master))=0"}&amp;gt;} distinct UserID)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2016 16:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242959#M873711</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-11-13T16:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Is Populated or Not</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242960#M873712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(Count(If(Len(Trim(Job_Title_Free_Text_Windpower_Master))&amp;gt;0,[Row #])),[Row #]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(Count(If(Len(Trim(Job_Title_Free_Text_Windpower_Master))=0,[Row #])),[Row #]))&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>Sun, 13 Nov 2016 16:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242960#M873712</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-11-13T16:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Is Populated or Not</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242961#M873713</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;one solution using a flag could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14790827293222683" jivemacro_uid="_14790827293222683"&gt;
&lt;P&gt;Sign(Len(Trim(Job_Title_Free_Text_Windpower_Master))) as JobTitlePresent&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_239642_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143797_QlikCommunity_Thread_239642_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_239642_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143798_QlikCommunity_Thread_239642_Pic2.JPG" style="height: 210px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_239642_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/143799_QlikCommunity_Thread_239642_Pic3.JPG" style="height: 206px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 00:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242961#M873713</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-11-14T00:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Is Populated or Not</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242962#M873714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;With_Title:&lt;/P&gt;&lt;P&gt;count({$ &amp;lt;Job_Title={"=len(trim(Job_Title))&amp;gt;0"}&amp;gt;}&amp;nbsp; distinct UserId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No_Title:&lt;/P&gt;&lt;P&gt;count({$ &amp;lt;Job_Title -={"=len(trim(Job_Title))&amp;gt;0"}&amp;gt;}&amp;nbsp; distinct UserId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 00:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242962#M873714</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-14T00:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count Where Field Is Populated or Not</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242963#M873715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Everyone - All your solutions work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 12:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Where-Field-Is-Populated-or-Not/m-p/1242963#M873715</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2016-11-14T12:54:48Z</dc:date>
    </item>
  </channel>
</rss>

