<?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 MinDate and MaxDate = Null in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744394#M57089</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;with the following statements I wanted to detrmine the first and the last date of the fact table (Verkausfrechnungen). The field "%Kalender" has the same format setting ('DD.MM.YY').&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Temp_Calendar_Range:
LOAD
	Num(Date#(Min(%Kalender), 'DD.MM.YY'))		as MinDate,
	Num(Date#(Max(%Kalender), 'DD.MM.YY')) 		as MaxDate
RESIDENT [Verkaufsrechnungen];

//--- Assign the start and end dates to variables
LET vMinDate = Peek('MinDate', 0, 'Temp_Calendar_Range');
LET vMaxDate = Peek('MaxDate', 0, 'Temp_Calendar_Range');

DROP TABLE Temp_Calendar_Range; // Cleanup&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Choice&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 16:02:18 GMT</pubDate>
    <dc:creator>choice1848</dc:creator>
    <dc:date>2020-09-16T16:02:18Z</dc:date>
    <item>
      <title>MinDate and MaxDate = Null</title>
      <link>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744394#M57089</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;with the following statements I wanted to detrmine the first and the last date of the fact table (Verkausfrechnungen). The field "%Kalender" has the same format setting ('DD.MM.YY').&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Temp_Calendar_Range:
LOAD
	Num(Date#(Min(%Kalender), 'DD.MM.YY'))		as MinDate,
	Num(Date#(Max(%Kalender), 'DD.MM.YY')) 		as MaxDate
RESIDENT [Verkaufsrechnungen];

//--- Assign the start and end dates to variables
LET vMinDate = Peek('MinDate', 0, 'Temp_Calendar_Range');
LET vMaxDate = Peek('MaxDate', 0, 'Temp_Calendar_Range');

DROP TABLE Temp_Calendar_Range; // Cleanup&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Choice&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 16:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744394#M57089</guid>
      <dc:creator>choice1848</dc:creator>
      <dc:date>2020-09-16T16:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: MinDate and MaxDate = Null</title>
      <link>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744707#M57118</link>
      <description>&lt;P&gt;If the field "%Kalender" is already a date just min/max("%Kalender") would be enough. If it's really a string you would need to convert it with date#() before applying the min/max() - but better would be to convert/interpret the field already by it's first handling.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 11:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744707#M57118</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-09-17T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: MinDate and MaxDate = Null</title>
      <link>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744787#M57129</link>
      <description>&lt;P&gt;putting&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; words into script... try one of these&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Temp_Calendar_Range:
LOAD
	Min(%Kalender)		as MinDate,
	Max(%Kalender) 		as MaxDate
RESIDENT [Verkaufsrechnungen];

//--- Assign the start and end dates to variables
LET vMinDate = Peek('MinDate', 0, 'Temp_Calendar_Range');
LET vMaxDate = Peek('MaxDate', 0, 'Temp_Calendar_Range');

DROP TABLE Temp_Calendar_Range; // Cleanup&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Temp_Calendar_Range:
LOAD
	Min(Date#(%Kalender, 'DD.MM.YY'))		as MinDate,
	Max(Date#(%Kalender, 'DD.MM.YY'))		as MaxDate
RESIDENT [Verkaufsrechnungen];

//--- Assign the start and end dates to variables
LET vMinDate = Peek('MinDate', 0, 'Temp_Calendar_Range');
LET vMaxDate = Peek('MaxDate', 0, 'Temp_Calendar_Range');

DROP TABLE Temp_Calendar_Range; // Cleanup&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744787#M57129</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: MinDate and MaxDate = Null</title>
      <link>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744808#M57131</link>
      <description>&lt;P&gt;hello you two,&lt;BR /&gt;very well, it works. Many thanks for the fast help! Great!!!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744808#M57131</guid>
      <dc:creator>choice1848</dc:creator>
      <dc:date>2020-09-17T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: MinDate and MaxDate = Null</title>
      <link>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744810#M57132</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;I've got a further question. Now I want to use the MinDate and the MaxDate as Dates formatted as "DD.MM.YYYY" in an Set Analysis expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does this work?&amp;nbsp;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MinDate-and-MaxDate-Null/m-p/1744810#M57132</guid>
      <dc:creator>choice1848</dc:creator>
      <dc:date>2020-09-17T14:47:11Z</dc:date>
    </item>
  </channel>
</rss>

