<?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: Labels for aliases for field names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083810#M641107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't possible to have to two field-names for one field. If you really want to keep the origin field-names within the enduser-reports you will need to translate them then with an expression - best practice is to use a 3-tier data architecture with generator --&amp;gt; datamodel --&amp;gt; report and change the fieldnames on the scriptend from datamodel or from report the origin field-names into user-friendly ones per rename-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above mentioned expression alternatively requirred an additionally table similar like a mapping table and could look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt; OriginFieldname = {'YourUsedField'}&amp;gt;} UserfriendlyFieldname) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe shortened per variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var:&lt;/P&gt;&lt;P&gt;only({&amp;lt; OriginFieldname = {$1}&amp;gt;} UserfriendlyFieldname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(var('YourUsedField'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you will need to write this probably very often and therefore it's best practice to use the userfriendly field-names already within the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 14:45:54 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-03-04T14:45:54Z</dc:date>
    <item>
      <title>Labels for aliases for field names</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083808#M641105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've googled myself to death on the interwebs and can't find any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of data that I import with field names for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field_abc&lt;BR /&gt;Field_def&lt;/P&gt;&lt;P&gt;Field_ghi&lt;/P&gt;&lt;P&gt;Field_jkl&lt;/P&gt;&lt;P&gt;...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I design the model using these original field names, however they don't mean anything much to the end user. So what I need is to assign user friendly labels that can be referenced in the headings and charts instead of these database fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current approach is to load an inline table where the original field name is specified as well as an alternative user friendly field like ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldNameAlternatives:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;_ORIGINALFIELDNAME,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _ALTERNATIVEFIELDNAME&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field_abc,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;BR /&gt;Field_def,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field_ghi,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field_jkl,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Segment&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...etc&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I can come right with a 'RENAME FIELDS USING FIELDMAP' process ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buuuuuut .... it REPLACES the original field name with the alternative field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally I won't mind, but in this case (and for future dynamic design), I need to RETAIN the original field name as well as the new alternative field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obvious answer is to do something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Field_abc AS Product,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field_def AS Country,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field_ghi AS Region,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Field_jkl AS Segment,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;etc....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But this balloons the data since I'm not allowed to drop the original field. I'm pretty sure I need to use an 'applymap' function, but I'm not getting it right.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any help or direction would be much appreciated!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083808#M641105</guid>
      <dc:creator />
      <dc:date>2016-03-03T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Labels for aliases for field names</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083809#M641106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be there is a good suggestion. I would do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Export all the Fields to the excel (use the for loop in script or $Field in front End)&lt;/P&gt;&lt;P&gt;2. Give the Meaningful name of the Field.&lt;/P&gt;&lt;P&gt;3. Load the Excel file.&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;4.&amp;nbsp; 'RENAME FIELDS USING FIELDMAP' process - &lt;STRONG&gt;In the End of the Script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5. Maintain the Excel Sheet (Whatever field added in the Script, Need to Add in Excel also)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 14:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083809#M641106</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-03-04T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Labels for aliases for field names</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083810#M641107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't possible to have to two field-names for one field. If you really want to keep the origin field-names within the enduser-reports you will need to translate them then with an expression - best practice is to use a 3-tier data architecture with generator --&amp;gt; datamodel --&amp;gt; report and change the fieldnames on the scriptend from datamodel or from report the origin field-names into user-friendly ones per rename-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above mentioned expression alternatively requirred an additionally table similar like a mapping table and could look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt; OriginFieldname = {'YourUsedField'}&amp;gt;} UserfriendlyFieldname) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe shortened per variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var:&lt;/P&gt;&lt;P&gt;only({&amp;lt; OriginFieldname = {$1}&amp;gt;} UserfriendlyFieldname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(var('YourUsedField'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you will need to write this probably very often and therefore it's best practice to use the userfriendly field-names already within the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 14:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083810#M641107</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-04T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Labels for aliases for field names</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083811#M641108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Settu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, but I managed to get that far already. The fields are ‘renamed’, which I don’t want. I want to keep the ‘new’ name as well as the ‘original’ field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 08:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-for-aliases-for-field-names/m-p/1083811#M641108</guid>
      <dc:creator />
      <dc:date>2016-03-08T08:06:42Z</dc:date>
    </item>
  </channel>
</rss>

