<?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: Make calculation based on a formula field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277048#M52941</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMrOAAW"&gt;@Dijke&lt;/A&gt;&lt;BR /&gt;Thanks for your answers&lt;BR /&gt;To precise more what I want :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-My first table have way more ID (hundred/thousands ID's). This is an example to find the best way to make possible what I want, so it's not a definitive structure or way.&lt;BR /&gt;&lt;BR /&gt;-The second table with formula is not fixed, but I want to find a perfect structure to make formula's calculation possible.&lt;BR /&gt;&lt;BR /&gt;- ID005 is not used because I want to show they were more ID which can be used.&lt;BR /&gt;&lt;BR /&gt;- ID will be an auto-generate ID, We will have a table with Id of indicator and value of indicator (my first table), after that I will add period of indicator's value. And in our application we developp, we want to let the user create some aggregation and simple calculation with the indicators. And my idea it's to create a table that will stock the formula's (set by the user with the application) and let's Talend make the calculation after with the formula to stock the value in a third table.&lt;BR /&gt;&lt;BR /&gt;So I've simplify the problem in maximum to not show some useless information.&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. I hope we can find a way to make it possible.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 10:30:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-12T10:30:52Z</dc:date>
    <item>
      <title>Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277044#M52937</link>
      <description>&lt;P&gt;Hi, I'm a newbie in Talend, I will try to explain what I want to do.&lt;BR /&gt;&lt;BR /&gt;I stock calculation formula based on value getting by ID. And I want in talend to make the calculation with the formula and values and stock the result in another table.&lt;BR /&gt;&lt;BR /&gt;To show my tables :&lt;/P&gt; 
&lt;P&gt;The first table with a classic field Id and Value&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-11_16h33_48.png" style="width: 132px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzJL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134556iAC438AECAECA37C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzJL.png" alt="0683p000009LzJL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And the second table with formula.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-11_16h34_48.png" style="width: 219px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz4A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141848iED2917D947614C7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz4A.png" alt="0683p000009Lz4A.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My goal is to take each formula and do the math with the value of each ID in formula.&lt;BR /&gt;The first line of my formula's table : I want to make the calcul value of ID 001 (10) + value of ID 002 (26) = 36.&lt;BR /&gt;The second line : I want to make the calcul value of ID 001 (26) * value of ID 002 (52).&lt;BR /&gt;The last line : I want to make the calcul value of ID 001 (26) *19.5.&lt;BR /&gt;&lt;BR /&gt;And I want to make the treatment for each line of formula's table and stock it in a third table.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Also the 2 tables and the formula's structure are not fixed for my work, so if you have another structure to make it possible I can take It.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="3"&gt;Thanks if you can help me.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="3"&gt;Cordially.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 15:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277044#M52937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-11T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277045#M52938</link>
      <description>into a tMap add loockup&lt;BR /&gt;main is formule.&lt;BR /&gt;lockup is data (pivote data from column to line)&lt;BR /&gt;use replace function to set data into formula&lt;BR /&gt;Execute formula.&lt;BR /&gt;Done.&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2018 15:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277045#M52938</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-11T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277046#M52939</link>
      <description>Your first table with ID and VALUE, Is the ID fixed from 001 - 005 (006 not possible, or to infinity ?) 
