<?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 Set a variable with the total number of rows in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1799792#M64784</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to set a variable with the total number of rows from a table.&lt;/P&gt;&lt;P&gt;To achieve this, I've done the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TOTAL_ERRORES:
LOAD Count(ID_REGISTRY) as total_errores RESIDENT DQ_REGISTRY;
LET total_errores = if(isnull(Peek(total_errores,0,TOTAL_ERRORES)),0,Peek(total_errores,0,TOTAL_ERRORES));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me if this is the better/simpler way to do it?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 15:21:47 GMT</pubDate>
    <dc:creator>Morgoz</dc:creator>
    <dc:date>2021-04-15T15:21:47Z</dc:date>
    <item>
      <title>Set a variable with the total number of rows</title>
      <link>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1799792#M64784</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to set a variable with the total number of rows from a table.&lt;/P&gt;&lt;P&gt;To achieve this, I've done the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TOTAL_ERRORES:
LOAD Count(ID_REGISTRY) as total_errores RESIDENT DQ_REGISTRY;
LET total_errores = if(isnull(Peek(total_errores,0,TOTAL_ERRORES)),0,Peek(total_errores,0,TOTAL_ERRORES));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me if this is the better/simpler way to do it?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1799792#M64784</guid>
      <dc:creator>Morgoz</dc:creator>
      <dc:date>2021-04-15T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set a variable with the total number of rows</title>
      <link>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1799845#M64785</link>
      <description>&lt;P&gt;Try using the NoOfRows() function:&lt;/P&gt;&lt;P&gt;Let total_errors =&amp;nbsp;NoOfRows('TOTAL_ERRORES')&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1799845#M64785</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-04-15T18:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set a variable with the total number of rows</title>
      <link>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1801219#M64943</link>
      <description>&lt;P&gt;Thak you Gary,&lt;/P&gt;&lt;P&gt;anyway, the correct expression was&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let total_errors =&amp;nbsp;NoOfRows('DQ_REGISTRY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it works. Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-a-variable-with-the-total-number-of-rows/m-p/1801219#M64943</guid>
      <dc:creator>Morgoz</dc:creator>
      <dc:date>2021-04-21T09:37:09Z</dc:date>
    </item>
  </channel>
</rss>

