<?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: Date Function(Current and Future Dates) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388656#M799708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Now expression is Showing OK without error. But not getting the expected output.&lt;/P&gt;&lt;P&gt;Please find the attached app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find the below source file and expected output.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186659" alt="Expected output.png" class="jive-image image-1" src="/legacyfs/online/186659_Expected output.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 13:44:59 GMT</pubDate>
    <dc:creator>bhavvibudagam</dc:creator>
    <dc:date>2017-12-12T13:44:59Z</dc:date>
    <item>
      <title>Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388651#M799703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me on this.&lt;/P&gt;&lt;P&gt;I have Two fields named Status and Date fields.Those two fields contains the data like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CURRENT&lt;/P&gt;&lt;P&gt;EXPIRED&lt;/P&gt;&lt;P&gt;NONE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10 December 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;15 February 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;19 December 2018&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;11 December 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;12 December 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Status &lt;/SPAN&gt;is None then &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Date&lt;/SPAN&gt; field value should be blank&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Status &lt;/SPAN&gt;is current then &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt; should be current or future date&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Status &lt;/SPAN&gt; is expired then &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt; should be past date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388651#M799703</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388652#M799704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create 2 fields-&lt;/P&gt;&lt;P&gt;FutureandCurrDate =if(Date&amp;gt;=today(),Date)&lt;/P&gt;&lt;P&gt;ExpiredDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(Date&amp;lt;today(),Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here instead of today() you can put any threshold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=pick(match(Status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Current',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Expired',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'None'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FutureandCurrDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiredDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Blank'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Supriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 11:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388652#M799704</guid>
      <dc:creator>supriyabiware</dc:creator>
      <dc:date>2017-12-12T11:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388653#M799705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this? Qlik is case sensitive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Match(Status, 'CURRENT', 'EXPIRED', 'NONE'), Date(FutureandCurrDate), Date(ExpireDate), '')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388653#M799705</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-12T12:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388654#M799706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this? Your condition Date &amp;gt;= Today() evaluates to true or false it will not display a date so try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(Match([Status]='CURRENT') &lt;STRONG&gt;AND [Date] &amp;gt;=today(), [Date], &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match([Status]='EXPIRED')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;AND [Date] &amp;lt;&amp;nbsp; today(), [Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match([Status]='NONE') ,'Blank')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388654#M799706</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-12T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388655#M799707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad. &lt;/P&gt;&lt;P&gt;Match() function should take two parameters. Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Match(Status, 'Current') So your expr should be like&lt;/P&gt;&lt;P&gt;=if(Match([Status],'CURRENT') AND [Date] &amp;gt;= today(), [Date],&lt;/P&gt;&lt;P&gt;if(Match([Status],'EXPIRED')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND [Date] &amp;lt;&amp;nbsp; today(), [Date],&lt;/P&gt;&lt;P&gt;if(Match([Status],'NONE') ,'Blank')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your qvf file if possible so that we can quickly check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388655#M799707</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-12T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388656#M799708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Now expression is Showing OK without error. But not getting the expected output.&lt;/P&gt;&lt;P&gt;Please find the attached app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find the below source file and expected output.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186659" alt="Expected output.png" class="jive-image image-1" src="/legacyfs/online/186659_Expected output.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388656#M799708</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2017-12-12T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388657#M799709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it like this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ans_284784.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186642_Ans_284784.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388657#M799709</guid>
      <dc:creator>cweiping</dc:creator>
      <dc:date>2017-12-12T14:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388658#M799710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes your correct.Please could you send me the script.&lt;/P&gt;&lt;P&gt;I don't have qlikivew license.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388658#M799710</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2017-12-12T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388659#M799711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MD_Status:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,seq&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CURRENT,1&lt;/P&gt;&lt;P&gt;EXPIRED,0&lt;/P&gt;&lt;P&gt;NONE,3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sign(sign(Date-today())+1) as seq&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Test.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388659#M799711</guid>
      <dc:creator>cweiping</dc:creator>
      <dc:date>2017-12-12T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388660#M799714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please explain this statement &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sign(sign(Date-today())+1) as seq&lt;/SPAN&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;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388660#M799714</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2017-12-12T14:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Function(Current and Future Dates)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388661#M799715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;If date-today is greater than 0 then return 1, equal to 0 is returned, and less than -1.&lt;/P&gt;&lt;P&gt;So 1 represents the future date, 0 represents the current date, and -1 is expired.&lt;/P&gt;&lt;P&gt;If sign (date-today) plus 1 sign again then 1 represents the future and now, and 0 becomes the past date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function-Current-and-Future-Dates/m-p/1388661#M799715</guid>
      <dc:creator>cweiping</dc:creator>
      <dc:date>2017-12-12T14:34:17Z</dc:date>
    </item>
  </channel>
</rss>

