<?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: Segmentation of Data in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Segmentation-of-Data/m-p/2373968#M136629</link>
    <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;My idea is to iterate each rows and extract the year, month number from the Start_date column, store these value to context variables, the output file path will be dynamic, like:&lt;/P&gt;&lt;P&gt;"D:/file_path/"+context.year_directory+"/"+context.month_directory+"/file_name.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job looks like:&lt;/P&gt;&lt;P&gt;tFileInputExcel--main--tFlowToIterate--iterate--tjava--oncomponent--tFixedFlowInput--main--tFileOutputDelimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the 'Create directory if it does not exist' box in the advanced settings tab of tFileOutputDelimited. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 09:43:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-13T09:43:17Z</dc:date>
    <item>
      <title>Segmentation of Data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Segmentation-of-Data/m-p/2373967#M136628</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have an excel sheet having a date column "Start_Date" and the values in it is like :&lt;/P&gt;&lt;P&gt;2010-01-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010-02-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2011-03-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to segment this data in the new file with below rules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) if the year is 2010, then create a new folder in the directory 2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if the month is 01, then create a new folder in the 2010 directory 01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that i need to create a file inside these folders like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the "Start_date" value is 2010-01-01, then create a file for data having "Start_date" like 2010-01-01 only inside directory 2010/01/&amp;lt;file_name&amp;gt;.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it and the solution I found is reading the data multiple times then finding unique values and so on, but is there any other fast way to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Segmentation-of-Data/m-p/2373967#M136628</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2024-11-16T01:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation of Data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Segmentation-of-Data/m-p/2373968#M136629</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;My idea is to iterate each rows and extract the year, month number from the Start_date column, store these value to context variables, the output file path will be dynamic, like:&lt;/P&gt;&lt;P&gt;"D:/file_path/"+context.year_directory+"/"+context.month_directory+"/file_name.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job looks like:&lt;/P&gt;&lt;P&gt;tFileInputExcel--main--tFlowToIterate--iterate--tjava--oncomponent--tFixedFlowInput--main--tFileOutputDelimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the 'Create directory if it does not exist' box in the advanced settings tab of tFileOutputDelimited. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Segmentation-of-Data/m-p/2373968#M136629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T09:43:17Z</dc:date>
    </item>
  </channel>
</rss>

