<?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: Loading a QVD without the embedded labels in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-a-QVD-without-the-embedded-labels/m-p/1202672#M626956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OK so looks like with a bit of playing around and reading some other threads I have found the FieldName() Fumction that has solved my query and allowed me to create this loop below that is much more efficient for what I need.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE1&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;LOAD * FROM &lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"O:\Data\TABLE1.qvd"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Setting the Column number to start the process&lt;/P&gt;&lt;P&gt;SET vColumnNo = '0';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Start loop script that will continue until condition is met. */&lt;/P&gt;&lt;P&gt;Do until vColumnNo=NoOfFields('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE1&lt;/SPAN&gt;') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Set variable to increment*/&lt;/P&gt;&lt;P&gt;LET vColumnNo = $(vColumnNo)+1;&lt;/P&gt;&lt;P&gt;/*Set variable to pick column*/&lt;/P&gt;&lt;P&gt;LET vCalculatingColumn = FieldName($(vColumnNo),'$(vTable)');&lt;/P&gt;&lt;P&gt;/*Set variable to return the current Fieldname being used*/&lt;/P&gt;&lt;P&gt;LET vCalculatingColumnName = CHR(39)&amp;amp;FieldName($(vColumnNo),'$(vTable)')&amp;amp;CHR(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Action to carry out to pull the Values and field length against the FieldName*/&lt;/P&gt;&lt;P&gt;FieldData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Distinct&lt;/P&gt;&lt;P&gt;$(vCalculatingColumnName) as FieldName,&lt;/P&gt;&lt;P&gt;[$(vCalculatingColumn)] as FieldValues,&lt;/P&gt;&lt;P&gt;len([$(vCalculatingColumn)]) as FieldLength&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE1&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2016 14:24:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-07T14:24:10Z</dc:date>
    <item>
      <title>Loading a QVD without the embedded labels</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-QVD-without-the-embedded-labels/m-p/1202671#M626955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use Qlik as a tool to do analysis of our database set up and as part of that process I'm looking to pull in data from each of our tables and cycle through a series of checks and store the results against each of the Field names of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the list of fields in the table using the below code:&lt;/P&gt;&lt;P&gt;QvdFieldHeader:&lt;/P&gt;&lt;P&gt;LOAD FieldName&lt;/P&gt;&lt;P&gt;FROM "O:\Data\TABLE1.qvd" (XmlSimple, Table is [QvdTableHeader/Fields/QvdFieldHeader]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the loop that I use and that works if I import Excel data without labels is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*This Variable will act as the Benchmark for the test*/&lt;/P&gt;&lt;P&gt;SET vColumnNo = '1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*This Variable will be used to limit the loop cycle*/&lt;/P&gt;&lt;P&gt;LET vCalculatingColumn = '@'&amp;amp;$(vColumnNo);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Create first row of the table before starting the Loop. */&lt;/P&gt;&lt;P&gt;FieldTemp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Distinct $(vCalculatingColumn) as FieldValues,&lt;/P&gt;&lt;P&gt;len($(vCalculatingColumn)) as FieldLength&lt;/P&gt;&lt;P&gt;Resident TempData;&lt;/P&gt;&lt;P&gt;/*&amp;nbsp; Joining the Field Name&amp;nbsp; */&lt;/P&gt;&lt;P&gt;Left Join(FieldTemp)&lt;/P&gt;&lt;P&gt;FieldName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;FieldName as FieldName&lt;/P&gt;&lt;P&gt;Resident QvdFieldHeader where RowNo()=$(vColumnNo);&lt;/P&gt;&lt;P&gt;/* Create the table in which the data will be stored */&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FieldData:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident FieldTemp;&lt;/P&gt;&lt;P&gt;DROP Table FieldTemp;&lt;/P&gt;&lt;P&gt;/* Start loop script that will continue until condition is met. */&lt;/P&gt;&lt;P&gt;Do until vColumnNo=NoOfFields('TempData')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vColumnNo = $(vColumnNo)+1;&lt;/P&gt;&lt;P&gt;LET vCalculatingColumn = '@'&amp;amp;$(vColumnNo);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FieldTemp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Distinct $(vCalculatingColumn) as FieldValues,&lt;/P&gt;&lt;P&gt;len($(vCalculatingColumn)) as FieldLength&lt;/P&gt;&lt;P&gt;Resident TempData;&lt;/P&gt;&lt;P&gt;/*&amp;nbsp; Joining the Field Name&amp;nbsp; */&lt;/P&gt;&lt;P&gt;Left Join(FieldTemp)&lt;/P&gt;&lt;P&gt;FieldName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;FieldName as FieldName&lt;/P&gt;&lt;P&gt;Resident QvdFieldHeader where RowNo()=$(vColumnNo);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (FieldData)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident FieldTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Tables FieldTemp;&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way for me to set this to cycle through the QVD columns or do I need to store the excels of data which is much slower?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 10:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-QVD-without-the-embedded-labels/m-p/1202671#M626955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-05T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a QVD without the embedded labels</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-QVD-without-the-embedded-labels/m-p/1202672#M626956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OK so looks like with a bit of playing around and reading some other threads I have found the FieldName() Fumction that has solved my query and allowed me to create this loop below that is much more efficient for what I need.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE1&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;LOAD * FROM &lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"O:\Data\TABLE1.qvd"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Setting the Column number to start the process&lt;/P&gt;&lt;P&gt;SET vColumnNo = '0';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Start loop script that will continue until condition is met. */&lt;/P&gt;&lt;P&gt;Do until vColumnNo=NoOfFields('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE1&lt;/SPAN&gt;') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Set variable to increment*/&lt;/P&gt;&lt;P&gt;LET vColumnNo = $(vColumnNo)+1;&lt;/P&gt;&lt;P&gt;/*Set variable to pick column*/&lt;/P&gt;&lt;P&gt;LET vCalculatingColumn = FieldName($(vColumnNo),'$(vTable)');&lt;/P&gt;&lt;P&gt;/*Set variable to return the current Fieldname being used*/&lt;/P&gt;&lt;P&gt;LET vCalculatingColumnName = CHR(39)&amp;amp;FieldName($(vColumnNo),'$(vTable)')&amp;amp;CHR(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Action to carry out to pull the Values and field length against the FieldName*/&lt;/P&gt;&lt;P&gt;FieldData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Distinct&lt;/P&gt;&lt;P&gt;$(vCalculatingColumnName) as FieldName,&lt;/P&gt;&lt;P&gt;[$(vCalculatingColumn)] as FieldValues,&lt;/P&gt;&lt;P&gt;len([$(vCalculatingColumn)]) as FieldLength&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE1&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 14:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-QVD-without-the-embedded-labels/m-p/1202672#M626956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-07T14:24:10Z</dc:date>
    </item>
  </channel>
</rss>

