<?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 If-statement with Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254168#M497394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with 2 dates. If I add a Calculated dimension like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[SalesDocumentConfirmedScheduleLine.Delivery date]-Today() I get a perfect result in days&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I would like to eliminate a number of records by "Suppress when Value is Null" and as expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If([SalesDocumentConfirmedScheduleLine.Delivery date]-Today() &amp;gt; 0, Null())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but this doesn't -seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;﻿For alle values I get a Null()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;﻿&lt;/SPAN&gt;Any suggestions ?&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;﻿&lt;/SPAN&gt;Thanks in advance&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Guy&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2011 15:16:22 GMT</pubDate>
    <dc:creator>guyvermeiren</dc:creator>
    <dc:date>2011-10-17T15:16:22Z</dc:date>
    <item>
      <title>If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254168#M497394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with 2 dates. If I add a Calculated dimension like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[SalesDocumentConfirmedScheduleLine.Delivery date]-Today() I get a perfect result in days&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I would like to eliminate a number of records by "Suppress when Value is Null" and as expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If([SalesDocumentConfirmedScheduleLine.Delivery date]-Today() &amp;gt; 0, Null())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but this doesn't -seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;﻿For alle values I get a Null()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;﻿&lt;/SPAN&gt;Any suggestions ?&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;﻿&lt;/SPAN&gt;Thanks in advance&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Guy&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254168#M497394</guid>
      <dc:creator>guyvermeiren</dc:creator>
      <dc:date>2011-10-17T15:16:22Z</dc:date>
    </item>
    <item>
      <title>If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254169#M497395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your expression misses the THEN part, NULL() should be the ELSE part, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If([SalesDocumentConfirmedScheduleLine.Delivery date]-Today() &amp;gt; 0, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[SalesDocumentConfirmedScheduleLine.Delivery date]-Today(), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Null())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254169#M497395</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-17T15:23:18Z</dc:date>
    </item>
    <item>
      <title>If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254170#M497396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it doesn't change a thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254170#M497396</guid>
      <dc:creator>guyvermeiren</dc:creator>
      <dc:date>2011-10-17T15:29:44Z</dc:date>
    </item>
    <item>
      <title>If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254171#M497397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, should work given that at least some of your &lt;SPAN style="font-size: 10pt;"&gt;[SalesDocumentConfirmedScheduleLine.Delivery date] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;values are Dates in the future (otherwise subtracting today will always be negative))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254171#M497397</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-17T15:34:54Z</dc:date>
    </item>
    <item>
      <title>If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254172#M497398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct, some dates are in the future and the standard calculation works as I already said in the first mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254172#M497398</guid>
      <dc:creator>guyvermeiren</dc:creator>
      <dc:date>2011-10-17T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254173#M497399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I probably misunderstood your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above given expression is returning correct values, limited to future dates, in my setting. Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254173#M497399</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-17T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: If-statement with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254174#M497400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, it works now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 07:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-Dates/m-p/254174#M497400</guid>
      <dc:creator>guyvermeiren</dc:creator>
      <dc:date>2011-10-18T07:07:41Z</dc:date>
    </item>
  </channel>
</rss>

