<?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: Enregistrement variable dans QVD in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77281#M1329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As-tu Excel installé sur ton serveur QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinon, tu n'as peut-être pas la librairie nécessaire à disposition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je pense que la macro suivante suffit a exporter ta données dans un QVD :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;SUB Exporter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF var.GetContent.String = 1 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NomFichier = "&lt;A href="https://community.qlik.com/"&gt;\\SRVQLIKVIEW\Documents Source\TechnicalNeed_HumanAvailability.qvd&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;/SPAN&gt; obj = ActiveDocument.GetSheetObject("CH208")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.ExportEx NomFichier, 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;END SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 23:04:31 GMT</pubDate>
    <dc:creator>sfatoux72</dc:creator>
    <dc:date>2018-05-03T23:04:31Z</dc:date>
    <item>
      <title>Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77273#M1321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Bonjour à tous,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;J'aurais besoin d'aide pour réaliser un développement concernant une application de suivi des données. J'aimerais enregistrer la valeur d'une variable à &lt;STRONG style="background-position: repeat; color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; text-align: left;"&gt;17h&lt;/STRONG&gt; ainsi que la &lt;STRONG style="background-position: repeat; color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; text-align: left;"&gt;date du jour&lt;/STRONG&gt; dans un fichier QVD afin d'avoir un historique de cette valeur tous les jours à la même heure, donc du type :&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Valeur&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;19-04-2018 | 105,50&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;20-04-2018 | 120.54&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;21-04-2018 |&amp;nbsp; 98.60&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;22-04-2018 | 101.01&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;23-04-2018 &lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;| 97.85&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Le souci que je rencontre, c'est que ce sont les formules qui sont enregistrées et non la valeur de celles ci,&amp;nbsp; car j'ai bien conscience que la valeur de la variable en elle même n'est disponible qu'une fois l'exécution du script terminé...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;StoreData:&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;LOAD &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; '$(Var1)' as [Data1],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; '$(Var2)' as [Data2],&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; Today() as Date&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; AutoGenerate 1;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Je ne sais pas comment contourner ce problème...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Merci,&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Jenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 06:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77273#M1321</guid>
      <dc:creator>JenniferBettiol</dc:creator>
      <dc:date>2018-04-23T06:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77274#M1322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peux-tu donner les expressions de Var1 et de Var2 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77274#M1322</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2018-04-23T17:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77275#M1323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je ne sais pas si ça va aider, ce sont des expressions complexes&lt;/P&gt;&lt;P&gt;(le contenu s'affiche correctement dans un objet texte dans l'application )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;VAR 1 :&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set&lt;STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;vTotalHeuresTech&lt;/SPAN&gt;&lt;/STRONG&gt; = (sum( {&amp;lt; DB_SAV_Ended = {0}, Doc_Version_No = {99}, TT_IsInJPlus2 = {1}, DB_SC_Type = {1}, TT_Status = {'*'} - {4} &amp;gt;} TT_HoursQty) + count( distinct {&amp;lt; DB_SAV_Ended = {0}, Doc_Version_No = {99}, SLA_IsInJPlus2 = {1}, NbTSbyTask = {0}, isUrgent = {0}, DB_SC_Type = {1} &amp;gt;} Doc_No) * ( $(CoefInc)) + count( distinct {&amp;lt; DB_SAV_Ended = {0}, Doc_Version_No = {99}, SLA_IsInJPlus2 = {1}, NbTSbyTask = {0}, isUrgent = {1}, DB_SC_Type = {1} &amp;gt;} Doc_No) * ( $(CoefInc)) + sum( {&amp;lt; DB_SAV_Ended = {0}, NbSC_type = {1}, Doc_Version_No = {99}, TT_IsInJPlus2 = {1}, NbTSbyTask = {"&amp;gt;0"}, DB_C_Code = {*} -{'D09','M07','S11'}, DB_SC_Type = {2}, TT_Status = {*} - {4} &amp;gt;} TT_HoursQty) + count( distinct {&amp;lt; DB_SAV_Ended = {0}, NbSC_type = {1}, Doc_Version_No = {99}, SLA_IsInJPlus2 = {1}, NbTSbyTask = {0}, DB_C_Code = {*} -{'D09','M07','S11'}, isUrgent = {0}, DB_SC_Type = {2} &amp;gt;} Doc_No) * ( $(CoefChg)) + count( distinct {&amp;lt; DB_SAV_Ended = {0}, NbSC_type = {1}, Doc_Version_No = {99}, SLA_IsInJPlus2 = {1}, NbTSbyTask = {0}, DB_C_Code = {*} -{'D09','M07','S11'}, isUrgent = {1}, DB_SC_Type = {2} &amp;gt;} Doc_No) * ( $(CoefChg)) + sum({&amp;lt; DB_EndedCall = {0}, DB_IMAC_Ended = {0}, Doc_Version_No = {99}, HeuresTechInJPlus2 = {1}, TT_Status = {*} - {4}, DB_SC_Type = {4} &amp;gt;} TT_HoursQty));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set &lt;STRONG style="text-decoration: underline;"&gt;vTechNeed_Temp&lt;/STRONG&gt; = $(&lt;STRONG style="text-decoration: underline;"&gt;vTotalHeuresTech&lt;/STRONG&gt;) / ((count( distinct {&amp;lt; Res_Type = {0}, Res_ResGroupNo = {'PLTEC','PLTSE','PLAID'}/*, TT_ResNo ={'*'}-{'PIJA', 'CHBA', 'SEPE', 'CHRI', 'MASE', 'PREST-EDR-UK', 'PREST-GRAPHAX', 'PREST-HOLZER', 'PREST-KMBF', 'PREST-TECH'}*/&amp;gt;} Res_Name) * $(vHeureTechNeed) * $(vNbDays)) - (sum({&amp;lt; ProjectID = {1,2,3}, HeuresTechInJPlus2 = {1}&amp;gt;} TT_HoursQty)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set &lt;STRONG style="text-decoration: underline;"&gt;var1&lt;/STRONG&gt; = IF ( $(&lt;STRONG style="text-decoration: underline;"&gt;vTechNeed_Temp&lt;/STRONG&gt;), $(&lt;STRONG style="text-decoration: underline;"&gt;vTechNeed_Temp&lt;/STRONG&gt;), 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;VAR 2 :&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Set &lt;STRONG style="text-decoration: underline;"&gt;vHumanAvail_Temp&lt;/STRONG&gt; = (((count( distinct {&amp;lt; Res_Type = {0}, Res_ResGroupNo = {'PLTEC','PLTSE','PLAID'} /*, TT_ResNo ={'*'}-{'PIJA', 'CHBA', 'SEPE', 'CHRI', 'MASE', 'PREST-EDR-UK', 'PREST-GRAPHAX', 'PREST-HOLZER', 'PREST-KMBF', 'PREST-TECH'}*/&amp;gt;} Res_Name) * $(vHeureTechNeed) * $(vNbDays)) - (sum({&amp;lt; ProjectID = {1,2,3}, HeuresTechInJPlus2 = {1}&amp;gt;} TT_HoursQty))) / (count( distinct {&amp;lt; Res_Type = {0}, Res_ResGroupNo = {'PLTEC','PLTSE','PLAID'} /*, TT_ResNo ={*}-{'PIJA', 'CHBA', 'SEPE', 'CHRI', 'MASE', 'PREST-EDR-UK', 'PREST-GRAPHAX', 'PREST-HOLZER', 'PREST-KMBF', 'PREST-TECH'}*/&amp;gt;} Res_Name) * $(vHeureTechNeed) * $(vNbDays)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;var2&lt;/STRONG&gt;&lt;/SPAN&gt; = If( $(&lt;STRONG style="text-decoration: underline;"&gt;vHumanAvail_Temp&lt;/STRONG&gt;),$(&lt;STRONG style="text-decoration: underline;"&gt;vHumanAvail_Temp&lt;/STRONG&gt;),0);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 06:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77275#M1323</guid>
      <dc:creator>JenniferBettiol</dc:creator>
      <dc:date>2018-04-24T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77276#M1324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌il y a 2 possibilités qui réponde à ta question, mais dans les 2 cas il y a des difficultés&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Résoudre les expressions dans le script&lt;/P&gt;&lt;P&gt;Cette option est complexe, car t’es expressions sont complexes.&lt;/P&gt;&lt;P&gt;il faut faire une table par fonction d’agrégation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;sum( {&amp;lt; DB_SAV_Ended = {0}, Doc_Version_No = {99}, TT_IsInJPlus2 = {1}, DB_SC_Type = {1}, TT_Status = {'*'} - {4} &amp;gt;} TT_HoursQty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;THT_1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sum(TT_HoursQty) as TotalHeuresTech_1&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB_SAV_Ended = 0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; And Doc_Version_No = 99&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; And &lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;TT_IsInJPlus2 = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; And DB_SC_Type = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; And TT_Status &amp;lt;&amp;gt; 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensuite tu joins tes tables pour n’en avoir plus que une et tu fait une requête dessus pour calculer VAR_1 et VAR_2&lt;/P&gt;&lt;P&gt;Tu concatènes ton qvd existant&lt;/P&gt;&lt;P&gt;Tu sauves le résultat dans ton qvd (store)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oui, c’est compliqué&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Si tu utilises QlikView, tu peux créer une macro qui exportera le contenu d’un objet graphique (tableau avec tes expressions ) dans un QVD. Tu peux lancer l’exécution de ta macro par un trigger declanché à la fin du chargement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C’est pas tout simple non plus, mais cela me semble plus facile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 17:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77276#M1324</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2018-04-24T17:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77277#M1325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci pour ton retour, j'ai développé hier ta seconde proposition, j'ai écris une macro qui est supposée se déclencher après chaque rechargement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Avant 17h, je charge un QVD qui est l'historique (fictif pour l'instant)&lt;/P&gt;&lt;P&gt;- La variable &lt;STRONG style="font-size: 13.3333px;"&gt;"vExportExcel" &lt;/STRONG&gt;est égale à 1 au premier rechargement après 17h, et donc l'objet graphique est sensé être exporté au format Excel &lt;STRONG&gt;(cette étape ne fonctionne pas)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Au second rechargement après 17h, le fichier Excel créé est pris en entré pour être concaténer à l'historique existant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Voici ma macro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUB Exporter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set var&amp;nbsp; = ActiveDocument.GetVariable("vExportExcel")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF var.GetContent.String = 1 THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NomFichier = "\\SRVQLIKVIEW\Documents Source\TechnicalNeed_HumanAvailability.xlsx"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on error resume next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fso.DeleteFile(NomFichier)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on error goto 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET tmpExcel = CreateObject("Excel.Application")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET tmpWorkBook = tmpExcel.Workbooks.ADD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tmpExcel.Visible = True&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET TABLE = ActiveDocument.GetSheetObject("CH208")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET XLSheet = TmpExcel.Worksheets(1) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE.CopyTableToClipboard true &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet.Range("A1").SELECT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XLSheet.PasteSpecial &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TmpWorkBook.SaveAs NomFichier&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TmpExcel.Quit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;END IF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;END SUB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;le niveau de sécurité requis : Accès système&lt;/P&gt;&lt;P&gt;Sécurité locale active : Autoriser les accès système&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Et au niveau des déclencheurs du document : &lt;/P&gt;&lt;P&gt;Déclencheurs d’événements de document/ Au rechargement / Avec Action = executer une macro/ Nom de la macro : Exporter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je ne comprends pas pourquoi l'export ne se fait pas...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77277#M1325</guid>
      <dc:creator>JenniferBettiol</dc:creator>
      <dc:date>2018-04-25T06:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77278#M1326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bon et bien j'ai ma réponse :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Les types de fonctions suivants ne doivent pas être utilisés dans l'environnement du serveur QlikView, car&lt;/P&gt;
