<?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: Logic on date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-on-date/m-p/1533644#M746740</link>
    <description>could you please give some sample data and result that you want.&lt;BR /&gt;So I can try to get the solution for you.</description>
    <pubDate>Wed, 23 Jan 2019 07:26:16 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2019-01-23T07:26:16Z</dc:date>
    <item>
      <title>Logic on date</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-on-date/m-p/1533516#M746739</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;My source data has STCLDT (store close date) is a 6 digit numeric filed in YYMMDD format, so if a store closed in December in the year 2000, the format would be 00125. Can't use makedate() function and compare dates. I am using a below logic to change into date format.&lt;/P&gt;&lt;P&gt;So if the store close date number is less than 1300, it defaults to 010101, which is a number than can be converted to a date easily.&lt;/P&gt;&lt;P&gt;if(STCLDT &amp;lt; 1300 and STCLDT &amp;lt;&amp;gt; 0, 010101, STCLDT) as Close_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then, the below logic looks to see if there is a close date. if the numeric filed is zero, the store is open&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Close_Date = 0, 'N', 'Y') as Str_Closed,&lt;/P&gt;&lt;P&gt;So in source data, if some enters a&amp;nbsp; store closing date for next month.&amp;nbsp; I wanted to make above flag it in a way that the flag should still read as open store until 1 week or few days from the actual closing date.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-on-date/m-p/1533516#M746739</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic on date</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-on-date/m-p/1533644#M746740</link>
      <description>could you please give some sample data and result that you want.&lt;BR /&gt;So I can try to get the solution for you.</description>
      <pubDate>Wed, 23 Jan 2019 07:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-on-date/m-p/1533644#M746740</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-01-23T07:26:16Z</dc:date>
    </item>
  </channel>
</rss>

