<?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: Historisation QVD in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115816#M1942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pour rappel, le lien dans l’aide sur toute la méthode et les cas possibles :&lt;/P&gt;&lt;P&gt;https://help.qlik.com/en-US/sense/September2018/Subsystems/Hub/Content/Sense_Hub/LoadData/use-QVD-files-incremental-load.htm&lt;/P&gt;&lt;P&gt;Cdt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe Jouve&lt;/P&gt;&lt;P&gt;Principal Solution Architect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : Juliana Mialoundama &lt;/P&gt;&lt;P&gt;Envoyé : mercredi 7 novembre 2018 17:33&lt;/P&gt;&lt;P&gt;À : Christophe Jouve &amp;lt;Christophe.Jouve@qlik.com&amp;gt;&lt;/P&gt;&lt;P&gt;Objet : Re:  - Historisation QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2018 16:53:17 GMT</pubDate>
    <dc:creator>cje</dc:creator>
    <dc:date>2018-11-07T16:53:17Z</dc:date>
    <item>
      <title>Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115809#M1935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bonjour, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Je souhaite historiser des données sous Qlik Sense. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Chaque jour des stocks sont chargés dans une table SQL. Cependant cette table SQL ne récupère que les données de la veille.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Dans mon QVD je souhaite historiser toutes les dates&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Voici mon QVD :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;STOCKS_HEBDO:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;load &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Codearticle,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantitystock&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; color: #ff0000;"&gt; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; SQL &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;SELECT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.CODEARTICLE,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.QTE_STOCK,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_date(STKL.DATSTK,'DD/MM/YY') as DATSTK,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;FROM STOCK STKL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;store STOCKS_LOGVAD_HEBDO into [lib://\F_STOCKS_$(vAnnee).qvd] &lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 10pt;"&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;IF FileSize('lib://QVD_Rec (omnium_dec1)/DWH\F_ODS_STOCKS_HEBDO_$(vAnnee).qvd')&amp;gt; 0 THEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; TRACE( 'QVD Exists' );&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;//On concatenate les données chargé précédemment en insant uniquement les dates qui n'existe pas dans la table finale&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Concatenate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;load * &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;From [lib://\F_STOCKS_$(vAnnee).qvd] (qvd)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Where not exists ("DATE");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; Else &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp; Trace('QVD not exists');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;End if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;store STOCKS_LOGVAD_HEBDO into [lib://\F_STOCKS_$(vAnnee).qvd] &lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 10pt;"&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;Le problème est que les données se sont pas historisé dans mon QVD. Le QVD ne garde pas les dates et prend uniquement les dates de la veille comme dans ma table SQL.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 13:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115809#M1935</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2018-11-07T13:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115810#M1936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Si votre demande concerne la méthode permettant d’historiser les données à partir de fichiers QVD, voici un doc qui explique en détail la méthode (cela est expliqué pour QlikView mais ça marche de la même manière avec Qlik Sense).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cdt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe Jouve&lt;/P&gt;&lt;P&gt;Principal Solution Architect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.&lt;/P&gt;&lt;P&gt;De : Juliana Mialoundama &lt;/P&gt;&lt;P&gt;Envoyé : mercredi 7 novembre 2018 14:15&lt;/P&gt;&lt;P&gt;À : Christophe Jouve &amp;lt;Christophe.Jouve@qlik.com&amp;gt;&lt;/P&gt;&lt;P&gt;Objet :  - Historisation QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 14:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115810#M1936</guid>
      <dc:creator>cje</dc:creator>
      <dc:date>2018-11-07T14:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115811#M1937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merci beaucoup pour la documentation Christophe. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je souhaite uniquement faire de l'insert, update donc j'ai suivi l'étape&amp;nbsp; du doc que vous m'avez envoyé en comparant ce que j'avais et c'est exactement ce que j'ai fais dans mon script mais rien n'est historisé. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 14:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115811#M1937</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2018-11-07T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115812#M1938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Bonjour&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Je&lt;/SPAN&gt; &lt;SPAN&gt;pense&lt;/SPAN&gt; &lt;SPAN&gt;que&lt;/SPAN&gt; &lt;SPAN&gt;vous&lt;/SPAN&gt; n'avaez pas &lt;SPAN&gt;besoin&lt;/SPAN&gt; de la &lt;SPAN&gt;ligne&lt;/SPAN&gt; &lt;SPAN&gt;suivante&lt;/SPAN&gt; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;store STOCKS_&lt;SPAN&gt;LOGVAD&lt;/SPAN&gt;_&lt;SPAN&gt;HEBDO&lt;/SPAN&gt; into [lib://\&lt;SPAN&gt;F&lt;/SPAN&gt;_STOCKS_$(&lt;SPAN&gt;vAnnee&lt;/SPAN&gt;).&lt;SPAN&gt;qvd&lt;/SPAN&gt;] &lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;(&lt;SPAN&gt;qvd&lt;/SPAN&gt;); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;qui se trouve au milieu su script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vous devez charger dans la table STOCK_HEBDO (qui portera peut être mal son nom du coup) , toutes les nouvelles données&amp;nbsp; ainsi que toutes les données existantes dans le QVD et qui ne sont pas dans la table des données de la veille.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C'est ensuite cette table que vous devez stocker dans le QVD, pas la table STOCK_LOGVAD_HEBDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Par rapport à votre script, ça donnerais ça :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;STOCKS_NEW:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Codearticle,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantitystock&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit; color: #ff0000;"&gt; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SELECT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.CODEARTICLE,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.QTE_STOCK,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_date(STKL.DATSTK,'DD/MM/YY') as DATSTK,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM STOCK STKL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;IF FileSize('lib://QVD_Rec (omnium_dec1)/DWH\F_ODS_STOCKS_HEBDO_$(vAnnee).qvd')&amp;gt; 0 THEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp; TRACE( 'QVD Exists' );&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;//On concatenate les données chargé précédemment en insant uniquement les dates qui n'existe pas dans la table finale&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Concatenate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;load *&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;From [lib://\F_STOCKS_$(vAnnee).qvd] (qvd)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Where not exists ("DATE");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp; Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp; Trace('QVD not exists');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;End if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;store &lt;STRONG style="color: #ff0000; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;STOCKS_NEW&lt;/STRONG&gt; into [lib://\F_STOCKS_$(vAnnee).qvd] &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit; color: #ff0000;"&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Par contre, assurez vous que la date soit bien la clé unique de vos données, sans quoi, vous risquez de passer à côté de certaines données. Si une même date peut se retrouver sur plusieurs lignes, utilisez la clé unique de vous enreg pour en tester l'existence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115812#M1938</guid>
      <dc:creator>fletexier</dc:creator>
      <dc:date>2018-11-07T15:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115813#M1939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Frédéric, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci pour votre retour. J'ai modifié mon script du coup. Par contre je me demandais également si le problème ne venait pas de l'instruction "Store" ? Car je mets le store à la fin du end if au lieu de le mettre avant le else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En ce qui concerne le problème de clé unique, c'est bien la clé unique car il n'y a jamais la même date dans la table SQL (c'est une table SQL qui reprend les stocks de la veille donc la date de la veille change tout le temps) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115813#M1939</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2018-11-07T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115814#M1940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juliana,&lt;/P&gt;&lt;P&gt;Pour rappel, voici le modèle du traitement de base pour un insert/update :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// chargement initial des données (historique)&lt;/P&gt;&lt;P&gt;// cette étape n’est faite qu’une seule fois au départ du chargement de votre historique&lt;/P&gt;&lt;P&gt;// elle n’est pas reprise ensuite&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;historique:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[num_transaction,champ,date,valeur&lt;/P&gt;&lt;P&gt;1,A,01/01/2018,1&lt;/P&gt;&lt;P&gt;2,B,02/02/2018,2&lt;/P&gt;&lt;P&gt;3,C,03/03/2018,3&lt;/P&gt;&lt;P&gt;4,D,04/04/2018,4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;// stockage dans fichier QVD pour conservation&lt;/P&gt;&lt;P&gt;store historique into  (qvd);&lt;/P&gt;&lt;P&gt;// on efface la table de l'historique ici pour l'exemple&lt;/P&gt;&lt;P&gt;drop table historique;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// MECANISME DE MISE A JOUR&lt;/P&gt;&lt;P&gt;// ici : insert et update de données&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;historique:&lt;/P&gt;&lt;P&gt;// on commence par charger la tranche de la mise à jour&lt;/P&gt;&lt;P&gt;// on suppose ici que cette tranche ne contient que les données à ajouter/mettre à jour dans la table de l'historique&lt;/P&gt;&lt;P&gt;// on n'a pas besoin de tester sur la date par exemple parce que certaines données seront mises à jour sur un autre critère que la date&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[num_transaction,champ,date,valeur&lt;/P&gt;&lt;P&gt;3,C,04/03/2018,30&lt;/P&gt;&lt;P&gt;5,E,05/05/2018,5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// puis on charge  les données historique&lt;/P&gt;&lt;P&gt;// à partir du fichier QVD contenant toute l’historique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;load * from  (qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// comme on fait un insert/update, on ne teste pas sur la date mais sur la transaction permettant d'identifier un enreg de manière unique (ici num_transaction)&lt;/P&gt;&lt;P&gt;where not exists (num_transaction);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// on conserve la nouvelle historique dans le fichier QVD&lt;/P&gt;&lt;P&gt;store historique into  (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// si vous rechargez ce fichier, vous verrez que la ligne du produit C a été mise à jour et la ligne du produit E a été rajoutée&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dans votre cas, ce qui n’allait pas concernait le store qui ne contenait que la tranche de la mise à jour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cdt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe Jouve&lt;/P&gt;&lt;P&gt;Principal Solution Architect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Direct: +33 1 55 62 65 54&lt;/P&gt;&lt;P&gt;Mobile: +33 6 76 24 22 47&lt;/P&gt;&lt;P&gt;Email:  Christophe.Jouve@qlik.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;P&gt;Tour Initiale&lt;/P&gt;&lt;P&gt;1 Terrasse Bellini&lt;/P&gt;&lt;P&gt;92919 Paris la Defense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlik.com&amp;lt;http://www.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Téléchargez gratuitement QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://www.qlikview.com/fr/explore/experience/free-download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.&lt;/P&gt;&lt;P&gt;De : Juliana Mialoundama &lt;/P&gt;&lt;P&gt;Envoyé : mercredi 7 novembre 2018 17:07&lt;/P&gt;&lt;P&gt;À : Christophe Jouve &amp;lt;Christophe.Jouve@qlik.com&amp;gt;&lt;/P&gt;&lt;P&gt;Objet : Re:  - Historisation QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115814#M1940</guid>
      <dc:creator>cje</dc:creator>
      <dc:date>2018-11-07T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115815#M1941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merci pour l'exemple , mais que voulez vous dire par : "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Dans votre cas, ce qui n’allait pas concernait le store qui ne contenait que la tranche de la mise à jour " ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Cdt. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115815#M1941</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2018-11-07T16:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115816#M1942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pour rappel, le lien dans l’aide sur toute la méthode et les cas possibles :&lt;/P&gt;&lt;P&gt;https://help.qlik.com/en-US/sense/September2018/Subsystems/Hub/Content/Sense_Hub/LoadData/use-QVD-files-incremental-load.htm&lt;/P&gt;&lt;P&gt;Cdt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe Jouve&lt;/P&gt;&lt;P&gt;Principal Solution Architect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : Juliana Mialoundama &lt;/P&gt;&lt;P&gt;Envoyé : mercredi 7 novembre 2018 17:33&lt;/P&gt;&lt;P&gt;À : Christophe Jouve &amp;lt;Christophe.Jouve@qlik.com&amp;gt;&lt;/P&gt;&lt;P&gt;Objet : Re:  - Historisation QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115816#M1942</guid>
      <dc:creator>cje</dc:creator>
      <dc:date>2018-11-07T16:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115817#M1943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Non, vous l'avez mis au bon endroit, car au premier chargement (lorsque le qvd n'existe pas encore), il faut bien le créer, ce qui ne sera pas le cas, si vous le placez avant le else.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Le test sur la date va effectivement fonctionner, mais je vous conseille tout de même de faire le test avec la clé unique de chaque ligne, ce serait plus propre.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 07:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115817#M1943</guid>
      <dc:creator>fletexier</dc:creator>
      <dc:date>2018-11-08T07:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Historisation QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115818#M1944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Frédéric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juste pour vous dire que le code fonctionne bien comme je le souhaite. C'est à dire que le QVD garde en mémoire les donnée de la veille.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cependant j'ai un soucis, il ne garde pas bien les quantités de stocks .&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217856_1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 10pt;"&gt;Le 06/11 j'avais environs 4 650 en stock et en lançant le code aujourd'hui il me met 2 en stock. Ceci viendrai t-il du code ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #993366;"&gt;STOCK_HEBDO:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;load &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODEINTERNEARTICLE,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODESAISONGESTION,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTE_STKP,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATSTK,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_JOUR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3366ff;"&gt; SQL&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #000000;"&gt;SELECT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.CODEINTERNEARTICLE,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.CODESAISONGESTION,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STKL.QTE_STKP,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_date(STKL.DATSTK,'DD/MM/YY') as DATSTK,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_char(to_date(STKL.DATSTK,'DD/MM/YY'),'YYYYMMDD') as ID_JOUR,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM STK STKL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;WHERE&amp;nbsp; to_char(to_date(STKL.DATSTK,'DD/MM/YY'),'YYYYMMDD') &amp;gt;= $(vAnnee)0101&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and to_char(to_date(STKL.DATSTK,'DD/MM/YY'),'YYYYMMDD') &amp;lt;= $(vAnnee)1231&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #000000;"&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #000000;"&gt;If FileSize&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;'lib://QVD_Rec (omnium_dec1)/DWH\F_ODS_STOCKS_LOGVAD_HEBDO_$(vAnnee).qvd'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;)&amp;gt; 0&lt;/STRONG&gt; &lt;STRONG style="color: #3366ff;"&gt;THEN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;STRONG style="color: #3366ff;"&gt;Trace&lt;/STRONG&gt; &lt;STRONG style="color: #000000;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;'Le QVD existe&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;//On concatenate les données chargé précédemment en insant uniquement les dates qui n'existe pas dans la table finale&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #993366;"&gt;STOCKS_HEBDO&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Load&lt;/STRONG&gt; &lt;STRONG style="color: #000000;"&gt;*&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; [lib://QVD_Rec (omnium_dec1)/DWH\F_ODS_STOCKS_LOGVAD_HEBDO_$(vAnnee).qvd](&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;qvd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Where not exists&lt;/STRONG&gt; &lt;STRONG style="color: #000000;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;"Cal - ID Jour"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #3366ff;"&gt;Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;Trace &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #339966;"&gt;'le QVD est inexistant'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;End if&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;store&lt;/STRONG&gt; &lt;SPAN style="color: #993366;"&gt;&lt;STRONG&gt;STOCKS_HEBDO&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG style="color: #3366ff;"&gt;into&lt;/STRONG&gt; &lt;STRONG style="color: #000000;"&gt;[lib://QVD_Rec (omnium_dec1)/DWH\F_ODS_STOCKS_LOGVAD_HEBDO_$(vAnnee).qvd] &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3366ff;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 08:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Historisation-QVD/m-p/115818#M1944</guid>
      <dc:creator>jmialoundama</dc:creator>
      <dc:date>2018-11-08T08:42:23Z</dc:date>
    </item>
  </channel>
</rss>