&lt;P&gt;elles pourraient avoir des conséquences inattendues :&lt;/P&gt;
&lt;P&gt;* Les opérations attrayant à la disposition qui ont une incidence sur les propriétés des feuilles et des&lt;/P&gt;
&lt;P&gt;objets de feuille via SetProperties&lt;/P&gt;
&lt;P&gt;* Les opérations modifiant les paramètres du document ou utilisateur&lt;/P&gt;
&lt;P&gt;* Toutes les opérations liées au script, y compris Reload&lt;/P&gt;
&lt;P&gt;* Les opérations de réduction des données, ReduceData par exemple&lt;/P&gt;
&lt;P&gt;* Les opérations de type Enregistrer et Ouvrir le document&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je mets ici une piste que j'ai trouvé dans un autre sujet de discussion :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;La solution de contournement est donc de passer par le lancement d'un programme vbs via "External programs" (System / Supporting Tasks / External programs).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Il faut donc créer un fichier .vbs et le lancer à partir de "Command line statement:" : cscript C:\MonFichier.vbs&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bon, y a plus qu'à....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77278#M1326</guid>
      <dc:creator>JenniferBettiol</dc:creator>
      <dc:date>2018-04-25T14:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77279#M1327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pourquoi ne pas, à chaque extraction de ta source de données, stockées dans un QVD dans le nom duquel tu indique la date. Chaque jour tu as un nouveau QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensuite dans le design, tu utilise la date du QVD comme dimension pour calculer tes expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ce n'est&amp;nbsp; à priori pas une solution très complexe à mettre en œuvre.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 15:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77279#M1327</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2018-04-26T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77280#M1328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C'est en fait exactement ce que je fais &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seulement la prochaine étape c'est de pouvoir exporter cet objet dans lequel j'affiche mes expressions (Date du jour - Var1 -Var2) afin d'avoir dans un QVD ou un fichier Excel les données des variables Var1 et Var2. C'est ici que ça coince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 06:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77280#M1328</guid>
      <dc:creator>JenniferBettiol</dc:creator>
      <dc:date>2018-04-27T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77281#M1329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As-tu Excel installé sur ton serveur QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinon, tu n'as peut-être pas la librairie nécessaire à disposition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je pense que la macro suivante suffit a exporter ta données dans un QVD :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;SUB Exporter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF var.GetContent.String = 1 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NomFichier = "&lt;A href="https://community.qlik.com/"&gt;\\SRVQLIKVIEW\Documents Source\TechnicalNeed_HumanAvailability.qvd&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;/SPAN&gt; obj = ActiveDocument.GetSheetObject("CH208")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.ExportEx NomFichier, 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"&gt;END SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 23:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77281#M1329</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2018-05-03T23:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77282#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1478854"&gt;calculate result municipal elections&lt;/A&gt;&lt;/P&gt;&lt;P&gt;‌Bonjour Sébastien,&lt;/P&gt;&lt;P&gt;peux-tu voir cette publication.&lt;/P&gt;&lt;P&gt;merci davance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 23:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77282#M1330</guid>
      <dc:creator>MauriceLudo</dc:creator>
      <dc:date>2018-05-03T23:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77283#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oui Excel est bien installé, et comme je l'indique par après, la macro fait bien ce que je lui demande lors de l'exécution manuelle, le problème est : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Les déclenchements suivants ne doivent pas être utilisés dans l'environnement du serveur QlikView, car ils n'ont pas de sens ou peuvent avoir des conséquences inattendues :&lt;/P&gt;
&lt;P&gt;OnPostReduceData&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;OnPostReload&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Je peux pas lancer une macro après un reload sur le server, Qlikview ne l'autorise pas, ça n'est autorisé que côté client. Or c'est précisément ce que je souhaite faire, du coup je suis bloquée &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 05:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77283#M1331</guid>
      <dc:creator>JenniferBettiol</dc:creator>
      <dc:date>2018-05-04T05:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enregistrement variable dans QVD</title>
      <link>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77284#M1332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Dans ces cas là, j’effectue le chargement&amp;nbsp; sur QlikView Desktop via un batch&amp;nbsp; lancé par le scheduler de Windows (tu peux le faire sur le serveur )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 17:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Enregistrement-variable-dans-QVD/m-p/77284#M1332</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2018-05-04T17:25:46Z</dc:date>
    </item>
  </channel>
</rss>

