<?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: Find Number of Columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841691#M657786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script after you've loaded the excel file then use NoOfFields() function'&lt;/P&gt;&lt;P&gt;So in script below, vFieldNo in UI will give you the number of columns in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from ExcelSource&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; LET &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFieldNo&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfFields&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('MyTable'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 12:02:44 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2015-05-12T12:02:44Z</dc:date>
    <item>
      <title>Find Number of Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841690#M657784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to find out the number of columns present in an excel sheet in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841690#M657784</guid>
      <dc:creator />
      <dc:date>2015-05-12T11:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find Number of Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841691#M657786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script after you've loaded the excel file then use NoOfFields() function'&lt;/P&gt;&lt;P&gt;So in script below, vFieldNo in UI will give you the number of columns in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from ExcelSource&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; LET &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFieldNo&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfFields&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('MyTable'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841691#M657786</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-05-12T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find Number of Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841692#M657787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecNo() as RawNo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841692#M657787</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-05-12T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find Number of Columns</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841693#M657788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NoOfFields('table_name')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return the number of column last loaded in the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Number-of-Columns/m-p/841693#M657788</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:16:59Z</dc:date>
    </item>
  </channel>
</rss>

