<?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: Check between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666746#M674956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you should use if instead of case when&lt;/P&gt;&lt;P&gt;if ((D031... -D011...) &amp;gt; 3 then 'Tempo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ((do31.. - D011...) &amp;gt; 7 then 'Ritardo'&lt;BR /&gt; )) as Text&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 15:02:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-28T15:02:05Z</dc:date>
    <item>
      <title>Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666745#M674955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone, I was trying adding this kind of lines in my script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(CASE (DO31_DATADELIVERY - DO11_DATADOCUMENT)&lt;/P&gt;&lt;P&gt;WHEN (DO31_DATADELIVERY - DO11_DATADOCUMENT)&amp;gt;3 THEN 'In Tempo' &lt;/P&gt;&lt;P&gt;&amp;nbsp; WHEN (DO31_DATADELIVERY - DO11_DATADOCUMENT)&amp;gt;7 THEN 'Ritardo'&lt;/P&gt;&lt;P&gt;&amp;nbsp; END)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I always receive error. But in the chart if I insert the calculation (DO31_DATADELIVERY - DO11_DATADOCUMENT) as an expression, I obtain the number of days between the two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm doing wrong??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 14:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666745#M674955</guid>
      <dc:creator />
      <dc:date>2014-07-28T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666746#M674956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you should use if instead of case when&lt;/P&gt;&lt;P&gt;if ((D031... -D011...) &amp;gt; 3 then 'Tempo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ((do31.. - D011...) &amp;gt; 7 then 'Ritardo'&lt;BR /&gt; )) as Text&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666746#M674956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666747#M674957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think is the correct syntax...it's not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666747#M674957</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666748#M674958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the error? you need to put the above script when you read the table&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; D031....,&lt;/P&gt;&lt;P&gt;D011...&lt;/P&gt;&lt;P&gt;if (D031-D011 &amp;gt; 3, ...&lt;/P&gt;&lt;P&gt; ..&lt;/P&gt;&lt;P&gt;resident abc;&lt;/P&gt;&lt;P&gt;WHat are D031... and D011? Fields within a table?&lt;/P&gt;&lt;P&gt;Can you send example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666748#M674958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666749#M674959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DO31 and DO11 are two tables already loaded within the script, so I'm using two fields: DO31_DATADELIVERY and DO11_DATADOCUMENT which are already present in my script. I think it's just a matter of writing properly the 'case when' syntax...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666749#M674959</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666750#M674960</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;If([DO31_DATADELIVERY - DO11_DATADOCUMENT]&amp;gt;7, 'In Tempo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([DO31_DATADELIVERY - DO11_DATADOCUMENT]&amp;gt;3, 'Ritardo'))&lt;/P&gt;&lt;P&gt;&amp;nbsp; as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666750#M674960</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666751#M674961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that I also switched the condition to evaluate if field is larger than 7 before 3. If you have the condition evaluate if its over 3, then everything over 3 will be in Tempo. You can also expand the expression to test if field is larger then 3 and smaller than 7 for Tempo like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([DO31_DATADELIVERY - DO11_DATADOCUMENT]&amp;gt;3 &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and [DO31_DATADELIVERY - DO11_DATADOCUMENT]&amp;lt;7, 'In Tempo', &lt;/SPAN&gt;If([DO31_DATADELIVERY - DO11_DATADOCUMENT]&amp;gt;3, 'Ritardo')) as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666751#M674961</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666752#M674962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it's not working...I quite sure that in script I must use the CASE WHEN syntax instead of&amp;nbsp; IF...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666752#M674962</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666753#M674963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;[DO31_DATADELIVERY] and [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;DO11_DATADOCUMENT] are separate fields that you are subtracting or is it one field called &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;[DO31_DATADELIVERY - DO11_DATADOCUMENT&lt;/SPAN&gt;]?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666753#M674963</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666754#M674964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no case syntax&lt;/P&gt;&lt;P&gt;you need to bring the two table in relation. is there an id which can be used?&lt;/P&gt;&lt;P&gt;TEST:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;BR /&gt;ID&lt;BR /&gt;D031_DATADELIVERY&lt;BR /&gt;reiseent D031&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join(TEST)&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;D011_DATADOCUMENT&lt;/P&gt;&lt;P&gt;resident D011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST1:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;/P&gt;&lt;P&gt;D031_DATADELIVERY,&lt;/P&gt;&lt;P&gt;D011_DATADOCUMENT,&lt;/P&gt;&lt;P&gt;if (D031... - D011 &amp;gt; 3, 'Tempo'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident TEST;&lt;/P&gt;&lt;P&gt;drop table TEST&lt;/P&gt;&lt;P&gt;this is not exactly the script you need. it should give you an idea!&lt;/P&gt;&lt;P&gt;I am missing CASE when also. It would be nice to have!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666754#M674964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T15:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666755#M674965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;two separate fields which I want to subtract one from each other&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666755#M674965</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666756#M674966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(([DO31_DATADELIVERY]-[DO11_DATADOCUMENT])&amp;gt; 3 and ([DO31_DATADELIVERY]-[DO11_DATADOCUMENT])&amp;lt;7, 'In Tempo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(([DO31_DATADELIVERY]-[DO11_DATADOCUMENT])&amp;gt;7, 'Ritardo'))&lt;/P&gt;&lt;P&gt;&amp;nbsp; as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666756#M674966</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666757#M674967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working...the IF syntax shouldn't have END IF btw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666757#M674967</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666758#M674968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No END if you are using within your load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(([DO31_DATADELIVERY]-[DO11_DATADOCUMENT])&amp;gt; 3 and ([DO31_DATADELIVERY]-[DO11_DATADOCUMENT])&amp;lt;7, 'In Tempo', If(([DO31_DATADELIVERY]-[DO11_DATADOCUMENT])&amp;gt;7, 'Ritardo'))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; as Flag&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666758#M674968</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666759#M674969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to attach a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666759#M674969</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666760#M674970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you won't find it useful, since you cannot use it if you don't have also the SQL DB on which it runs...without the SQL DB you cannot reload the data and whatever change you do to the script won't load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666760#M674970</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666761#M674971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, are you using SQL Select to load the data? If so, can you try a preceding load, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P&gt;If((Date#([DO31_DATADELIVERY],'DD/MM/YYYY')-Date#([DO11_DATADOCUMENT],'DD/MM/YYYY'))&amp;gt;3 and (Date#([DO31_DATADELIVERY],'DD/MM/YYYY')-Date#([DO11_DATADOCUMENT],'DD/MM/YYYY'))&amp;lt;7, 'In Tempo',&lt;/P&gt;&lt;P&gt;If((Date#([DO31_DATADELIVERY],'DD/MM/YYYY')-Date#([DO11_DATADOCUMENT],'DD/MM/YYYY'))&amp;gt;7, 'Ritardo'))&lt;/P&gt;&lt;P&gt;as Flag;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT ... (this is your SQL statement);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666761#M674971</guid>
      <dc:creator />
      <dc:date>2014-07-28T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666762#M674972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working either... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666762#M674972</guid>
      <dc:creator />
      <dc:date>2014-07-28T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666763#M674973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your SQL statement, can try the following case statement: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;CASE&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; WHEN (DO31_DATADELIVERY - DO11_DATADOCUMENT) &amp;gt; 3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(DO31_DATADELIVERY - DO11_DATADOCUMENT) &amp;lt; 7&lt;/SPAN&gt; THEN 'In Tempo'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; WHEN (DO31_DATADELIVERY - DO11_DATADOCUMENT) &amp;gt; 7 THEN 'Ritardo'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;END as Flag&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666763#M674973</guid>
      <dc:creator />
      <dc:date>2014-07-28T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Check between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666764#M674974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Irene,&lt;/P&gt;&lt;P&gt;can you post the whole LOAD in witch you are using the CASE statement?&lt;/P&gt;&lt;P&gt;I think you are trying to do something wrong in Qlik...&lt;/P&gt;&lt;P&gt;Is not a CASE or IF problem: the real issue is that you can't use two fields from two different tables on LOAD statement... You need to create a table containing the two fields before...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-between-dates/m-p/666764#M674974</guid>
      <dc:creator>partenope</dc:creator>
      <dc:date>2014-07-28T16:26:35Z</dc:date>
    </item>
  </channel>
</rss>