&lt;BR /&gt;and is your Formula table also fixed or a lot of different formulas based on ID? 
&lt;BR /&gt;Why is it ID 005 isnt used in the formulas as a variable? 
&lt;BR /&gt;Is ID some sort of financial category/classification and there are only 3 types and you have some sort of transaction log? 
&lt;BR /&gt;Is it some data preparation to make reporting or pdf generation more easy? 
&lt;BR /&gt; 
&lt;BR /&gt;Looks/reads like an aggregation but im missing out on the grouping... please elaborate a little more.</description>
      <pubDate>Tue, 11 Sep 2018 17:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277046#M52939</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-11T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277047#M52940</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;Thanks to your reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've try your solution, but I don't understand why I must transform my table in column to line ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My table is an example, my definitive table will contains thousands/hundred of line (it will be complex) :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-12_11h07_37.png" style="width: 579px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzVa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136219iF500EC687FFD8085/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzVa.png" alt="0683p000009LzVa.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-12_11h07_44.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzVf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154061i4DFE2491E8CFE288/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzVf.png" alt="0683p000009LzVf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've try this solution with replace, but I've the problem of list of values, here the result :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-12_11h11_23.png" style="width: 391px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzMf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148626i5CD903D95F13E640/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzMf.png" alt="0683p000009LzMf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Maybe we can found a solution in this way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 10:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277047#M52940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T10:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277048#M52941</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMrOAAW"&gt;@Dijke&lt;/A&gt;&lt;BR /&gt;Thanks for your answers&lt;BR /&gt;To precise more what I want :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-My first table have way more ID (hundred/thousands ID's). This is an example to find the best way to make possible what I want, so it's not a definitive structure or way.&lt;BR /&gt;&lt;BR /&gt;-The second table with formula is not fixed, but I want to find a perfect structure to make formula's calculation possible.&lt;BR /&gt;&lt;BR /&gt;- ID005 is not used because I want to show they were more ID which can be used.&lt;BR /&gt;&lt;BR /&gt;- ID will be an auto-generate ID, We will have a table with Id of indicator and value of indicator (my first table), after that I will add period of indicator's value. And in our application we developp, we want to let the user create some aggregation and simple calculation with the indicators. And my idea it's to create a table that will stock the formula's (set by the user with the application) and let's Talend make the calculation after with the formula to stock the value in a third table.&lt;BR /&gt;&lt;BR /&gt;So I've simplify the problem in maximum to not show some useless information.&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. I hope we can find a way to make it possible.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 10:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277048#M52941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277049#M52942</link>
      <description>for one formula in row1&lt;BR /&gt;you'll get n output one by value (row2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sample:&lt;BR /&gt;for formula ID001+ID002 and ID001=1 ID002=2 ID003=3&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; 1+ID002&lt;BR /&gt;--&amp;gt; ID001+2&lt;BR /&gt;--&amp;gt; ID001+ID002&lt;BR /&gt;&lt;BR /&gt;If you want to do that, it's possible but, you have to keep formula into tMap variable, replace value into this tMap variable&lt;BR /&gt;then you have to take the last output formula by input formula.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2018 11:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277049#M52942</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-12T11:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277050#M52943</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solve presentation and calculation at user input/output side, I cant see the point of storing those calculated values and let Talend calculate them ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are trying to build a simplified calculation engine... I would avoid it at all cost.&lt;/P&gt;&lt;P&gt;I do understand you want to store formulas and maybe even some versioning on top of it (econometric history typed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a closer look at XSLT and functions...&lt;BR /&gt;&lt;A href="http://www.java2s.com/Tutorial/XML/0100__XSLT-stylesheet/Docalculationinselect432.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.java2s.com/Tutorial/XML/0100__XSLT-stylesheet/Docalculationinselect432.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but you need to find a way to generate/construct it yourself.&lt;/P&gt;&lt;P&gt;However I would develop some ui component and let the end-user store the formula(s) (xslt) and store it in the backend /&amp;nbsp;table or other type...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 11:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277050#M52943</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-12T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277051#M52944</link>
      <description>&lt;P&gt;Thank's but I don't understand, how we can take the last output and the formula to make replace in a single variable ? Or maybe create 2 variables ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank's a lot for your reply.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277051#M52944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-13T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277052#M52945</link>
      <description>add formula Id to the output of the tmap then add tAggregate function Last group by this id</description>
      <pubDate>Fri, 14 Sep 2018 07:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277052#M52945</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-14T07:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277053#M52946</link>
      <description>&lt;P&gt;But I will have a line with only the last element replaced, if i take your sample :&lt;BR /&gt;sample:&lt;BR /&gt;for formula ID001+ID002 and ID001=1 ID002=2 ID003=3&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; 1+ID002&lt;BR /&gt;--&amp;gt; ID001+2&lt;BR /&gt;--&amp;gt; ID001+ID002&lt;BR /&gt;&lt;BR /&gt;If I use an tAggregate on last, I will have only ID001+ID002.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277053#M52946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-14T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277054#M52947</link>
      <description>sorry the last line will be 1+2</description>
      <pubDate>Mon, 17 Sep 2018 09:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277054#M52947</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-17T09:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277055#M52948</link>
      <description>&lt;P&gt;Hi Denis,&lt;/P&gt; 
