<?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: count columns in excel in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294214#M67115</link>
    <description>The Excel file is as below
&lt;BR /&gt;---------------------------------
&lt;BR /&gt;CPT ICDCOVERED
&lt;BR /&gt;87088 003.1
&lt;BR /&gt; 038.0, 038.10-038.11, 038.19, 038.2, 038.3, 038.40-038.44, 038.49, 038.8, 038.9
&lt;BR /&gt; 276.2
&lt;BR /&gt; 276.4
&lt;BR /&gt; 286.6
&lt;BR /&gt; 288
&lt;BR /&gt; 288.01
&lt;BR /&gt; 288.02
&lt;BR /&gt; 288.03
&lt;BR /&gt; 288.04
&lt;BR /&gt; 288.09
&lt;BR /&gt; 288.8
&lt;BR /&gt; 306.53
&lt;BR /&gt; 306.59
&lt;BR /&gt; 518.82
&lt;BR /&gt; 570
&lt;BR /&gt; 580.0-580.9
&lt;BR /&gt; 583.0-583.9
&lt;BR /&gt;
&lt;BR /&gt;My input is Excel file (attached)
&lt;BR /&gt;The Expected Output is to load the values into temp table (SQL SERVER).
&lt;BR /&gt;I am attaching the Excel file, the values in the first column "CPT" and the values in the second cloumn ICDCOVERED , I need to load these values.
&lt;BR /&gt;The first cloumn and the second cloumn have 1 to many relationship,
&lt;BR /&gt;Problem 1:
&lt;BR /&gt;In the Excel file when does not a value in the first column, that it show continue to load the data until it comes across the next value.
&lt;BR /&gt;Problem 2:
&lt;BR /&gt;In the second column (ICDCOVERED), some cell values are individual values like
&lt;BR /&gt;(003.1), some cells have multiple values like (606.02, 607.01) and some cells have values ranges for example: (503.02-503.09).
&lt;BR /&gt;
&lt;BR /&gt;My objective is to load the data one value in each row of the temp table, when it is multiple values in the cloumn it should load values into seperate records, and when it is a range it should query the range from the database table get the range of values and load the values into seperate records in the Temp Table, this is regarding the ICDCOVERED colum of the Excel file.
&lt;BR /&gt;Now for the CPT column of the Excel file it should maitain the 1-many relationship
&lt;BR /&gt;while loading the data.
&lt;BR /&gt;Hope I am clear now.
&lt;BR /&gt;I am really not able undersatnd the way I can accomplish this.
&lt;BR /&gt;Sorry I am not able to pose this question on the forum, I am confused where I have to type
&lt;BR /&gt;my question in the forum.
&lt;BR /&gt;Please I would appreciate if you can reply back to this e-mail address.
&lt;BR /&gt;Ali</description>
    <pubDate>Thu, 27 Oct 2011 13:42:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-10-27T13:42:34Z</dc:date>
    <item>
      <title>count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294206#M67107</link>
      <description>how can i do to retrive the number of columxn readed in a excel file ? i saw TFileRowCount but not the column count...</description>
      <pubDate>Sat, 16 Nov 2024 12:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294206#M67107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294207#M67108</link>
      <description>Hi Pellegrino,
&lt;BR /&gt;With a little bit of simple coding. Just use a tFileExcelInput and set only one column as dynamic type.
&lt;BR /&gt;Then using the dynamic type functions you should be able to count the number of columns that it retrieved.</description>
      <pubDate>Tue, 18 Oct 2011 13:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294207#M67108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-18T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294208#M67109</link>
      <description>thank you vgalopin, 
&lt;BR /&gt;but where should i set dynamic coloumns? 
&lt;BR /&gt;in the component-&amp;gt; dynamic settings i have all buttons disabled. is becouse i'm using the TOS?</description>
      <pubDate>Tue, 18 Oct 2011 13:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294208#M67109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-18T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294209#M67110</link>
      <description>Just edit the schema of the component, and add one column, and for type choose Dynamic.</description>
      <pubDate>Tue, 18 Oct 2011 14:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294209#M67110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-18T14:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294210#M67111</link>
      <description>maybe i'm noob, but i cant find the option dynamic on the type of the column..&lt;BR /&gt;are you using the TIS? i have the tos...</description>
      <pubDate>Wed, 19 Oct 2011 11:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294210#M67111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-19T11:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294211#M67112</link>
      <description>Oh... yes...</description>
      <pubDate>Wed, 19 Oct 2011 14:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294211#M67112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-19T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294212#M67113</link>
      <description>so is not possible to cout the column of a file with the tos? -.-"</description>
      <pubDate>Wed, 19 Oct 2011 16:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294212#M67113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-19T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294213#M67114</link>
      <description>Actually you could, but you would have to type some java code for that. 
