<?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: Difference between two dates YYMMDD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1623029#M594253</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29675"&gt;@Frank_Hartmann&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I try your last solution and this works perfectly!&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 08:57:40 GMT</pubDate>
    <dc:creator>Black_Hole</dc:creator>
    <dc:date>2019-09-12T08:57:40Z</dc:date>
    <item>
      <title>Difference between two dates YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622465#M594248</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I would like to know if it's possible to calculate the difference between two dates in a condition IF.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For example: IF (20190911-20180911)&amp;gt; 1 year THEN '90%'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please could you tell me if it's possible to do that in a LOAD Statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622465#M594248</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2024-11-16T02:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622466#M594249</link>
      <description>&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Load *, if(date#(Date1,'YYYYMMDD')-date#(Date2,'YYYYMMDD')&amp;gt;365,'90%','other') as New;
LOAD * INLINE [
    Date1, Date2
    20190911, 20180911
    20190911, 20180411
    20190911, 20180910
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622466#M594249</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-09-11T07:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622477#M594250</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29675"&gt;@Frank_Hartmann&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your quick reply.&lt;/P&gt;&lt;P&gt;Before to try your solution, I have a problem with the format of the date.&lt;/P&gt;&lt;P&gt;Indeed, in my DB, the dates have the format YYMMDD. But, in my excel files, the dates have the format YY/MM/DD.&lt;/P&gt;&lt;P&gt;Is it possible to add this element in your expression below:&lt;/P&gt;&lt;PRE&gt;if(date#(Date1,'YYYYMMDD')-date#(Date2,'YYYYMMDD')&amp;gt;365,'90%','other') &lt;/PRE&gt;&lt;P&gt;In order to standardize the format of the dates and to make properly the difference.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622477#M594250</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2019-09-11T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622485#M594251</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(date(date#(Date1,'YYYYMMDD'),'YY/MM/DD')-date(date#(Date2,'YYYYMMDD'),'YY/MM/DD')&amp;gt;365,'90%','other') &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622485#M594251</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-09-11T07:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622489#M594252</link>
      <description>&lt;P&gt;or maybe this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Load *, if(date(date#(Date1,'YYYYMMDD'),'YY/MM/DD')-date(date#(Date2,'YYYYMMDD'),'YY/MM/DD')&amp;gt;365,'90%','other') as New,
date(date#(Date1,'YYYYMMDD'),'YY/MM/DD') as Date3,
date(date#(Date2,'YYYYMMDD'),'YY/MM/DD') as Date4;
LOAD * INLINE [
    Date1, Date2
    20190911, 20180911
    20190911, 20180411
    20190911, 20180910
];
DROP Fields Date1,Date2; RENAME Fields Date3 to Date1; RENAME Field Date4 to Date2&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 08:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1622489#M594252</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-09-11T08:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1623029#M594253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29675"&gt;@Frank_Hartmann&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I try your last solution and this works perfectly!&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-YYMMDD/m-p/1623029#M594253</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2019-09-12T08:57:40Z</dc:date>
    </item>
  </channel>
</rss>

