<?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 calcul condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279459#M54619</link>
    <description>what us the relation between first and second tables?</description>
    <pubDate>Thu, 02 Apr 2020 02:05:29 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-04-02T02:05:29Z</dc:date>
    <item>
      <title>tmap calcul condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279458#M54618</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;Hope you are doing well,&lt;/P&gt;
&lt;P&gt;i want to calculate a cumulative score i have in my input :&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;ID CLIENT&lt;/TD&gt;
   &lt;TD width="183px"&gt;PURCHASE AMOUNT EN MAD&lt;/TD&gt;
   &lt;TD width="100px"&gt;&amp;nbsp;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;A&lt;/TD&gt;
   &lt;TD width="183px"&gt;90&lt;/TD&gt;
   &lt;TD width="100px"&gt;0&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;B&lt;/TD&gt;
   &lt;TD width="183px"&gt;120&lt;/TD&gt;
   &lt;TD width="100px"&gt;2&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;C&lt;/TD&gt;
   &lt;TD width="183px"&gt;160&lt;/TD&gt;
   &lt;TD width="100px"&gt;2&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;B&lt;/TD&gt;
   &lt;TD width="183px"&gt;300&lt;/TD&gt;
   &lt;TD width="100px"&gt;8&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;C&lt;/TD&gt;
   &lt;TD width="183px"&gt;290&lt;/TD&gt;
   &lt;TD width="100px"&gt;6&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD width="70px"&gt;A&lt;/TD&gt;
   &lt;TD width="183px"&gt;310&lt;/TD&gt;
   &lt;TD width="100px"&gt;8&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;and the seconde table score&amp;nbsp; :&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;AMOUNT&lt;/TD&gt;
   &lt;TD&gt;SCORE&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;100&lt;/TD&gt;
   &lt;TD&gt;2&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;200&lt;/TD&gt;
   &lt;TD&gt;6&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;300&lt;/TD&gt;
   &lt;TD&gt;8&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;i want in my output with a tmap something like this :&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;ID CLIENT&lt;/TD&gt;
   &lt;TD&gt;SCORE&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;A&lt;/TD&gt;
   &lt;TD&gt;8&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;B&lt;/TD&gt;
   &lt;TD&gt;10&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;C&lt;/TD&gt;
   &lt;TD&gt;8&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;thx you for your help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279458#M54618</guid>
      <dc:creator>Shinigaloo</dc:creator>
      <dc:date>2024-11-16T02:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: tmap calcul condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279459#M54619</link>
      <description>what us the relation between first and second tables?</description>
      <pubDate>Thu, 02 Apr 2020 02:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279459#M54619</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-02T02:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: tmap calcul condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279460#M54620</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;the first table contain two columns the idclient and the amount. and the seconde table contain the amount and the score so the relation between them maybe the amount . by joining with a condition on the amount&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is all topic :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;INTRO&lt;BR /&gt;A company X has implemented a new CRM module to build customer loyalty.&lt;BR /&gt;&lt;BR /&gt;INPUT&lt;BR /&gt;On the one hand, X has an e-commerce site that manages all purchase transactions.&lt;BR /&gt;attached is an example of an extract file from their e-commerce site.&lt;/P&gt; 
&lt;P&gt;LOOKUP&lt;BR /&gt;In addition, attached is the scoring table that allows you to assign a score to each transaction rounded down to the nearest unit.&lt;BR /&gt;For example:&lt;BR /&gt;80 MAD equals 0 points&lt;BR /&gt;100 MAD equals 2 points&lt;BR /&gt;140 MAD equals 2 points&lt;BR /&gt;200 MAD equals 6 points...&lt;BR /&gt;BUSINESS RULES&lt;BR /&gt;The score is calculated for each separate transaction, and then cumulated per user:&lt;BR /&gt;Example&lt;BR /&gt;Transaction 1 of client A: 99 MAD -&amp;gt; Score 0&lt;BR /&gt;Transaction 2 of client A: 99 MAD -&amp;gt; Score 0&lt;BR /&gt;Transaction 3 of client A: 120 MAD -&amp;gt; Score 2&lt;BR /&gt;---&amp;gt; Total score of client A: 2 points.&lt;BR /&gt;&lt;BR /&gt;The score grid is provided just as an example, only the format of the score file is important. The job should therefore be generic and treat the score file as input.&lt;BR /&gt;&lt;BR /&gt;OUTPUT&lt;BR /&gt;The expected output is a list of the different customers with their cumulative scores.&lt;/P&gt; 
&lt;P&gt;thx you for your reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 08:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279460#M54620</guid>
      <dc:creator>Shinigaloo</dc:creator>
      <dc:date>2020-04-02T08:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: tmap calcul condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279461#M54621</link>
      <description>Check the below link ,how to do cumulative sum. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpvsCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/rolling-or-cumulative-sum/td-p/39850&lt;/A&gt;</description>
      <pubDate>Thu, 02 Apr 2020 10:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279461#M54621</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-02T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: tmap calcul condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279462#M54622</link>
      <description>&lt;P&gt;i wan to do it with a tmap .&lt;/P&gt;
&lt;P&gt;it's not just a cumulative score, but also it's about the condition on the join with row1.amount=row2.amount to get the right score for each client before i cumul.&lt;/P&gt;
&lt;P&gt;i did a unique match to get the last row with the condition : row1.amount&amp;gt;=row2.amount but it's not working for me .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly5S"&gt;talendcapture.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 02 Apr 2020 10:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-calcul-condition/m-p/2279462#M54622</guid>
      <dc:creator>Shinigaloo</dc:creator>
      <dc:date>2020-04-02T10:33:38Z</dc:date>
    </item>
  </channel>
</rss>