&lt;BR /&gt;See some info here:
&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/6663367/how-to-count-the-number-of-columns-in-excel-file-that-are-occupied-by-data-usin" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/6663367/how-to-count-the-number-of-columns-in-excel-file-that-are-occupied-by-data-usin&lt;/A&gt;
&lt;BR /&gt;
&lt;A href="http://www.dreamincode.net/forums/topic/182398-using-excel-java-excel-api/" rel="nofollow noopener noreferrer"&gt;http://www.dreamincode.net/forums/topic/182398-using-excel-java-excel-api/&lt;/A&gt;
&lt;BR /&gt;You can load the library needed using the tLibraryLoad component</description>
      <pubDate>Wed, 19 Oct 2011 16:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294213#M67114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-19T16:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294214#M67115</link>
      <description>The Excel file is as below
&lt;BR /&gt;---------------------------------
&lt;BR /&gt;CPT ICDCOVERED
&lt;BR /&gt;87088 003.1
&lt;BR /&gt; 038.0, 038.10-038.11, 038.19, 038.2, 038.3, 038.40-038.44, 038.49, 038.8, 038.9
&lt;BR /&gt; 276.2
&lt;BR /&gt; 276.4
&lt;BR /&gt; 286.6
&lt;BR /&gt; 288
&lt;BR /&gt; 288.01
&lt;BR /&gt; 288.02
&lt;BR /&gt; 288.03
&lt;BR /&gt; 288.04
&lt;BR /&gt; 288.09
&lt;BR /&gt; 288.8
&lt;BR /&gt; 306.53
&lt;BR /&gt; 306.59
&lt;BR /&gt; 518.82
&lt;BR /&gt; 570
&lt;BR /&gt; 580.0-580.9
&lt;BR /&gt; 583.0-583.9
&lt;BR /&gt;
&lt;BR /&gt;My input is Excel file (attached)
&lt;BR /&gt;The Expected Output is to load the values into temp table (SQL SERVER).
&lt;BR /&gt;I am attaching the Excel file, the values in the first column "CPT" and the values in the second cloumn ICDCOVERED , I need to load these values.
&lt;BR /&gt;The first cloumn and the second cloumn have 1 to many relationship,
&lt;BR /&gt;Problem 1:
&lt;BR /&gt;In the Excel file when does not a value in the first column, that it show continue to load the data until it comes across the next value.
&lt;BR /&gt;Problem 2:
&lt;BR /&gt;In the second column (ICDCOVERED), some cell values are individual values like
&lt;BR /&gt;(003.1), some cells have multiple values like (606.02, 607.01) and some cells have values ranges for example: (503.02-503.09).
&lt;BR /&gt;
&lt;BR /&gt;My objective is to load the data one value in each row of the temp table, when it is multiple values in the cloumn it should load values into seperate records, and when it is a range it should query the range from the database table get the range of values and load the values into seperate records in the Temp Table, this is regarding the ICDCOVERED colum of the Excel file.
&lt;BR /&gt;Now for the CPT column of the Excel file it should maitain the 1-many relationship
&lt;BR /&gt;while loading the data.
&lt;BR /&gt;Hope I am clear now.
&lt;BR /&gt;I am really not able undersatnd the way I can accomplish this.
&lt;BR /&gt;Sorry I am not able to pose this question on the forum, I am confused where I have to type
&lt;BR /&gt;my question in the forum.
&lt;BR /&gt;Please I would appreciate if you can reply back to this e-mail address.
&lt;BR /&gt;Ali</description>
      <pubDate>Thu, 27 Oct 2011 13:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294214#M67115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-27T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: count columns in excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294215#M67116</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to count no. of columns in the Excel file then please follow the below instructions.&lt;/P&gt;&lt;P&gt;1. Use tfileinputExcel component.&lt;/P&gt;&lt;P&gt;2. Add some basic instruction in the component with limit 1 but important is "Put one name in Schema 'excel_header' (You can use any name) and change its type to 'Dynamic' ". It will fetch the full row from the excel file.&lt;/P&gt;&lt;P&gt;3. Now Use second component 'tjavaRow'. Link your excel component through the 'main' row to tjavarow component.&lt;/P&gt;&lt;P&gt;4. Syn your schema in tjavarow component and put below mentioned code.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System.out.println("Counter ::: "+input_row.excel_heade.getColumnCount());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5. Now your job will count columns for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: You can store this counter value in any context variable and can use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/count-columns-in-excel/m-p/2294215#M67116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T08:31:57Z</dc:date>
    </item>
  </channel>
</rss>

