<?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: Generate Sample Data from Excel Input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294589#M67452</link>
    <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I have two excel sheets which look like shown in the provided images.&lt;BR /&gt;Now I want to join them more or les randomly. Aircrafts which have an x in the long_haul_ac column should be joined with 1-2 flights from the flight plan. Aircrafts which do not have the x should be joined with 4-6 (short haul) flights from the flight plans.&lt;BR /&gt;So in the end there should be several rows containing the same ac_reg but different information from flight plan.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Could you please paste the expected result into forum so that we can get it more precisely.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Tue, 08 Oct 2013 04:19:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-08T04:19:29Z</dc:date>
    <item>
      <title>Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294588#M67451</link>
      <description>Hello folks, 
&lt;BR /&gt;I'm new to TOS and need some feedback. 
&lt;BR /&gt;I have two excel sheets which look like shown in the provided images. 
&lt;BR /&gt;Now I want to join them more or les randomly. Aircrafts which have an x in the long_haul_ac column should be joined with 1-2 flights from the flight plan. Aircrafts which do not have the x should be joined with 4-6 (short haul) flights from the flight plans. 
&lt;BR /&gt;So in the end there should be several rows containing the same ac_reg but different information from flight plan. 
&lt;BR /&gt;I started by separting long and short haul aircrafts and flights with the filter step. But then I don't know how to iterate over the airplanes. what i want is something like this: 
&lt;BR /&gt;foreach(airplane in airplanes) 
&lt;BR /&gt; if(airplane == shorthaul){ 
&lt;BR /&gt; loop(Numeric.random(1,4) 
&lt;BR /&gt; join with random shorthaul flight 
&lt;BR /&gt; else 
&lt;BR /&gt; loop(Numeric.random(1,2) 
&lt;BR /&gt; join with random longhaul flight 
&lt;BR /&gt;But the forEach Component seems not to be sufficient for my problem. 
&lt;BR /&gt;Thanks in advance and kind regards 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBN3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135979i2F9DCB550DFB4CDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBN3.png" alt="0683p000009MBN3.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBN8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152517i31747F813D8CC861/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBN8.png" alt="0683p000009MBN8.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 04 Oct 2013 12:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294588#M67451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-04T12:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294589#M67452</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I have two excel sheets which look like shown in the provided images.&lt;BR /&gt;Now I want to join them more or les randomly. Aircrafts which have an x in the long_haul_ac column should be joined with 1-2 flights from the flight plan. Aircrafts which do not have the x should be joined with 4-6 (short haul) flights from the flight plans.&lt;BR /&gt;So in the end there should be several rows containing the same ac_reg but different information from flight plan.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Could you please paste the expected result into forum so that we can get it more precisely.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Oct 2013 04:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294589#M67452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-08T04:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294590#M67453</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi, &lt;BR /&gt; 
     &lt;BLOCKQUOTE&gt; 
      &lt;TABLE border="1"&gt; 
       &lt;TBODY&gt; 
        &lt;TR&gt; 
         &lt;TD&gt;I have two excel sheets which look like shown in the provided images.&lt;BR /&gt;Now I want to join them more or les randomly. Aircrafts which have an x in the long_haul_ac column should be joined with 1-2 flights from the flight plan. Aircrafts which do not have the x should be joined with 4-6 (short haul) flights from the flight plans.&lt;BR /&gt;So in the end there should be several rows containing the same ac_reg but different information from flight plan.&lt;/TD&gt; 
        &lt;/TR&gt; 
       &lt;/TBODY&gt; 
      &lt;/TABLE&gt; 
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Could you please paste the expected result into forum so that we can get it more precisely.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Sabrina, 
&lt;BR /&gt;sorry for my very late response but other projects forced me to delay my Talend Project 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;The uploaded Image will show how my expected result looks like. 
&lt;BR /&gt;As you can see, it consists of the informations from the both provided tables, randomly joined. The only constraint is, that longhaul flights are joined with longhaul planes. 
&lt;BR /&gt;The landing_date_time will be calculated in a tMap so that we will have some more or less realistic delays... 
&lt;BR /&gt;I also added what I tried until right now. But there are two problems now with my approach: 
&lt;BR /&gt;1. I can't connect "get_random_longhaul_flight" and the "map_lonhauls" step in order to join my filtered longhaul flights and plans. 
&lt;BR /&gt;2. From the filter step I only get 1 row. I somehow have to iterate over this step fpr several times?! 
&lt;BR /&gt;This Talend Job is supposed to be run daily, providing different output. The data should be the base for doing some example analytics. 
&lt;BR /&gt;Thanks &amp;amp; Regards 
&lt;BR /&gt;PS: The restrictions for images are ridicolous, sorry... 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBND.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154288i952316853F58146D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBND.jpg" alt="0683p000009MBND.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBNI.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132533i25147A45972E14EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBNI.jpg" alt="0683p000009MBNI.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 11 Nov 2013 08:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294590#M67453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-11T08:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294591#M67454</link>
      <description>Ok, since I didn't manage to get the data the way I wanted from Excel, I choose another way. 
&lt;BR /&gt;I put possible values in a GenerateRow String fild as a list, where they are randomly picked from. Now I have one question: Is it possible that a value from such a list is just picked once? Like doing a pop from an array instead of referencing a field of it? I know I could write some custom code but I want to stick to standard functions if possible. 
&lt;BR /&gt;Saying I have the following values for a String field: 
&lt;BR /&gt;"ED100","ED101","ED110","ED111","ED120","ED121","ED130" 
&lt;BR /&gt;In a generate Row Step, I want that one of the values is picked from that list randomly, but only once!!! For the next row, it must be given that the same value can not be choosen again! 
&lt;BR /&gt;Thanks &amp;amp; Regards</description>
      <pubDate>Thu, 21 Nov 2013 09:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294591#M67454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-21T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294592#M67455</link>
      <description>Make four inputs:
&lt;BR /&gt;1. Write the 
&lt;B&gt;shorthaul flight times&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.
&lt;BR /&gt;2. Write the 
&lt;B&gt;longhaul flight times&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.
&lt;BR /&gt;3. Write 
&lt;B&gt;shorthaul planes&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.
&lt;BR /&gt;4. Write 
&lt;B&gt;longhaul planes&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.
&lt;BR /&gt;This ensures nothing is used more than a single time.</description>
      <pubDate>Thu, 21 Nov 2013 16:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294592#M67455</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2013-11-21T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294593#M67456</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Make four inputs:&lt;BR /&gt;1. Write the &lt;B&gt;shorthaul flight times&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.&lt;BR /&gt;2. Write the &lt;B&gt;longhaul flight times&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.&lt;BR /&gt;3. Write &lt;B&gt;shorthaul planes&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.&lt;BR /&gt;4. Write &lt;B&gt;longhaul planes&lt;/B&gt; to a delimited file and then use tFileInputFullRow to get one at a time.&lt;BR /&gt;This ensures nothing is used more than a single time.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi and thanks for your reply. The problem I see is, that this apporach does not include any randomness. Do you have an idea how to choose a random plane from the delimited file? Else my sample data will look to uniform...
&lt;BR /&gt;Kind regards</description>
      <pubDate>Fri, 22 Nov 2013 08:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294593#M67456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-22T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Sample Data from Excel Input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294594#M67457</link>
      <description>These components sound like they will do what you want:
&lt;BR /&gt;
&lt;B&gt;cIndexFile&lt;/B&gt;
&lt;BR /&gt;
&lt;A href="http://www.talendforge.org/exchange/?eid=195&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/?eid=195&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1&lt;/A&gt;
&lt;BR /&gt;
&lt;B&gt;cIndexedFilesInput&lt;/B&gt;
&lt;BR /&gt;
&lt;A href="http://www.talendforge.org/exchange/?eid=196&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/?eid=196&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1&lt;/A&gt;
&lt;BR /&gt;Here are the instructions on how to install the custom components:
&lt;BR /&gt;
&lt;A href="https://help.talend.com/search/all?query=Installing+a+custom+component&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Installing+a+custom+component&amp;amp;content-lang=en&lt;/A&gt;</description>
      <pubDate>Fri, 22 Nov 2013 22:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-Sample-Data-from-Excel-Input/m-p/2294594#M67457</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2013-11-22T22:30:32Z</dc:date>
    </item>
  </channel>
</rss>

