<?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: Problème where exists() in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751651#M5763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Martial, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je pense que ton probleme provient du fait que tu cherches a utiliser la fonction Exists() en utilisant le champ precedemment charge dans la table Tickets, si je ne me trompe pas. Cela ne fonctionne evidemment pas.&lt;/P&gt;&lt;P&gt;D'autre part tu definis [Numero de Ticket] dans ta fonction. Qlikview pourra trouver tickets_id qui vient de la meme table, mais pas le champ renomme. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quoiqu'il en soit je pense que tu peux realiser ce que tu veux en creant un Left Join entre tes deux tables. De cette maniere tu joindras ta deuxieme table a la premiere et tu limiteras les values a celles existant dans la premiere. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'espere que c'est clair et que ca t'aidera. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 11:04:17 GMT</pubDate>
    <dc:creator>jonathan_dau</dc:creator>
    <dc:date>2014-12-17T11:04:17Z</dc:date>
    <item>
      <title>Problème where exists()</title>
      <link>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751649#M5761</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 comprend pas le fonctionnement de la fonction exists().&lt;/P&gt;&lt;P&gt;Je ne veux charger les données de Escalades que pour les tickets chargés dans Tickets.&lt;/P&gt;&lt;P&gt;En me basant sur la doc, j'ai fais ceci :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14188128696741236" jivemacro_uid="_14188128696741236"&gt;
&lt;P&gt;Tickets:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; id as [Numéro de ticket],&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;FROM tickets.qvd (qvd)&lt;/P&gt;
&lt;P&gt;WHERE id &amp;gt;= 1410010000;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Escalades:&lt;/P&gt;
&lt;P&gt;LOAD tickets_id as [Numéro de ticket],&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;FROM&amp;nbsp; escalades.qvd (qvd)&lt;/P&gt;
&lt;P&gt;WHERE Exists(tickets_id, [Numéro de ticket]);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'ai le message d'erreur&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;Champ introuvable - &amp;lt;Numéro de ticket&amp;gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Quelle est la bonne utilisation de exists() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751649#M5761</guid>
      <dc:creator />
      <dc:date>2014-12-17T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problème where exists()</title>
      <link>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751650#M5762</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;J'utilise très souvent cette fonction, mais avec une requête SQL ensuite, il faudra peut être adapter le script.&lt;/P&gt;&lt;P&gt;Elle doit être placée dans le LOAD, et la valeur de la table référente entre parenthèse.&lt;/P&gt;&lt;P&gt;Il faudra certainement - à confirmer par d'autres utilisateurs - renommer le champ 'id' de la table Tickets, en tickets_id, qui est stocké dans le QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ce qui donnerait :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;Tickets:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;LOAD&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; tickets_id as [Numéro de ticket],&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;.....&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;FROM tickets.qvd (qvd)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;WHERE id &amp;gt;= 1410010000; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Escalade:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 12px; background-color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; font-weight: inherit;"&gt;LOAD tickets_id as [Numéro de ticket], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 12px; background-color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where exists(tickets_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 12px; background-color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; font-weight: inherit;"&gt;FROM&amp;nbsp; escalades.qvd (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 12px; background-color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 12px; background-color: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751650#M5762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-17T11:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problème where exists()</title>
      <link>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751651#M5763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Martial, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je pense que ton probleme provient du fait que tu cherches a utiliser la fonction Exists() en utilisant le champ precedemment charge dans la table Tickets, si je ne me trompe pas. Cela ne fonctionne evidemment pas.&lt;/P&gt;&lt;P&gt;D'autre part tu definis [Numero de Ticket] dans ta fonction. Qlikview pourra trouver tickets_id qui vient de la meme table, mais pas le champ renomme. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quoiqu'il en soit je pense que tu peux realiser ce que tu veux en creant un Left Join entre tes deux tables. De cette maniere tu joindras ta deuxieme table a la premiere et tu limiteras les values a celles existant dans la premiere. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'espere que c'est clair et que ca t'aidera. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751651#M5763</guid>
      <dc:creator>jonathan_dau</dc:creator>
      <dc:date>2014-12-17T11:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problème where exists()</title>
      <link>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751652#M5764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ma façon d'utiliser exists() vous a mal orienté sur ce que je voulais faire.&lt;/P&gt;&lt;P&gt;Cela m'a forcé à relire la doc et j'ai compris que je l'utilisais à l'envers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exists(A, B) est en fait : recherche toutes les valeurs possibles de B (table actuelle) dans A (autre table qui est déjà chargée).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soit pour mon cas Exists([Numéro de ticket], tickets_id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Et à première vue, ça fonctionne très bien.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci à vous&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Probl%C3%A8me-where-exists/m-p/751652#M5764</guid>
      <dc:creator />
      <dc:date>2014-12-17T11:54:15Z</dc:date>
    </item>
  </channel>
</rss>

