<?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: Start date bigger than end date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139932#M457486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want this to work? Min(FieldName) will never return a value that is larger than Max(FieldName), at most one that is &amp;lt;=...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that vStartDate and vEndDate can be set independently. What values do they contain ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2018 11:37:14 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2018-10-26T11:37:14Z</dc:date>
    <item>
      <title>Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139929#M457483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikview community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added to variables vStartDate and vEndDate to a dimension transaction_date as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStartDate = Min(Transaction_date)&lt;/P&gt;&lt;P&gt;vEndDate = Max(Transaction_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a trigger for vStartDate:&lt;/P&gt;&lt;P&gt;dimension Field :Transaction_date&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp;vStartDate &amp;amp; '&amp;lt;=' &amp;amp;vEndDate&lt;/P&gt;&lt;P&gt; trigger for vEndDate:&lt;/P&gt;&lt;P&gt;dimension Field :Transaction_date&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp;vStartDate &amp;amp; '&amp;lt;=' &amp;amp;vEndDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get &lt;STRONG&gt;0&lt;/STRONG&gt; &lt;STRONG&gt;values&lt;/STRONG&gt; for &lt;STRONG&gt;all&lt;/STRONG&gt; &lt;STRONG&gt;data&lt;/STRONG&gt; &lt;STRONG&gt;fields&lt;/STRONG&gt; &lt;STRONG&gt;if&lt;/STRONG&gt; the user selects &lt;STRONG&gt;vStartDate&lt;/STRONG&gt; &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;vEndDate&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement that in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Abdallah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 08:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139929#M457483</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-26T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139930#M457484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If($(vStartDate)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; $(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vEndDate), Sum(0))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 09:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139930#M457484</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-26T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139931#M457485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;I have in my expression :&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TRANSACTION_DATE= {'$(vStartDate)'}&amp;gt;}STOCKFM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it to :&lt;/P&gt;&lt;P&gt;if (&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;$(vStartDate)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt; $(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;vEndDate), sum(0),sum({&amp;lt;TRANSACTION_DATE= {'$(vStartDate)'}&amp;gt;}STOCKFM)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried also:&lt;/P&gt;&lt;P&gt;if ('&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;$(vStartDate)'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt; '$(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;vEndDate)', sum(0),sum({&amp;lt;TRANSACTION_DATE= {'$(vStartDate)'}&amp;gt;}STOCKFM)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't work also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 11:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139931#M457485</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-26T11:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139932#M457486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want this to work? Min(FieldName) will never return a value that is larger than Max(FieldName), at most one that is &amp;lt;=...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that vStartDate and vEndDate can be set independently. What values do they contain ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 11:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139932#M457486</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-10-26T11:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139933#M457487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I added an input box with 2 parameters: I called the first vStartDate and the second vEndDate.&lt;/P&gt;&lt;P&gt;I have transaction_date as dimention field in my Fact table.&lt;/P&gt;&lt;P&gt;The purpose of this is to :&lt;/P&gt;&lt;P&gt;+ select a range for transaction_date.&lt;/P&gt;&lt;P&gt;+ Only data from the Fact table where vStartDate &amp;lt;= transaction_date &amp;lt;= vEndDate can be selected.&lt;/P&gt;&lt;P&gt;What I implemented so far is correct when for example vStartDate = 01/01/2012 and vEndDate = 01/01/2013.&lt;/P&gt;&lt;P&gt;or vStartDate = vEndDate = 01/01/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I enter vStartDate = 01/01/2013 and vEndDate = 01/01/2012, I want all the mesures to be null (equal to zero) not different than zero (I didn't yet check the displayed values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Abdallah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139933#M457487</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-26T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139934#M457488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see enclosed the straight table I got.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139934#M457488</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-26T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139935#M457489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can let QlikView do the heavy lifting, by using Calendar-objects. One fills vStartDate and the other vEndDate. Calendar objects can be set to a default date and their range cn be restricted to a minimum and maximum date value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the vStartDate calendar, set&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;initial value = Min({1}transaction_date)&lt;/LI&gt;&lt;LI&gt;minimum value = &lt;SPAN style="font-size: 13.3333px;"&gt;Min({1}transaction_date)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;maximum value = vEndDate&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For the vEndDate calendar, set&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;initial value = Max({1}transaction_date)&lt;/LI&gt;&lt;LI&gt;minimum value = vStartDate&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;maximum value = Max({1}transaction_date)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;That way, you can avoid both variables wandering in forbidden territory&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139935#M457489</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-10-26T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139936#M457490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you test same application like below and show us the result? If 1 returns then zero should work. Is nothing second measure should work. &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;if (&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;$(vStartDate)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt; $(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;vEndDate),&amp;nbsp; 1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2018 03:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139936#M457490</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-27T03:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139937#M457491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If($(vStartDate)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; $(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vEndDate), yourvalue)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1563944" data-object-type="2" href="https://community.qlik.com/thread/318090" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Start date bigger than end date&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2018 11:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139937#M457491</guid>
      <dc:creator>nasirsaikh</dc:creator>
      <dc:date>2018-10-27T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139938#M457492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like Peter suggested, avoiding MinDate larger MaxDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik's numeric search is not always using AND condition for the range, it switches to OR condition in the case where the two limits would return an empty value set. Don't ask me why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get a safe handling in your search pattern using an expression search instead:&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;='=Transaction_date &amp;gt;=' &amp;amp;vStartDate &amp;amp; ' and Transaction_date &amp;lt;=' &amp;amp;vEndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2018 11:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139938#M457492</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-27T11:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139939#M457493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;It's working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;if ('$(vStartDate)' &amp;lt;= '$(vEndDate)',sum (S_QTEPROD),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Abdallah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 10:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139939#M457493</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-10-29T10:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139940#M457494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you it's working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just I didn't find where to set the initial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Abdallah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 15:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139940#M457494</guid>
      <dc:creator>absekrafi</dc:creator>
      <dc:date>2018-11-02T15:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Start date bigger than end date</title>
      <link>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139941#M457495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way to do this is in your script. An initial value is only a placeholder, and usually needs to be assigned only once. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MinMaxTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Min(transaction_date) AS MinDate, Max(transaction_date) AS MaxDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT SomeSourceTransactionTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vStartDate = Date(Peek('MinDate'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vEndDate = Date(Peek('MaxDate'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table MinMaxTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Start-date-bigger-than-end-date/m-p/139941#M457495</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-11-05T08:22:27Z</dc:date>
    </item>
  </channel>
</rss>

