<?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: tMap and lookup on dimension table (with versioning) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372607#M135429</link>
    <description>I created a new feature request in Jira, to find a smart solution for this join type. 
&lt;BR /&gt;If someone is interested in it, please vote. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TDI-35036" target="_blank" rel="nofollow noopener noreferrer"&gt;Join DW fact table to an SCD table&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks.</description>
    <pubDate>Tue, 29 Dec 2015 10:18:30 GMT</pubDate>
    <dc:creator>gorotman</dc:creator>
    <dc:date>2015-12-29T10:18:30Z</dc:date>
    <item>
      <title>tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372604#M135426</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a doubt. What's the best solution to do a lookup from fact table to a dimension table with versioning?&lt;BR /&gt;Please consider performance and code maintenance.&lt;BR /&gt;This is my solution (that works):&lt;BR /&gt;Fact table&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGWG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151285iAE275B41B0A18D9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGWG.png" alt="0683p000009MGWG.png" /&gt;&lt;/span&gt;&lt;BR /&gt;dim table&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGY1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147826iD872A0B804613660/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGY1.png" alt="0683p000009MGY1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;job&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGZ0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140528i4781804A839B29B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGZ0.png" alt="0683p000009MGZ0.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;tMap&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGcR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138051i24DA30BB972E8261/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGcR.png" alt="0683p000009MGcR.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Expression filter in output flow&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGcW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151611i472C2F319FE364F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGcW.png" alt="0683p000009MGcW.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Result (correct)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGcb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151835iB786CCBFC0AAFF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGcb.png" alt="0683p000009MGcb.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Problem is how to do a complex join to find the correct version of a dimension occurrence, using application id and the invoice date. (It's a left outer join because I want to keep missing values and mark it with a default missing dimension key).&lt;BR /&gt;Using tMap, it's required to use left outer join and all matches. The filter expression for date range join, is in the output expression filter.&lt;BR /&gt;I didn't find any working alternative. Any idea or suggestion?&lt;BR /&gt;Fact table could be big (5-20 Mil rows ), so I 'm looking for a better performance.&lt;BR /&gt;&lt;BR /&gt;Thank's for help.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372604#M135426</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2015-07-28T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372605#M135427</link>
      <description>uhm, the site made a bit confusion with screenshot (but before save they were ok....).
&lt;BR /&gt;this is the dimension table (I hope)
&lt;BR /&gt;
&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGcg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136186i2AB2C9C470147A0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGcg.png" alt="0683p000009MGcg.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372605#M135427</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2015-07-28T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372606#M135428</link>
      <description>Hi, I post here to ask for suggestions....&lt;BR /&gt;talend has component to manage SCD table.&lt;BR /&gt;But, how do you use these tables in your jobs? How do you resolve join with date range?&lt;BR /&gt;Problem with way described before is to handle failed lookup.&lt;BR /&gt;&lt;BR /&gt;Thank</description>
      <pubDate>Tue, 27 Oct 2015 15:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372606#M135428</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2015-10-27T15:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372607#M135429</link>
      <description>I created a new feature request in Jira, to find a smart solution for this join type. 
&lt;BR /&gt;If someone is interested in it, please vote. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TDI-35036" target="_blank" rel="nofollow noopener noreferrer"&gt;Join DW fact table to an SCD table&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 29 Dec 2015 10:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372607#M135429</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2015-12-29T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372608#M135430</link>
      <description>Up</description>
      <pubDate>Wed, 02 Mar 2016 09:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372608#M135430</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-03-02T09:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372609#M135431</link>
      <description>Up</description>
      <pubDate>Thu, 05 May 2016 09:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372609#M135431</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-05-05T09:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372610#M135432</link>
      <description>If any of the 3 conditions are true, you want to remove that data, correct?
&lt;BR /&gt;
&lt;BR /&gt;This will get rid of the data if there is any hit in the 3 checks:
&lt;BR /&gt;
&lt;BR /&gt;row2.office_id == null 
&lt;BR /&gt;|| (!row1.invoice_date.before(row2.start_date) 
&lt;BR /&gt;|| (!row1.invoice_date.after(row2.end_date)</description>
      <pubDate>Thu, 05 May 2016 18:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372610#M135432</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2016-05-05T18:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372611#M135433</link>
      <description>&lt;BLOCKQUOTE&gt;
  talendtester wrote: 
 &lt;BR /&gt;If any of the 3 conditions are true, you want to remove that data, correct? 
 &lt;BR /&gt; 
 &lt;BR /&gt;This will get rid of the data if there is any hit in the 3 checks: 
 &lt;BR /&gt; 
 &lt;BR /&gt;row2.office_id == null 
 &lt;BR /&gt;|| (!row1.invoice_date.before(row2.start_date) 
 &lt;BR /&gt;|| (!row1.invoice_date.after(row2.end_date) 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks for you post. Code you posted is right, may be (I'm not sure) that my filter (with condition1&amp;nbsp; || (condition 2 &amp;amp;&amp;amp; condition 3) ) is faster because OR require to test every condition. 
&lt;BR /&gt; 
&lt;BR /&gt;But my original request was for a different way to resolve fact -&amp;gt; dimensional (type with versioning) join. 
&lt;BR /&gt;I'll explain my worries: 
&lt;BR /&gt;this join (left outer join with all rows joined by office_id, neither date) moltiplicate fact rows for each office version. 
&lt;BR /&gt;So it tests date range and waistes many of them. 
&lt;BR /&gt; 
&lt;BR /&gt;It's a worst solution I think. 
&lt;BR /&gt;Also I need to catch fact rows that don't match with dimension table (send alter to users). 
&lt;BR /&gt;It's not simple to catch them: 
&lt;BR /&gt;- I can't use inner join and reject flow 
&lt;BR /&gt;- system doesn't distinguish fact row that doesn't mach none rows (send alert) from fact row that matches one version and refuses others (ok, no alert). 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 06 May 2016 10:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372611#M135433</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-05-06T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372612#M135434</link>
      <description>I designed and realized many dw/etl with different softwares (IBM datastage, BO Data integrator) and this type of join and rows management is common for me, in data warehouse projects. :rolleyes: 
&lt;BR /&gt;Am I the only one with this needs using TOS? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; I'm surprised......</description>
      <pubDate>Fri, 06 May 2016 10:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372612#M135434</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-05-06T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372613#M135435</link>
      <description>hi , i would to load my fact table toracleOutput . with join my date_dimension and fileInputExcel this is my job:
&lt;BR /&gt;&amp;nbsp;
&lt;BR /&gt;my fileInputExcel:
&lt;BR /&gt;
&lt;BR /&gt;and my dim_date:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;and this my tmap :
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;problem is how to join my libelle_mois to table date_dim with mois in tFileExcelInput using tmap to load my fact table.</description>
      <pubDate>Mon, 29 Aug 2016 20:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372613#M135435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T20:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and lookup on dimension table (with versioning)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372614#M135436</link>
      <description>Hi saadia, is better if you create a new post for you request, then insert more informations and some schema to exlpain it. 
&lt;BR /&gt;bye</description>
      <pubDate>Tue, 30 Aug 2016 07:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-lookup-on-dimension-table-with-versioning/m-p/2372614#M135436</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-08-30T07:01:10Z</dc:date>
    </item>
  </channel>
</rss>

