<?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: Dynamic Label name change in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223628#M390911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you can apply labels to field names, I don't think it is possible&amp;nbsp; to do it the way you suggest. It is fairly easy to rename the fields in the load script. Build a mapping table of the old and new names (fo example, in a spreadsheet), load this mapping and use the rename option &lt;STRONG&gt;Rename Fields Using MapTable.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 05:17:03 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-02-20T05:17:03Z</dc:date>
    <item>
      <title>Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223626#M390909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't know if this is possible in Qlik but I like to ask anyway.&lt;/P&gt;&lt;P&gt;I am trying to write a lable expression that I can use to change th&lt;/P&gt;&lt;P&gt;e field name&lt;BR /&gt;dynamically inside the table&lt;/P&gt;&lt;P&gt;I have a lot of fields to display and they all have 'OLD_' in front of them.&lt;BR /&gt;in the Label box can I write something like =Subfield(getthefield(),'OLD_',2)&lt;/P&gt;&lt;P&gt;so I can just paste it in all the label boxes.&lt;/P&gt;&lt;P&gt;any suggestion is welcomed.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" height="657" src="https://community.qlik.com/legacyfs/online/153672_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" width="954" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 02:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223626#M390909</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-20T02:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223627#M390910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is possible when you try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SubField('Old_Item','_',-1) //Here, this is complex and kills the performance. Why not simply Item on label. Any problem over here&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, This is very typical to write for all Dimensions, I would love to use Script level using Preceding load via All field to single field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 02:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223627#M390910</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-20T02:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223628#M390911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you can apply labels to field names, I don't think it is possible&amp;nbsp; to do it the way you suggest. It is fairly easy to rename the fields in the load script. Build a mapping table of the old and new names (fo example, in a spreadsheet), load this mapping and use the rename option &lt;STRONG&gt;Rename Fields Using MapTable.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223628#M390911</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-02-20T05:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223629#M390912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Reason I am not using the applymap is because I am getting the field names after Using Qualify&amp;nbsp; on multiple qvd load.&lt;/P&gt;&lt;P&gt;These are big tables so it takes awhile to rename the fields manually. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we applymap after Qualify *; ?&lt;/P&gt;&lt;P&gt;What is the best ways to rename fields back to their filebasename after Using Applymap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 06:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223629#M390912</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-20T06:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223630#M390913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil ,&lt;/P&gt;&lt;P&gt;I need something generic that could be applied to all the dimensions because I have many of them .&lt;/P&gt;&lt;P&gt;I think it is not possible at this stage. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try the apply map suggested by Jonathan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223630#M390913</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-20T08:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223631#M390914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a little script to do this in the load script, the only thing you have to remember is that you can not rename key fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14875788829817695 jive_text_macro" jivemacro_uid="_14875788829817695" modifiedtitle="true"&gt;
&lt;P&gt;For vTable = 0 to NoOfTables() -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Let vTableName = TableName(vTable);&lt;/P&gt;
&lt;P&gt;For f = 1 to NoOfFields('$(vTableName)')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldOld = FieldName($(f),'$(vTableName)');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldNew = Replace('$(vFieldOld)','$(vTableName)'&amp;amp;'.','');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RENAME FIELD $(vFieldOld) to $(vFieldNew);&lt;/P&gt;
&lt;P&gt;Next f; &lt;/P&gt;
&lt;P&gt;Next ;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223631#M390914</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-02-20T08:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223632#M390915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Adam I'll give this a shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223632#M390915</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-20T08:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223633#M390916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just pondering this, you could always reverse this instead of qualifying in the first place, then you can work around the key fields issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example you'd have to run this after each table load to do the 'qualifying', this code assumes your key fields are prefixed 'KEY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14875796210494874 jive_text_macro" jivemacro_uid="_14875796210494874" modifiedtitle="true"&gt;
&lt;P&gt;Load table1 blah;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Let vTableName = TableName(&lt;SPAN style="font-size: 13.3333px;"&gt;table1&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;For f = 1 to NoOfFields('$(vTableName)')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldOld = FieldName($(f),'$(vTableName)');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldNew = '$(vTableName).&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;$(vFieldOld)&lt;/SPAN&gt;';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left('$(f)',3)&amp;lt;&amp;gt;'KEY') then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RENAME FIELD $(vFieldOld) to $(vFieldNew);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Next f;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then at the end just run the original script:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14875796267927920 jive_text_macro" jivemacro_uid="_14875796267927920"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For vTable = 0 to NoOfTables() -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Let vTableName = TableName(vTable);&lt;/P&gt;
&lt;P&gt;For f = 1 to NoOfFields('$(vTableName)')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldOld = FieldName($(f),'$(vTableName)');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldNew = Replace('$(vFieldOld)','$(vTableName)'&amp;amp;'.','');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left('$(f)',3)&amp;lt;&amp;gt;'KEY') then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RENAME FIELD $(vFieldOld) to $(vFieldNew);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Next f;&lt;/P&gt;
&lt;P&gt;Next ;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223633#M390916</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-02-20T08:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223634#M390917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Adam this second suggestion works my scenario. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223634#M390917</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-02-20T08:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223635#M390918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'OLD_' &amp;amp;''&amp;amp;&amp;nbsp; 'Field_name'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223635#M390918</guid>
      <dc:creator>eromiyasimon</dc:creator>
      <dc:date>2017-02-20T08:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label name change</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223636#M390919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, please don't forget to mark the correct answer so it helps people in the future who might come across this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 10:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Label-name-change/m-p/1223636#M390919</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-02-20T10:40:11Z</dc:date>
    </item>
  </channel>
</rss>

