<?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 Dynamic field renaming in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413757#M427293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have let say 3 QVDs .&lt;/P&gt;&lt;P&gt;qvdtable1&lt;/P&gt;&lt;P&gt;TYPE DATE&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;qvdtable1_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvdtable2&lt;/P&gt;&lt;P&gt;TYPE DATE&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;qvdtable2_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvdtable3&lt;/P&gt;&lt;P&gt;TYPE DATE&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;qvdtable3_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load all the QVDs&amp;nbsp; in one script but dynamically rename the &lt;SPAN style="color: #ff0000;"&gt;qvdtable*_ID&lt;SPAN style="color: #000000;"&gt; To ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How could this be achieved?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 02:38:43 GMT</pubDate>
    <dc:creator>didierodayo</dc:creator>
    <dc:date>2017-08-31T02:38:43Z</dc:date>
    <item>
      <title>Dynamic field renaming</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413757#M427293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have let say 3 QVDs .&lt;/P&gt;&lt;P&gt;qvdtable1&lt;/P&gt;&lt;P&gt;TYPE DATE&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;qvdtable1_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvdtable2&lt;/P&gt;&lt;P&gt;TYPE DATE&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;qvdtable2_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvdtable3&lt;/P&gt;&lt;P&gt;TYPE DATE&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;qvdtable3_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load all the QVDs&amp;nbsp; in one script but dynamically rename the &lt;SPAN style="color: #ff0000;"&gt;qvdtable*_ID&lt;SPAN style="color: #000000;"&gt; To ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How could this be achieved?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 02:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413757#M427293</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2017-08-31T02:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field renaming</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413758#M427294</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;Use &lt;STRONG&gt;Qualify&lt;/STRONG&gt; for dynamic renaming your fileds just Give tablename like Qvd1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Field name will display like&lt;STRONG&gt; Qvd1.ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 05:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413758#M427294</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-08-31T05:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field renaming</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413759#M427295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you want the FileName() function... This will return the full name of the file including .qvd extension. If the only number in the name is what you want to keep, simply use KeepChar() to purge everything but numbers from the name. Example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qvdtable$(KeepChar(FileName(),'0123456789')).ID as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;From qvdtable*.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you could loop through the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each vIteration In FileList('FileLocation\qvdtable*.qvd')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qvdtable$(vIteration).ID as ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;next vIteration;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;However you might have some issues if you don't have a sequential list of numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 07:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413759#M427295</guid>
      <dc:creator>sam_grounds</dc:creator>
      <dc:date>2017-08-31T07:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field renaming</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413760#M427296</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;I think Sam has given you excellent advice that looks like the correct answer to me. I just want to say that if you try another method like renaming after loading the tables you will have problems because QV won't allow you to change a field name to one that already exists in a resident table. If you know that already then apologies, I only mention it because I remember when I had an issue with that until I realised I was trying to do something QV wouldn't allow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 09:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-renaming/m-p/1413760#M427296</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-31T09:52:36Z</dc:date>
    </item>
  </channel>
</rss>

