<?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: Loosing data with left join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770360#M454570</link>
    <description>&lt;P&gt;Thanks for the solution and also for the article it was really helpful !!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 21:13:21 GMT</pubDate>
    <dc:creator>zet</dc:creator>
    <dc:date>2020-12-23T21:13:21Z</dc:date>
    <item>
      <title>Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770305#M454558</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two qvd files (in attachement) that I want to merge to only one table with left join&lt;/P&gt;&lt;P&gt;this is my first table where filled with hours :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mzitouni_0-1608738845658.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46095iE172B438E10F280A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mzitouni_0-1608738845658.png" alt="mzitouni_0-1608738845658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is my second table filled with quantity:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mzitouni_1-1608738960317.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46096i628CDFA797C42BF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mzitouni_1-1608738960317.png" alt="mzitouni_1-1608738960317.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I do the left join I don't understand why I miss those 2 quantities :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mzitouni_2-1608739055882.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46097iD8098A80BC949FF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mzitouni_2-1608739055882.png" alt="mzitouni_2-1608739055882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my script :&lt;/P&gt;&lt;P&gt;table1:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;load * from $(vQVD)\Horaires.qvd(qvd);&lt;BR /&gt;left join(table1)&lt;BR /&gt;Load * from $(vQVD)\Archivage.Qvd(Qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770305#M454558</guid>
      <dc:creator>zet</dc:creator>
      <dc:date>2024-11-16T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770332#M454561</link>
      <description>&lt;P&gt;is it possible to attach the QVDs?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;if these are all the columns of the QVDs, then the script should work as intended.&amp;nbsp; there may be something with the data in the QVD that is causing this so attaching the QVD would help shed light on what the issue is&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 17:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770332#M454561</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-23T17:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770342#M454564</link>
      <description>&lt;P&gt;I would hazard a guess that it maybe something with time. there maybe some difference in seconds.&lt;/P&gt;&lt;P&gt;load both qvds in a separate app and Format to show seconds and compare&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 19:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770342#M454564</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-12-23T19:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770350#M454565</link>
      <description />
      <pubDate>Wed, 23 Dec 2020 19:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770350#M454565</guid>
      <dc:creator>zet</dc:creator>
      <dc:date>2020-12-23T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770351#M454566</link>
      <description />
      <pubDate>Wed, 23 Dec 2020 19:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770351#M454566</guid>
      <dc:creator>zet</dc:creator>
      <dc:date>2020-12-23T19:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770352#M454567</link>
      <description>&lt;P&gt;Those are the QVD files I didn't know how to do to show seconds&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 19:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770352#M454567</guid>
      <dc:creator>zet</dc:creator>
      <dc:date>2020-12-23T19:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770353#M454568</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Decimal numbers (such as time stamps) are prone to rounding errors. because of that joining with a decimal is probably not a great idea. Look here on an article about&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3471" target="_blank"&gt;Rounding Errors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i suggest splitting the column into time and date and then join. e.g below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test:
LOAD
    "Minute",
    Jour,
utc_obs,
    SubField(timestamp(utc_obs,'YYYY-MM-DD hh:mm'),' ',1) as date_field,
    time(SubField(timestamp(utc_obs,'YYYY-MM-DD hh:mm'),' ',2),'hh:mm') as time_field

    FROM [lib://Downloads/Community/Horaires.qvd]
(qvd);
left join (Test)
LOAD
    //utc_obs,
    SubField(timestamp(utc_obs,'YYYY-MM-DD hh:mm'),' ',1) as date_field,
    time(SubField(timestamp(utc_obs,'YYYY-MM-DD hh:mm'),' ',2),'hh:mm') as time_field,

    quantity
FROM [lib://Downloads/Community/Archivage.qvd]
(qvd);

//drop new columns&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 20:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770353#M454568</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-12-23T20:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770356#M454569</link>
      <description>&lt;P&gt;please note i didnt use the xisting columns&amp;nbsp;Minute and Jour because they are full timestamps as well not date and time separated. (you can check by doing num(Jour))&lt;/P&gt;&lt;P&gt;using new fields i forced and separated date and time fields.&lt;/P&gt;&lt;P&gt;Actually to be on safer side i would even multiply&amp;nbsp; time field and make it into an integer and then use that for joiinging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    floor(Num(SubField(timestamp(utc_obs,'YYYY-MM-DD hh:mm'),' ',2))*10000) as time_field,&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Dec 2020 20:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770356#M454569</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-12-23T20:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770360#M454570</link>
      <description>&lt;P&gt;Thanks for the solution and also for the article it was really helpful !!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 21:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770360#M454570</guid>
      <dc:creator>zet</dc:creator>
      <dc:date>2020-12-23T21:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loosing data with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770362#M454571</link>
      <description>&lt;P&gt;I added this function but I want to show time_field in time format when loading final results. Do you know which function should I use to&amp;nbsp; make it from integer to time ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 21:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loosing-data-with-left-join/m-p/1770362#M454571</guid>
      <dc:creator>zet</dc:creator>
      <dc:date>2020-12-23T21:21:45Z</dc:date>
    </item>
  </channel>
</rss>

