<?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: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333111#M411617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. If want to to the maxstring(No) during the load script possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i have a variable named 'vSheets' and during the load script. i want to set the vSheet to become &lt;SPAN style="font-size: 13.3333px;"&gt;maxstring(No)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2017 08:59:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-19T08:59:10Z</dc:date>
    <item>
      <title>how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333108#M411614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data table loaded from CSV as shown below. As you can see the field 'No' is repeated. How do i do the distinct count on that table based on the filed 'No'. and after that update a variable with this distinct count no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170699_Untitled.png" style="height: 310px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 08:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333108#M411614</guid>
      <dc:creator />
      <dc:date>2017-07-19T08:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333109#M411615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or i can use maxstring(No) to retrieve the maximum number is '9'. &lt;/P&gt;&lt;P&gt;then how do i set this '9' to a variable created after data loaded?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 08:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333109#M411615</guid>
      <dc:creator />
      <dc:date>2017-07-19T08:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333110#M411616</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;use system fields i.e.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$Table and $ Rows&lt;/STRONG&gt; will give you required result.&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, 19 Jul 2017 08:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333110#M411616</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-07-19T08:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333111#M411617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. If want to to the maxstring(No) during the load script possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i have a variable named 'vSheets' and during the load script. i want to set the vSheet to become &lt;SPAN style="font-size: 13.3333px;"&gt;maxstring(No)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 08:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333111#M411617</guid>
      <dc:creator />
      <dc:date>2017-07-19T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333112#M411618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chee,&lt;/P&gt;&lt;P&gt;try this in your script after the csv has been loaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CountNo:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Count(DISTINCT No) as &lt;SPAN style="font-size: 13.3333px;"&gt;CountNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCountNo = Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;CountNo&lt;/SPAN&gt;',0,'&lt;SPAN style="font-size: 13.3333px;"&gt;CountNo&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 09:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333112#M411618</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-19T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333113#M411619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chee,&lt;/P&gt;&lt;P&gt;This is simpler than my first suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vCountNo &lt;/SPAN&gt;= FieldValueCount('No');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 09:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333113#M411619</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-19T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333114#M411620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;quite close. can i do some calculation within the peek? for example i want to minus Countno with 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 09:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333114#M411620</guid>
      <dc:creator />
      <dc:date>2017-07-19T09:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: how do i count distinct record in a loaded data and set the number of record to a variable after data loaded</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333115#M411621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vCountNo &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;= FieldValueCount('No') -1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 09:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-count-distinct-record-in-a-loaded-data-and-set-the/m-p/1333115#M411621</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-19T09:08:44Z</dc:date>
    </item>
  </channel>
</rss>

