<?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: set the min and max date value in variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976274#M80528</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try the below code.&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Min(Date) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Max(Date) as MaxDate&lt;/P&gt;
&lt;P&gt;FROM [lib://QlikSense/MyFolder/MyQvd.qvd](qvd) ;&lt;/P&gt;
&lt;P&gt;LET vMinDate = peek('MinDate',0,'Temp');&lt;/P&gt;
&lt;P&gt;LET vMaxDate = peek('MaxDate',0,'Temp');&lt;/P&gt;
&lt;P&gt;Trace $(vMinDate );&lt;/P&gt;
&lt;P&gt;Trace $(vMaxDate );&lt;/P&gt;
&lt;P&gt;Drop table&amp;nbsp;Temp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 10:46:12 GMT</pubDate>
    <dc:creator>Thanmughi_Sudaroli</dc:creator>
    <dc:date>2022-09-02T10:46:12Z</dc:date>
    <item>
      <title>set the min and max date value in variable</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1975962#M80505</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;BR /&gt;I want to retrieve the minimum and maximum date to store it in a variable, but the variable is empty each time.&lt;BR /&gt;can someone please help me&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Min(Date) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Max(Date) as MaxDate&lt;/P&gt;
&lt;P&gt;FROM [lib://QlikSense/MyFolder/MyQvd.qvd](qvd) ;&lt;/P&gt;
&lt;P&gt;LET vMinDate = peek('MinDate');&lt;/P&gt;
&lt;P&gt;LET vMaxDate = peek('MaxDate');&lt;/P&gt;
&lt;P&gt;TRACE 'vMinDate'+$(vMinDate);&lt;BR /&gt;TRACE 'vMaxDate'+$(vMaxDate);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 15:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1975962#M80505</guid>
      <dc:creator>Broly21000</dc:creator>
      <dc:date>2022-09-01T15:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: set the min and max date value in variable</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1975965#M80506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you try with more parameter :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vMinDate = peek('MinDate', 0);&lt;/P&gt;
&lt;P&gt;LET vMaxDate = peek('MaxDate', 0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aurélien&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 15:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1975965#M80506</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2022-09-01T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: set the min and max date value in variable</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1975977#M80507</link>
      <description>&lt;P&gt;It looks like it should work as written. It may be that the Date field is a Text value, not a numeric date value. In that case you will have to convert the Date as you read with&lt;/P&gt;
&lt;P&gt;Min(Date#(Date, 'DD/MM/YY'))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where DD/MM/YY is whatever your text date format is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 15:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1975977#M80507</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-09-01T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: set the min and max date value in variable</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976231#M80523</link>
      <description>&lt;P&gt;Temp:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Min(Date) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Max(Date) as MaxDate&lt;/P&gt;
&lt;P&gt;FROM [lib://QlikSense/MyFolder/MyQvd.qvd](qvd) ;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LET vMinDate = peek('MinDate',0,Temp);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LET vMaxDate = peek('MaxDate',-1,Temp);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;TRACE 'vMinDate'+$(vMinDate);&lt;BR /&gt;TRACE 'vMaxDate'+$(vMaxDate);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the attched File as a sample , I am using Inline Table , You Can use pour&amp;nbsp; Qvd.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 09:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976231#M80523</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-09-02T09:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: set the min and max date value in variable</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976274#M80528</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try the below code.&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Min(Date) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Max(Date) as MaxDate&lt;/P&gt;
&lt;P&gt;FROM [lib://QlikSense/MyFolder/MyQvd.qvd](qvd) ;&lt;/P&gt;
&lt;P&gt;LET vMinDate = peek('MinDate',0,'Temp');&lt;/P&gt;
&lt;P&gt;LET vMaxDate = peek('MaxDate',0,'Temp');&lt;/P&gt;
&lt;P&gt;Trace $(vMinDate );&lt;/P&gt;
&lt;P&gt;Trace $(vMaxDate );&lt;/P&gt;
&lt;P&gt;Drop table&amp;nbsp;Temp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976274#M80528</guid>
      <dc:creator>Thanmughi_Sudaroli</dc:creator>
      <dc:date>2022-09-02T10:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: set the min and max date value in variable</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976332#M80532</link>
      <description>&lt;P&gt;Assuming you've checked that MinDate and MaxDate fields return an appropriate value, using the Peek()-function outside a LOAD-statement requires that you use all 3 arguments: field_name, row_no and table_name.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-min-and-max-date-value-in-variable/m-p/1976332#M80532</guid>
      <dc:creator>oskartoivonen</dc:creator>
      <dc:date>2022-09-02T12:59:39Z</dc:date>
    </item>
  </channel>
</rss>

