<?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: Variable inside count function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394577#M803107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer works but why won't click accept fieldname() inside of count?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 13:03:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-15T13:03:05Z</dc:date>
    <item>
      <title>Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394572#M803102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why will the count function not return a result when a variable referring to a column is used as the parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15107439006043532" jivemacro_uid="_15107439006043532"&gt;
&lt;P&gt;Loan_listing:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;LOAN_NUMBER, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROD_DESC, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CURRENCY as loan_currency, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate(AMOUNT) as loan_amt, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Loans' as Data&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[parsed parameters\loanlisting.qvx]&lt;/P&gt;
&lt;P&gt;(qvx);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;let name = FieldName(1, 'Loan_listing');&lt;/P&gt;
&lt;P&gt;let nom = count(FieldName(1, 'Loan_listing'));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why is nom always empty? shouldn't it have the count of LOAN_NUMBER?&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/Variable-inside-count-function/m-p/1394572#M803102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394573#M803103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15107469069952069" jivemacro_uid="_15107469069952069"&gt;
&lt;P&gt;let nom = FieldValuecount(FieldName(&lt;SPAN style="color: #c00000;"&gt;&lt;SPAN class="number"&gt;1&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class="string"&gt;'Loan_listing'&lt;/SPAN&gt;));&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;-Hirish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394573#M803103</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2017-11-15T11:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394574#M803104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET nom = NoOfRows('Loan_listing') //for all rows&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET nom = FieldValueCount('LOAN_NUMBER') //for distinct values of the field&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394574#M803104</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-11-15T11:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394575#M803105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bro, '&lt;STRONG&gt;NoOfRows' &lt;/STRONG&gt; it will not be allowed prior to Fieldname Function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 12:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394575#M803105</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2017-11-15T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394576#M803106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't use it with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Fieldname() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 12:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394576#M803106</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-11-15T12:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394577#M803107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer works but why won't click accept fieldname() inside of count?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 13:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394577#M803107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394578#M803108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup!&amp;nbsp; But he wants it with specified field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 14:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394578#M803108</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2017-11-15T14:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable inside count function</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394579#M803109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count and Sum will not work directly. we need use it like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data_New:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YourField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Data &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;By&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OtherField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;currentField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to call that &lt;STRONG&gt;count&lt;/STRONG&gt; field into a , let variable using peek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 14:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inside-count-function/m-p/1394579#M803109</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2017-11-15T14:22:19Z</dc:date>
    </item>
  </channel>
</rss>