&lt;P&gt;I've try but no, the last line will be ID001+ID002 because the first line will replace ID001, the second will replace ID002 and the third line will replace Id003 but not in the formula.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;--&amp;gt; 1+ID002&lt;BR /&gt;--&amp;gt; ID001+2&lt;BR /&gt;--&amp;gt; ID001+ID002&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now i've a job that do what I want. But I want to optimize the replacement task.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So to detail, I've change the structure of formula's table to this structure :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-27_09h34_10.png" style="width: 691px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzjV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141172i263BCFB874B92AEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzjV.png" alt="0683p000009LzjV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And I make this job :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-27_09h30_05.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzqp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133254iBC963B6B8DC70535/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzqp.png" alt="0683p000009Lzqp.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The 1st part consist to set variable, and check the parameter we need to extract just what we need.&lt;BR /&gt;&lt;BR /&gt;The 2nd part consist to replace each parameter in each formula, but I think we can make it more performant.&lt;BR /&gt;&lt;BR /&gt;And the 3rd part I use the ScriptEngineManager to make the calculation and take the result.&lt;BR /&gt;&lt;BR /&gt;So in the 2nd part I made this :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tMap, I've made a relation with filter that permit to make replacement only if we have the parameter.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-27_09h50_55.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M04L.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135684iF9F28F62B2D10B8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M04L.png" alt="0683p000009M04L.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So the result is like :&lt;/P&gt; 
&lt;P&gt;PARAM_1{10}+PARAM_2{ID[002]}|100&lt;BR /&gt;PARAM_1{ID[001]}+PARAM_2{26}|100&lt;BR /&gt;PARAM_1{26}*PARAM_2{ID[003]}|101&lt;BR /&gt;PARAM_1{ID[002]}*PARAM_2{52}|101&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then I sort by ID to treat the result in tJavaRow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tJavaRow, I take each line to replace each parameter I will take in each line for the same ID :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I used&amp;nbsp; global variables to stock the formula and the ID, and i make the replacement of the ID of the parameter with his value.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-27_09h55_23.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M04Q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152937i2EC0E65F914775E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M04Q.png" alt="0683p000009M04Q.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So I will have this kind of result :&lt;/P&gt; 
&lt;P&gt;PARAM_1{10}+PARAM_2{ID[002]}|100&lt;BR /&gt;PARAM_1{10}+PARAM_2{26}|100&lt;BR /&gt;PARAM_1{26}*PARAM_2{ID[003]}|101&lt;BR /&gt;PARAM_1{26}*PARAM_2{52}|101&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then I take the last row in the tAggregate, and delete with a regexp the "PARAM_*{" "}" part in the tReplace.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-27_09h55_39.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzjW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140296iF52E439A2A371797/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzjW.png" alt="0683p000009LzjW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then I made the calculation of each line with the result :&lt;/P&gt; 
&lt;P&gt;10+26|100 =&amp;gt; 36|100&lt;/P&gt; 
&lt;P&gt;26*52|101 =&amp;gt; 1352|101&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Did someone have a better solution to replace each parameter in each formula ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot fdenis and thanks everyone.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 09:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277055#M52948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-27T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277056#M52949</link>
      <description>on your tmap, you can keep variable from one row to the others. 
&lt;BR /&gt;set formula(row5) as main link. out1 as loockup (set match model to all matches) 
&lt;BR /&gt;Add a Var named formulaId at the end of Var. 
&lt;BR /&gt;store formulaId on the Var.FormulaId. 
&lt;BR /&gt; 
&lt;BR /&gt;if you do so you can set Var.Out with: 
&lt;BR /&gt;if (row5.formulaId=Var.FormulaId) then Var.Out.Replave(…..) 
&lt;BR /&gt;else row1.Formula.Out.Replave(…..) 
&lt;BR /&gt; 
&lt;BR /&gt;after you just have to get the last out group by formula. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;the big question is: how many formula how many params and how many time? 
&lt;BR /&gt;Talend is an ETL. 
&lt;BR /&gt;there are some others software optimized to do that (have a look to R or mapR). 
&lt;BR /&gt;you can use Talend to call R. 
&lt;BR /&gt;good luck 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Sep 2018 11:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277056#M52949</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-27T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Make calculation based on a formula field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277057#M52950</link>
      <description>did you success on your task?</description>
      <pubDate>Mon, 01 Oct 2018 08:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-calculation-based-on-a-formula-field/m-p/2277057#M52950</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-10-01T08:55:32Z</dc:date>
    </item>
  </channel>
</rss>

