<?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: IntervalMatch issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799464#M64765</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/40935"&gt;@mato32188&lt;/a&gt;&amp;nbsp; Thanks but i don't understand how to join my field after that code :s&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 14:19:13 GMT</pubDate>
    <dc:creator>yohann_w</dc:creator>
    <dc:date>2021-04-14T14:19:13Z</dc:date>
    <item>
      <title>IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799181#M64727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I encountering issue with the intervalmatch function.&lt;/P&gt;&lt;P&gt;I try to add the data FLG_PLAN_DE_STOCK_NATIONAL on line of sales.&lt;/P&gt;&lt;P&gt;FLG_PLAN_DE_STOCK_NATIONAL is an attribut of COD_PRODUIT with start date and end date relating to the order date (DAT_COMMANDE_INITIALE).&lt;/P&gt;&lt;P&gt;I'm using this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PDS_NAT:
LOAD Distinct
COD_PRODUIT,
FLG_PLAN_DE_STOCK_NATIONAL,
date(DAT_DEBUT) as DAT_DEBUT,
if(isnull(DAT_FIN),date(today()-1),date(DAT_FIN)) as DAT_FIN
FROM [lib://QVD_Models/DATAWH_PLAN_STOCK_NATIONAL.QVD]
(qvd);

NoConcatenate

VENTES:
LOAD
COD_CLE_LIGNE_COMMANDE_CLIENT_HIST,
COD_PRODUIT,
MNT_ENREGISTRE_CA_VENTE,
MNT_VALIDEE_CA_VENTE,
MNT_FACTURE_CA_VENTE,
DAT_COMMANDE_INITIALE
FROM [lib://QVD_Models/DATAWH_VENTES/DATAWH_VENTES_202103.QVD]
(qvd);


Left Join IntervalMatch (DAT_COMMANDE_INITIALE,COD_PRODUIT) LOAD DAT_DEBUT, DAT_FIN, COD_PRODUIT resident PDS_NAT;

drop Table PDS_NAT;

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no script error on loading but the field FLG_PLAN_DE_STOCK_NATIONAL is not present on the app :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yohann_w_0-1618336281477.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52921i0FD3FB4D783A1262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yohann_w_0-1618336281477.png" alt="yohann_w_0-1618336281477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me ? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 17:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799181#M64727</guid>
      <dc:creator>yohann_w</dc:creator>
      <dc:date>2021-04-13T17:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799455#M64760</link>
      <description>&lt;P&gt;Because you don't ask for the field in the join and then you drop the table that the field was in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799455#M64760</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-04-14T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799459#M64761</link>
      <description>&lt;P&gt;But when adding the field, like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Left Join IntervalMatch (DAT_COMMANDE_INITIALE,COD_PRODUIT) LOAD DAT_DEBUT, DAT_FIN, COD_PRODUIT, FLG_PLAN_DE_STOCK_NATIONAL resident PDS_NAT;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an error &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yohann_w_0-1618409057115.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52993iE70AA300E7AA349E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yohann_w_0-1618409057115.png" alt="yohann_w_0-1618409057115.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At the end i drop the table "PDS_NAT" because i just want to keep my fact's table "VENTES" with the field i require "FLG_PLAN_DE_STOCK_NATIONAL"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799459#M64761</guid>
      <dc:creator>yohann_w</dc:creator>
      <dc:date>2021-04-14T14:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799461#M64763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/43236"&gt;@yohann_w&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you need to keep only three fields in your load after IntervalMatch.&lt;/P&gt;&lt;P&gt;Field&amp;nbsp;FLG_PLAN_DE_STOCK_NATIONAL&amp;nbsp;join/map afterwards.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;m&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799461#M64763</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2021-04-14T14:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799464#M64765</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/40935"&gt;@mato32188&lt;/a&gt;&amp;nbsp; Thanks but i don't understand how to join my field after that code :s&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799464#M64765</guid>
      <dc:creator>yohann_w</dc:creator>
      <dc:date>2021-04-14T14:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799468#M64766</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/43236"&gt;@yohann_w&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am not sure if I am 100% correct as writing on the fly, but you can try:&lt;/P&gt;&lt;P&gt;PDS_NAT:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;COD_PRODUIT,&lt;BR /&gt;FLG_PLAN_DE_STOCK_NATIONAL,&lt;BR /&gt;date(DAT_DEBUT) as DAT_DEBUT,&lt;BR /&gt;if(isnull(DAT_FIN),date(today()-1),date(DAT_FIN)) as DAT_FIN&lt;BR /&gt;FROM [lib://QVD_Models/DATAWH_PLAN_STOCK_NATIONAL.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MAP:&lt;BR /&gt;Mapping LOAD Distinct&lt;BR /&gt;COD_PRODUIT &amp;amp;'|'&amp;amp; date(DAT_DEBUT) &amp;amp;'|'&amp;amp; if(isnull(DAT_FIN),date(today()-1),date(DAT_FIN)),&lt;BR /&gt;FLG_PLAN_DE_STOCK_NATIONAL&lt;BR /&gt;Resident&amp;nbsp;PDS_NAT;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;VENTES:&lt;BR /&gt;LOAD&lt;BR /&gt;COD_CLE_LIGNE_COMMANDE_CLIENT_HIST,&lt;BR /&gt;COD_PRODUIT,&lt;BR /&gt;MNT_ENREGISTRE_CA_VENTE,&lt;BR /&gt;MNT_VALIDEE_CA_VENTE,&lt;BR /&gt;MNT_FACTURE_CA_VENTE,&lt;BR /&gt;DAT_COMMANDE_INITIALE&lt;BR /&gt;FROM [lib://QVD_Models/DATAWH_VENTES/DATAWH_VENTES_202103.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Left Join&lt;/P&gt;&lt;P&gt;IntervalMatch (DAT_COMMANDE_INITIALE,COD_PRODUIT) LOAD DAT_DEBUT, DAT_FIN, COD_PRODUIT resident PDS_NAT;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;ApplyMap('MAP',COD_PRODUIT &amp;amp;'|'&amp;amp; DAT_DEBUT&amp;amp;'|'&amp;amp; DAT_FIN,null()) as&amp;nbsp;FLG_PLAN_DE_STOCK_NATIONAL&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp;VENTES;&lt;/P&gt;&lt;P&gt;drop table&amp;nbsp;VENTES;&lt;/P&gt;&lt;P&gt;drop Table PDS_NAT;&lt;/P&gt;&lt;P&gt;m&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1799468#M64766</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2021-04-14T14:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch issue</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1820789#M67283</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/40935"&gt;@mato32188&lt;/a&gt;sorry for the answer delay, but indeed ! It works ! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-issue/m-p/1820789#M67283</guid>
      <dc:creator>yohann_w</dc:creator>
      <dc:date>2021-07-08T15:03:31Z</dc:date>
    </item>
  </channel>
</rss>

