<?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: Create Multiple Excel Output Files on json attribute basis in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220529#M14889</link>
    <description>Split the input based on column value and you could reformat after tfixedflowinput&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://talendhowto.com/2017/10/27/how-to-split-file-depending-on-column-values-2/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://talendhowto.com/2017/10/27/how-to-split-file-depending-on-column-values-2/&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 01 Apr 2019 13:52:02 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-04-01T13:52:02Z</dc:date>
    <item>
      <title>Create Multiple Excel Output Files on json attribute basis</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220526#M14886</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am totally new for this data Integration process.&lt;/P&gt;
&lt;P&gt;I need to read API and convert that into multiple excel files depending upon the values of one particular attribute.&lt;BR /&gt;for example :&lt;/P&gt;
&lt;PRE&gt;{
id:1,
job:student,
Name:ABC,
Date:01,
year:2018
},
{id:1,
job:staff,
name:pr,
Date:02,
year:2019
},
{id:1,
job:student,
name:mys,
Date:01,
year:2019
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ideally it should create two excel files one named for student and other named for staff and this needs to be generic.&lt;BR /&gt;Number of excels should be generated on the basis of number of job types and that is not fixed.&lt;/P&gt;
&lt;P&gt;For now what I am doing is&lt;BR /&gt;rest-&amp;gt; extract fields-&amp;gt; map-&amp;gt; excel output&lt;/P&gt;
&lt;P&gt;my excel looks like :&lt;BR /&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp;name&amp;nbsp; &amp;nbsp; &amp;nbsp; job&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; period&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp;student&amp;nbsp; &amp;nbsp; JAN-2018&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;staff&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN-2019&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; mys&amp;nbsp; &amp;nbsp; &amp;nbsp; student&amp;nbsp; &amp;nbsp; JAN-2019&lt;/P&gt;
&lt;P&gt;expected is :&lt;BR /&gt;first excel&lt;BR /&gt;id&amp;nbsp; student&amp;nbsp; &amp;nbsp;period&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN-2018&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; mys&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN-2019&lt;/P&gt;
&lt;P&gt;second excel&lt;BR /&gt;id&amp;nbsp; &amp;nbsp; staff&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;period&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;pr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JAN-2018&lt;/P&gt;
&lt;P&gt;another way in single excel :&lt;BR /&gt;id&amp;nbsp; &amp;nbsp;staff&amp;nbsp; &amp;nbsp;student&amp;nbsp; &amp;nbsp; &amp;nbsp;period&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN-2018&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mys&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN-2019&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; pr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JAN-2018&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I maybe doing something wrong.&lt;BR /&gt;please let me know if I can do anything to work it as expected.&lt;BR /&gt;In simple words one column needs to header and other to be value of it. and condition on basis of which it can create new row for new job profile.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 12:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220526#M14886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-01T12:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple Excel Output Files on json attribute basis</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220527#M14887</link>
      <description>Output in one excel would be easier as you have to just change the tmap to populate output like you want&lt;BR /&gt;&lt;BR /&gt;Define output scgema as&lt;BR /&gt;Id staff student period&lt;BR /&gt;&lt;BR /&gt;Staff = if inputjobname is “staff” then inputname else -&lt;BR /&gt;Student = if inputjobname is “student” then inputname else -</description>
      <pubDate>Mon, 01 Apr 2019 12:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220527#M14887</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-01T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple Excel Output Files on json attribute basis</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220528#M14888</link>
      <description>job profile is dynamic it can be student staff worker anything which comes dynamically in API</description>
      <pubDate>Mon, 01 Apr 2019 12:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220528#M14888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-01T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple Excel Output Files on json attribute basis</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220529#M14889</link>
      <description>Split the input based on column value and you could reformat after tfixedflowinput&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://talendhowto.com/2017/10/27/how-to-split-file-depending-on-column-values-2/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://talendhowto.com/2017/10/27/how-to-split-file-depending-on-column-values-2/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Apr 2019 13:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220529#M14889</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-01T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Multiple Excel Output Files on json attribute basis</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220530#M14890</link>
      <description>&lt;P&gt;Hello ani11,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can achieve this by generating files with a different name. In this case add the "job" in the fileName.&lt;/P&gt;
&lt;P&gt;In attachment a printscreen of the data integration job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First save your api response in your cache by using a tHashOutput.&lt;/P&gt;
&lt;P&gt;Then loop over every record and save it to the correct file. (The iterator will decrease your performance.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kr,&lt;/P&gt;
&lt;P&gt;Jelle&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;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lv5R"&gt;Screenshot_1.png&lt;/A&gt;</description>
      <pubDate>Mon, 01 Apr 2019 15:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Multiple-Excel-Output-Files-on-json-attribute-basis/m-p/2220530#M14890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-01T15:04:24Z</dc:date>
    </item>
  </channel>
</rss>

