<?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: Computation with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967281#M977749</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;&lt;STRONG&gt;If(Len(Trim([Cut Out 1st])) = 0, Today(), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[Cut Out 1st]) - [Cut Out Plan]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the difference. And may be this to find late or not late&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((If(Len(Trim([Cut Out 1st])) = 0, Today(), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[Cut Out 1st]) - [Cut Out Plan]) &amp;gt; 0, 'Late', 'In Time')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 06:47:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-21T06:47:48Z</dc:date>
    <item>
      <title>Computation with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967280#M977748</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 hope some can help me with may question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try do compare Dates and bring into a seperate column the result like delay or in time. As you can see from the short Picture it Looks ok, but the last record say late but the Plan date is in the future!&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96630_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I believe this is coming because the field is empty in the database. So how can I say in an Expressen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Formular obove explained should run, &lt;STRONG&gt;but If this field is empty please compare today with the plan and give me a result like in time or delay?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope ist understandable what I try to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help Regards&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 06:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967280#M977748</guid>
      <dc:creator />
      <dc:date>2015-08-21T06:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Computation with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967281#M977749</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;&lt;STRONG&gt;If(Len(Trim([Cut Out 1st])) = 0, Today(), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[Cut Out 1st]) - [Cut Out Plan]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the difference. And may be this to find late or not late&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((If(Len(Trim([Cut Out 1st])) = 0, Today(), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[Cut Out 1st]) - [Cut Out Plan]) &amp;gt; 0, 'Late', 'In Time')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 06:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967281#M977749</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-21T06:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Computation with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967282#M977750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have null in [Cut Out 1 st] you can also use the alt function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( [Cut Out Plan] &amp;gt;= alt([Cut Out 1st], Today()), 'In Time', 'Late') &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 16:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967282#M977750</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-21T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Computation with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967283#M977751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thx for your help. I solved it at the moemnt with the isnull function. So I said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cut Out 1st&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cut Out Plan&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), 'in time', 'delay' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 05:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computation-with-dates/m-p/967283#M977751</guid>
      <dc:creator />
      <dc:date>2015-08-24T05:59:57Z</dc:date>
    </item>
  </channel>
</rss>

