<?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 Date matching with Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-matching-with-Excel/m-p/1773384#M454717</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to match data coming from Excel and from a No SQL&amp;nbsp; database, the tiemstamps being my synthtic key.&lt;/P&gt;&lt;P&gt;I have converted UNIX format time from my db&amp;nbsp;into&amp;nbsp; TS using the following&amp;nbsp; script:&lt;/P&gt;&lt;PRE&gt;My original time format "2021-01-04T14:00:00Z" which is converted by Qlik into the number of &lt;BR /&gt;&lt;SPAN&gt;milliseconds that have elapsed since January 1, 1970 00:00:00 (UTC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;My code is then the following:&lt;BR /&gt;&lt;BR /&gt;date(timestamp(round(left([time],10))/ 86400 + 25569),'DD/MM/YYYY') as date,&lt;BR /&gt;time(timestamp(round(left([time],10))/ 86400 + 25569),'hh:mm:ss') as heure,&lt;BR /&gt;timestamp(round(left([time],10))/ 86400 + 25569,'DD/MM/YYY hh:mm:ss') AS TS,&lt;/PRE&gt;&lt;P&gt;On the other hand I have Excel file with standard Excel dates rounded to the millisecond (date_prev), which I convert into TS using the following script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(date_prev,'DD/MM/YYYY') as date,&lt;BR /&gt;time(date_prev,'hh:mm:ss') as heure,&lt;BR /&gt;timestamp(date_prev,'DD/MM/YYY hh:mm:ss') AS TS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my TS are matching for certain hours but not all of them :&lt;/P&gt;&lt;P&gt;00:00 ok&lt;/P&gt;&lt;P&gt;00:01 ok&lt;/P&gt;&lt;P&gt;00:02 ok&lt;/P&gt;&lt;P&gt;00:03 NOT OK (I have two different rows for data coming from Excel and DB)&lt;/P&gt;&lt;P&gt;and so on: 07:00; 10:00; 11:00; 15:00; 19:00; 22:00 and 23:00 are not working. The rest are OK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens for every day in my data.&lt;/P&gt;&lt;P&gt;Can somebody help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:20:40 GMT</pubDate>
    <dc:creator>JaDuenas</dc:creator>
    <dc:date>2024-11-15T23:20:40Z</dc:date>
    <item>
      <title>Date matching with Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-matching-with-Excel/m-p/1773384#M454717</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to match data coming from Excel and from a No SQL&amp;nbsp; database, the tiemstamps being my synthtic key.&lt;/P&gt;&lt;P&gt;I have converted UNIX format time from my db&amp;nbsp;into&amp;nbsp; TS using the following&amp;nbsp; script:&lt;/P&gt;&lt;PRE&gt;My original time format "2021-01-04T14:00:00Z" which is converted by Qlik into the number of &lt;BR /&gt;&lt;SPAN&gt;milliseconds that have elapsed since January 1, 1970 00:00:00 (UTC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;My code is then the following:&lt;BR /&gt;&lt;BR /&gt;date(timestamp(round(left([time],10))/ 86400 + 25569),'DD/MM/YYYY') as date,&lt;BR /&gt;time(timestamp(round(left([time],10))/ 86400 + 25569),'hh:mm:ss') as heure,&lt;BR /&gt;timestamp(round(left([time],10))/ 86400 + 25569,'DD/MM/YYY hh:mm:ss') AS TS,&lt;/PRE&gt;&lt;P&gt;On the other hand I have Excel file with standard Excel dates rounded to the millisecond (date_prev), which I convert into TS using the following script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(date_prev,'DD/MM/YYYY') as date,&lt;BR /&gt;time(date_prev,'hh:mm:ss') as heure,&lt;BR /&gt;timestamp(date_prev,'DD/MM/YYY hh:mm:ss') AS TS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my TS are matching for certain hours but not all of them :&lt;/P&gt;&lt;P&gt;00:00 ok&lt;/P&gt;&lt;P&gt;00:01 ok&lt;/P&gt;&lt;P&gt;00:02 ok&lt;/P&gt;&lt;P&gt;00:03 NOT OK (I have two different rows for data coming from Excel and DB)&lt;/P&gt;&lt;P&gt;and so on: 07:00; 10:00; 11:00; 15:00; 19:00; 22:00 and 23:00 are not working. The rest are OK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens for every day in my data.&lt;/P&gt;&lt;P&gt;Can somebody help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-matching-with-Excel/m-p/1773384#M454717</guid>
      <dc:creator>JaDuenas</dc:creator>
      <dc:date>2024-11-15T23:20:40Z</dc:date>
    </item>
  </channel>
</rss>

