<?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 Setting Dynamic Field Names in Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240892#M91347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a new application that has lots of fields.This application will be used by different companies who like to set their own labels. So, I'd like to have a text file or excel spreadsheet that would allow an end user to create their own labels &amp;amp; have everything be read in correctly. Has anyone done anything like this? I've taken a stab at starting something but the FieldValue function isn't doing what I expect.&lt;/P&gt;&lt;P&gt;FieldLabels:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; LABEL_NAME, LABEL_TEXT&lt;BR /&gt; FIELD1_LABEL, myField1Label&lt;BR /&gt; FIELD2_LABEL, myField2Label&lt;BR /&gt; FIELD3_LABEL, myField3Label&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;FactTable:&lt;BR /&gt;LOAD FIELD1 as FieldValue('FIELD1_LABEL', 1),&lt;BR /&gt; FIELD2,&lt;BR /&gt; FIELD3&lt;BR /&gt;FROM&lt;BR /&gt;testdata.xls&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;Any ideas how I can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 03:02:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-07T03:02:25Z</dc:date>
    <item>
      <title>Setting Dynamic Field Names in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240892#M91347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a new application that has lots of fields.This application will be used by different companies who like to set their own labels. So, I'd like to have a text file or excel spreadsheet that would allow an end user to create their own labels &amp;amp; have everything be read in correctly. Has anyone done anything like this? I've taken a stab at starting something but the FieldValue function isn't doing what I expect.&lt;/P&gt;&lt;P&gt;FieldLabels:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; LABEL_NAME, LABEL_TEXT&lt;BR /&gt; FIELD1_LABEL, myField1Label&lt;BR /&gt; FIELD2_LABEL, myField2Label&lt;BR /&gt; FIELD3_LABEL, myField3Label&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;FactTable:&lt;BR /&gt;LOAD FIELD1 as FieldValue('FIELD1_LABEL', 1),&lt;BR /&gt; FIELD2,&lt;BR /&gt; FIELD3&lt;BR /&gt;FROM&lt;BR /&gt;testdata.xls&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;Any ideas how I can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 03:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240892#M91347</guid>
      <dc:creator />
      <dc:date>2011-03-07T03:02:25Z</dc:date>
    </item>
    <item>
      <title>Setting Dynamic Field Names in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240893#M91348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use fieldname in the fieldvalue function....use like fieldvalue('LABEL_NAME',1)&lt;/P&gt;&lt;P&gt;I hope it will help you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 07:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240893#M91348</guid>
      <dc:creator />
      <dc:date>2011-03-07T07:17:48Z</dc:date>
    </item>
    <item>
      <title>Setting Dynamic Field Names in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240894#M91349</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;If your no of Labels are very less then you can use the method applied in the attach application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 08:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240894#M91349</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-03-07T08:27:33Z</dc:date>
    </item>
    <item>
      <title>Setting Dynamic Field Names in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240895#M91350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Use the following code according to yours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;FieldLabelsMap:MAPPING LOAD * INLINE [ LABEL_NAME, LABEL_TEXT FIELD1_LABEL, "myField1Label" FIELD2_LABEL, "myField2Label" FIELD3_LABEL, "myField3Label"]; FactTable: // Dummy data, replace for actual tableLOAD Rand() * 10 AS FIELD1_LABEL, Rand() * 5 AS FIELD2_LABEL, Rand() * 15 AS FIELD3_LABELAUTOGENERATE 200; RENAME FIELDS USING FieldLabelsMap;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 09:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240895#M91350</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-07T09:57:49Z</dc:date>
    </item>
    <item>
      <title>Setting Dynamic Field Names in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240896#M91351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a similar problem and used a variation of the method shown..... My requirement came from creating a Hierarchy table and I wanted a bit more flexiblity as to the number of fields I wanted to change.....&lt;/P&gt;&lt;P&gt;// ******************** Generate Hierachy ********************&lt;BR /&gt;Location_Hierarchy:&lt;BR /&gt;Hierarchy (LocationID,ParentLocationID,LocationName)LOAD&lt;BR /&gt; LocationID,&lt;BR /&gt; LocationName, // &amp;lt;&amp;lt; Field dropped afterwards as not required&lt;BR /&gt; ParentLocationID&lt;BR /&gt;Resident Location;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// ******************** The table below is used to change the feild name (LocationName#) above to the correct lables from a previously loaded table ([LocationLevel]) containing the right lable in the 'LocationLevelName' field&lt;/P&gt;&lt;P&gt;Let vLocationLevelRowCount = NoOfRows('LocationLevel'); // Count the records in LocationLevel table. This will be used to rename the feild headers.&lt;/P&gt;&lt;P&gt;FieldLabelsMap:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt; 'LocationName' &amp;amp; RowNo() as LableName,&lt;BR /&gt; peek('LocationLevelName',RowNo()-1,'LocationLevel') as LableText&lt;BR /&gt;AutoGenerate vLocationLevelRowCount;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RENAME FIELDS USING FieldLabelsMap; // &amp;lt;&amp;lt;&amp;lt; This renames the failes in Location_Hierarchy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Dynamic-Field-Names-in-Load/m-p/240896#M91351</guid>
      <dc:creator />
      <dc:date>2011-05-02T13:31:37Z</dc:date>
    </item>
  </channel>
</rss>

