<?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 Scenario based Question in Talend??? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239672#M27403</link>
    <description>Hi&lt;BR /&gt;Can any one provide me solution for this?&lt;BR /&gt;&lt;BR /&gt;Input:&lt;BR /&gt;stringid stringidentifier Fiscalyear Quarter1 salesvolume1 quarter2 salesvolume2 quarter salesvolume3 quarter4 salesvolume4&lt;BR /&gt;14360 Newyork FY-2014 Q1 500 Q2 600 Q3 500 Q4 1100&lt;BR /&gt;15620 London FY-2015 Q1 450 Q2 700 Q3 300 Q4 400&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;stringid stringidentifier Fiscalyear Quarter salesvolume&lt;BR /&gt;14360 Newyork FY-2014 Q1 values&lt;BR /&gt;14360 Newyork FY-2014 Q2 values&lt;BR /&gt;14360 Newyork FY-2014 Q3 values&lt;BR /&gt;14360 Newyork FY-2014 Q4 values&lt;BR /&gt;</description>
    <pubDate>Sun, 26 Aug 2018 04:16:14 GMT</pubDate>
    <dc:creator>Prasanna3</dc:creator>
    <dc:date>2018-08-26T04:16:14Z</dc:date>
    <item>
      <title>Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239672#M27403</link>
      <description>Hi&lt;BR /&gt;Can any one provide me solution for this?&lt;BR /&gt;&lt;BR /&gt;Input:&lt;BR /&gt;stringid stringidentifier Fiscalyear Quarter1 salesvolume1 quarter2 salesvolume2 quarter salesvolume3 quarter4 salesvolume4&lt;BR /&gt;14360 Newyork FY-2014 Q1 500 Q2 600 Q3 500 Q4 1100&lt;BR /&gt;15620 London FY-2015 Q1 450 Q2 700 Q3 300 Q4 400&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;stringid stringidentifier Fiscalyear Quarter salesvolume&lt;BR /&gt;14360 Newyork FY-2014 Q1 values&lt;BR /&gt;14360 Newyork FY-2014 Q2 values&lt;BR /&gt;14360 Newyork FY-2014 Q3 values&lt;BR /&gt;14360 Newyork FY-2014 Q4 values&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Aug 2018 04:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239672#M27403</guid>
      <dc:creator>Prasanna3</dc:creator>
      <dc:date>2018-08-26T04:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239673#M27404</link>
      <description>tMap to group your data by Qx value then tNormalize&lt;BR /&gt;or&lt;BR /&gt;tMap full joined to table of 4 row (Q1 Q2 Q3 Q4) to split row in line&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2018 09:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239673#M27404</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-27T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239674#M27405</link>
      <description>&lt;P&gt;There is no straight forward way to achieve normalization on multiple columns. So, to achieve what you want the solution needs to be tweaked.&lt;/P&gt; 
&lt;P&gt;Job Layout -&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlex-2.JPG" style="width: 668px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzUG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144111i0BEA5B38005A5033/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzUG.jpg" alt="0683p000009LzUG.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The tMap is basically concatenating the different &lt;SPAN&gt;Quartern salesvolumen&amp;nbsp;&lt;/SPAN&gt;columns into one -&amp;nbsp;&lt;SPAN&gt;Quarter&amp;nbsp; &amp;amp; SalesVolume respectively.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;row52.Quarter1 + ";" + row52.Quarter2 + ";" + row52.quarter3 + ";" + row52.quarter4

&amp;amp;

row52.salesvolume1 + ";" + row52.salesvolume2  + ";" +row52.salesvolume3 + ";" + row52.salesvolume4 &lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;Once done pass them through tFlowToIterate so that your two rows are iterated separately&amp;nbsp;and normalized accordingly. Once they are pushed to tJavaFlex the code would read them as once converted to array[] would iterate on each element and pass one row by row to output.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;// start part of your Java code
String QuarterNames = (String)globalMap.get("out14.Quarter");
String SalesVolumes = (String)globalMap.get("out14.SalesVolume");
String[] quarterArray = QuarterNames.split(";");
String[] salesVolumeArray = SalesVolumes.split(";");
for( int i = 0; i &amp;lt; quarterArray.length; i++) {      

// here is the main part of the component,
// a piece of code executed in the row
// loop
row56.stringid = out14.stringid;
row56.stringidentifier = out14.stringidentifier;
row56.Fiscalyear = out14.Fiscalyear;
row56.Quarter = quarterArray[i];
row56.SalesVolume = salesVolumeArray[i];
//System.out.println(quarterArray[i]);

// end of the component, outside/closing the loop
}&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;You could directly connect the tJavaFlex to your desired output component or if you want all of them to stored/displayed in a one shot then you could store them temporarily to tHashOutput and then read through tHashInput and display/write to the component (in my case tLogRow).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239674#M27405</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-08-29T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239675#M27406</link>
      <description>&lt;P&gt;Simple solution&lt;/P&gt; 
&lt;P&gt;tFileInputDelimiter--&amp;gt;tMap--&amp;gt;tNormalize--&amp;gt;tMap--&amp;gt;tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;In the first tMap you combine the fields with values to a one with a different field separator for the group_content_field.&lt;BR /&gt;e.g.&lt;SPAN&gt;group_content_field=&lt;/SPAN&gt;&amp;nbsp;row1.q1 + " " + row1.sv1 + "~" + row1.q2 + " " + row1.sv2&amp;nbsp; + "~" + row1.q3 + " " + row1.sv3 + "~" + row1.q4 + " " + row1.sv4&lt;/LI&gt; 
 &lt;LI&gt;In the tNormalize, split by the "~"&lt;/LI&gt; 
 &lt;LI&gt;In the next tMap split it by space and use the array index to populate the columns as needed.&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239675#M27406</guid>
      <dc:creator>Morpheus</dc:creator>
      <dc:date>2018-08-29T21:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239676#M27407</link>
      <description>You have already ask this question and got the answer here 
&lt;A href="https://community.qlik.com/s/feed/0D73p000004kUeKCAU#M82237" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Project-scenarios/m-p/131822#M82237&lt;/A&gt;</description>
      <pubDate>Wed, 29 Aug 2018 23:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239676#M27407</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-29T23:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239677#M27408</link>
      <description>Hi&lt;BR /&gt;I got the answer.but I will work on it and get back to you.</description>
      <pubDate>Thu, 30 Aug 2018 04:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2239677#M27408</guid>
      <dc:creator>Prasanna3</dc:creator>
      <dc:date>2018-08-30T04:20:01Z</dc:date>
    </item>
  </channel>
</rss>

