<?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: calculations in empty table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410964#M152981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FactCollFull:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Count(DW_LOAD_ID) as FactCollFullCount,&lt;/P&gt;&lt;P&gt;Min(DW_LOAD_ID) as Min_DW_LOAD_ID,&lt;/P&gt;&lt;P&gt;Max(DW_LOAD_ID) as Max_DW_LOAD_ID&lt;/P&gt;&lt;P&gt;FROM FACT_COLL_FULL.QVD(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let v_TableName = 'FACT_COLL_FULL';&lt;/P&gt;&lt;P&gt;Let v_RecordCount = rangemax(0,peek('FactCollFullCount',0,FactCollFull));&lt;/P&gt;&lt;P&gt;Let v_MinDwLoadId = rangemin(0,peek('Min_DW_LOAD_ID',0,FactCollFull));&lt;/P&gt;&lt;P&gt;Let v_MaxDwLoadId = rangemax(0,peek('Max_DW_LOAD_ID',0,FactCollFull));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2013 09:53:01 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-04-02T09:53:01Z</dc:date>
    <item>
      <title>calculations in empty table</title>
      <link>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410963#M152980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Could you please help me with one question. How to calculate max, min values in empty resident table or qvd file in the script. It's returns Min, Max value as empty value, but I would like to substitute these with '0' and to assign these to variables. Please see attached files. I know that is possible to calcualte count of records in that way as &lt;/P&gt;&lt;P class="Code"&gt;LET a = NoOfRows('tab1').&lt;/P&gt;&lt;P class="Code"&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 21:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410963#M152980</guid>
      <dc:creator />
      <dc:date>2013-04-01T21:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: calculations in empty table</title>
      <link>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410964#M152981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FactCollFull:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Count(DW_LOAD_ID) as FactCollFullCount,&lt;/P&gt;&lt;P&gt;Min(DW_LOAD_ID) as Min_DW_LOAD_ID,&lt;/P&gt;&lt;P&gt;Max(DW_LOAD_ID) as Max_DW_LOAD_ID&lt;/P&gt;&lt;P&gt;FROM FACT_COLL_FULL.QVD(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let v_TableName = 'FACT_COLL_FULL';&lt;/P&gt;&lt;P&gt;Let v_RecordCount = rangemax(0,peek('FactCollFullCount',0,FactCollFull));&lt;/P&gt;&lt;P&gt;Let v_MinDwLoadId = rangemin(0,peek('Min_DW_LOAD_ID',0,FactCollFull));&lt;/P&gt;&lt;P&gt;Let v_MaxDwLoadId = rangemax(0,peek('Max_DW_LOAD_ID',0,FactCollFull));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 09:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410964#M152981</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-02T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: calculations in empty table</title>
      <link>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410965#M152982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you very much , but in line &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Let v_MinDwLoadId = rangemin(0,peek('Min_DW_LOAD_ID',0,FactCollFull));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;should be used rangemax, if table doesn't empty.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 12:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculations-in-empty-table/m-p/410965#M152982</guid>
      <dc:creator />
      <dc:date>2013-04-02T12:38:19Z</dc:date>
    </item>
  </channel>
</rss>

