<?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: Syntaxe pour Mapping, source SQL in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1535029#M14281</link>
    <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Merci pour vos réponses. Oui effectivement je n'avais pas réalisé qu'il ne fallait que champs avec cette fonction, c'est pourquoi j'ai changé et utilisé INNER pour avoir toutes les données.&lt;/P&gt;&lt;P&gt;Merci pour l'aide&lt;/P&gt;&lt;P&gt;Bonne journée&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 11:11:57 GMT</pubDate>
    <dc:creator>pdo</dc:creator>
    <dc:date>2019-01-25T11:11:57Z</dc:date>
    <item>
      <title>Syntaxe pour Mapping, source SQL</title>
      <link>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1533960#M14270</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Je débute sur Qlik Sense et je dois dire que j'ai un petit peu besoin d'aide.&lt;/P&gt;&lt;P&gt;A la base j'aimerai calculer le nombre de jours entre 2 dates. Mais, sauf erreur de ma part, on ne peut pas le faire sur 2 tables différentes à moins de faire un mappage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Il me semble avoir bien compris comment le faire avec des fichiers xls ou des données Inline, mais cela ne fonctionne pas en SQL. Je me demande si ma syntaxe est correcte et si je n'oublie pas quelque chose de fondamental?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LIB CONNECT TO [ERP];

[DOC_FATHER]:
Mapping LOAD
	[NUMBER],
	Date([DATE_DOCUMENT] ,'DD.MM.YYYY') AS [DOC_FATHER.DATE_DOCUMENT],
	[DECH_NUMBER];
SQL SELECT "NUMBER",
	"DATE_DOCUMENT",
	"DECH_NUMBER"
FROM "CTX"."DOC_FATHER" Where NUMBER LIKE 'BL-%';

[DOC_SALE]:
LOAD
	[MAJOR_REFERENCE],
	[GOOD_CATEGORY_WORDING],
	[PER_NAME],
	[NUMBER] AS [DECH_NUMBER],
	[DATE_DOCUMENT] AS [DOC_SALE.DATE_DOCUMENT],
	[POS_NUMBER],
	[DOCUMENT_STATUS],
	[BASIS_DELAY],
	[INTERMEDIATE_DELAY],
	[FINAL_DELAY],
	[DELAY_UPDATE_TYPE_ID],
	[STOCK_MANAGEMENT],
	IF([FINAL_DELAY]&amp;gt;[INTERMEDIATE_DELAY],NetWorkDays([INTERMEDIATE_DELAY],[FINAL_DELAY]),'') AS [JLATE],
ApplyMap('[DOC_FATHER]', [DECH_NUMBER]) AS [DECH_NUMBER-link1];
SQL SELECT "MAJOR_REFERENCE",
	"GOOD_CATEGORY_WORDING",
	"PER_NAME",
	"NUMBER",
	"DATE_DOCUMENT",
	"POS_NUMBER",
	"DOCUMENT_STATUS",
	"BASIS_DELAY",
	"INTERMEDIATE_DELAY",
	"FINAL_DELAY",
	"STOCK_MANAGEMENT"
FROM "CTX"."DOC_SALE" Where STOCK_MANAGEMENT = 'YES';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Un grand merci pour votre aide &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1533960#M14270</guid>
      <dc:creator>pdo</dc:creator>
      <dc:date>2019-01-23T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Syntaxe pour Mapping, source SQL</title>
      <link>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1533967#M14271</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;un premier problème: la table de mappage ne doit contenir que deux colonnes (dans votre script, il y en a trois).&lt;/P&gt;&lt;P&gt;cordialement,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 16:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1533967#M14271</guid>
      <dc:creator>nicolas66</dc:creator>
      <dc:date>2019-01-23T16:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntaxe pour Mapping, source SQL</title>
      <link>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1534319#M14275</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Est-ce que tes champs FINAL_DELAY et INTERMEDIATE_DELAY sont bien reconnus par QLIK comme des dates ?&lt;/P&gt;&lt;P&gt;Il faut peut-être que tu fasses la même chose que dans la table DOC_FATHER :&lt;/P&gt;&lt;PRE&gt;Date([DATE_DOCUMENT] ,'DD.MM.YYYY')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1534319#M14275</guid>
      <dc:creator>lcloatre</dc:creator>
      <dc:date>2019-01-24T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntaxe pour Mapping, source SQL</title>
      <link>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1535029#M14281</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;Merci pour vos réponses. Oui effectivement je n'avais pas réalisé qu'il ne fallait que champs avec cette fonction, c'est pourquoi j'ai changé et utilisé INNER pour avoir toutes les données.&lt;/P&gt;&lt;P&gt;Merci pour l'aide&lt;/P&gt;&lt;P&gt;Bonne journée&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 11:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Syntaxe-pour-Mapping-source-SQL/m-p/1535029#M14281</guid>
      <dc:creator>pdo</dc:creator>
      <dc:date>2019-01-25T11:11:57Z</dc:date>
    </item>
  </channel>
</rss>

