<?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 count a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-a-field/m-p/1695348#M725638</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have set this variable:&lt;/P&gt;&lt;P&gt;Set ve_PHT = SUM({$&amp;lt;PHT = {'HT', 'DP'}&amp;gt;} #RecFar);&lt;/P&gt;&lt;P&gt;Now I want to make the count independently from the value that takes PHT. Because today it takes only two variables, but maybe in my next updates it can take other values. So I need to make it dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try these by they didn't work:&lt;/P&gt;&lt;P&gt;Set ve_PHT = SUM({$&amp;lt;PHT={"$(=LEN(PHT)&amp;gt;0)"}&amp;gt;} #RecFar);&lt;/P&gt;&lt;P&gt;Set ve_PHT = SUM({$&amp;lt;PHT={'*'}&amp;gt;} #RecFar);&lt;/P&gt;&lt;P&gt;Any suggestions on how can it be done?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>dripet</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to count a field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-a-field/m-p/1695348#M725638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have set this variable:&lt;/P&gt;&lt;P&gt;Set ve_PHT = SUM({$&amp;lt;PHT = {'HT', 'DP'}&amp;gt;} #RecFar);&lt;/P&gt;&lt;P&gt;Now I want to make the count independently from the value that takes PHT. Because today it takes only two variables, but maybe in my next updates it can take other values. So I need to make it dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try these by they didn't work:&lt;/P&gt;&lt;P&gt;Set ve_PHT = SUM({$&amp;lt;PHT={"$(=LEN(PHT)&amp;gt;0)"}&amp;gt;} #RecFar);&lt;/P&gt;&lt;P&gt;Set ve_PHT = SUM({$&amp;lt;PHT={'*'}&amp;gt;} #RecFar);&lt;/P&gt;&lt;P&gt;Any suggestions on how can it be done?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-a-field/m-p/1695348#M725638</guid>
      <dc:creator>dripet</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to count a field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-a-field/m-p/1695381#M725639</link>
      <description>&lt;P&gt;Use LET instead of SET and double quote. This is like PHT Is Not NULL.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Let ve_PHT = SUM({$&amp;lt;PHT={"*"}&amp;gt;} #RecFar);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 16:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-a-field/m-p/1695381#M725639</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-04-21T16:49:08Z</dc:date>
    </item>
  </channel>
</rss>

