<?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: Renaming fields using variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207526#M877238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaswanth,&lt;/P&gt;&lt;P&gt;With this code you can generate the fields that you want and rename it. Only change MakeDate(2016,1,1) by your max date or the Today date.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14769705402614257" jivemacro_uid="_14769705402614257" modifiedtitle="true"&gt;
&lt;P&gt;LET vNumRows = 24;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 to $(vNumRows) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD 'Month $(i)' as Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;Next i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 to $(vNumRows) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMonthField = Peek('Month',$(i)-1,'Data');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataNames:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMonthField)' as MonthField,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Capitalize(Text(Date(AddMonths(MakeDate(2016,1,1),-($(i)-1)),'MMM. YY'))) as NewMonthField&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MappNames:&lt;/P&gt;
&lt;P&gt;Mapping &lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthField, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewMonthField &lt;/P&gt;
&lt;P&gt;RESIDENT DataNames;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RENAME Fields using MappNames;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Regards!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 13:36:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-20T13:36:06Z</dc:date>
    <item>
      <title>Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207517#M877229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to change the table fields value to logical months by using another field. Below is the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual Table contains a field name as below and Data month field always contains one specific Month value- '1/1/2016' in DD/MM/YYYY format.&lt;/P&gt;&lt;P&gt;Now I need to change the below columns accordingly. ie.., Month 1 should change to the value present in Data Month and Month 2 should be Data date-1 and so on till Month 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="224" style="border: 1px solid rgb(0, 0, 0); width: 207px; height: 187px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Table Fileds&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;I need&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Customer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Costomer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Address&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Address&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Data Month&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Data Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Month 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jan'16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Month 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dec'15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Month 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Nov'15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Month ...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Oct'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Month 24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jan'14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please guide me how to do this at the script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Jaswanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207517#M877229</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207518#M877230</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;Below link will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.learnallbi.com/renaming-fields-in-qlikview-using-mapping-load/" style="font-size: 10pt;" title="http://www.learnallbi.com/renaming-fields-in-qlikview-using-mapping-load/"&gt;http://www.learnallbi.com/renaming-fields-in-qlikview-using-mapping-load/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207518#M877230</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-10-20T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207519#M877231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you are calculating for I need??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the Month 1, Month 2, --- Month 24&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207519#M877231</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-20T09:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207520#M877232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaswanth,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If possible create Inline load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;else create a resident load with new column added&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207520#M877232</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-10-20T09:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207521#M877233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my requirement is something different to others. So, I cannot use mapping table because mapping table will be used for static column names. However, I need dynamic column names which will change in every run if Data date field has a new value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think Inline and Mapping table will be useful in this case. I need to pass Data Date value into a variable and need to write some loop type syntax. So, whenever there is a change in Data Date - the month's field names needs to be updated accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the needful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207521#M877233</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2016-10-20T09:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207522#M877234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beside the renaming topic I think you should consider &lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;‌ to get a "normal" data-structure - and if you used a crosstable you could create your period-values with an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;addmonths(makedate(2016, 1, 1), keepchar(YourPeriodField, '0123456789') * - 1) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207522#M877234</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-20T11:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207523#M877235</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;try this : &lt;/P&gt;&lt;P&gt;Month1 = MonthName(Date#([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Data month],'DD/MM/YYYY')&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;Month2 = &lt;SPAN style="font-size: 13.3333px;"&gt;MonthName(AddMonth(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Data month]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DD&lt;/SPAN&gt;/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MM&lt;/SPAN&gt;/YYYY'),-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month3 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MonthName(AddMonth(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Data month]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DD&lt;/SPAN&gt;/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MM&lt;/SPAN&gt;/YYYY'),-2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month24 = &lt;SPAN style="font-size: 13.3333px;"&gt;MonthName(AddMonth(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Data month]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DD&lt;/SPAN&gt;/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MM&lt;/SPAN&gt;/YYYY'),-23)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207523#M877235</guid>
      <dc:creator>t_moutault</dc:creator>
      <dc:date>2016-10-20T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207524#M877236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem we are facing - Row count of the table is around 50 million records and if we convert months to pivot down- the row count will increase to 50 million*24 =1 billion 200 million records which will impact on the performance of reports and can also crash the QlikView reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to handle this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jaswanth P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207524#M877236</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2016-10-20T12:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207525#M877237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need to try several ways to create your datamodel and to design your objects and expressions within the gui to find a solution which fits to your performance-requirements (especially because there are probably some more tables and requirements and maybe X concurrent user - anywhere (CPU, RAM, ...) you will have your biggest bottleneck which might force you to a solution which will generaly work but could be a nightmare of developing and maintaining them ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course to transform a big table of 50 M records per crosstable will take some time and RAM consumption (maybe the load could be sliced into several buckets and/or an incremental approach could be applied). Nevertheless this would be my first approach and I assume that aggregating 1200 M records over one single field would not perform slower than 50 M records over 24 fields - rather the opposite and the handling with one field is a lot easier as by 24 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207525#M877237</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-20T13:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207526#M877238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaswanth,&lt;/P&gt;&lt;P&gt;With this code you can generate the fields that you want and rename it. Only change MakeDate(2016,1,1) by your max date or the Today date.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14769705402614257" jivemacro_uid="_14769705402614257" modifiedtitle="true"&gt;
&lt;P&gt;LET vNumRows = 24;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 to $(vNumRows) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD 'Month $(i)' as Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;Next i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 to $(vNumRows) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMonthField = Peek('Month',$(i)-1,'Data');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataNames:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMonthField)' as MonthField,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Capitalize(Text(Date(AddMonths(MakeDate(2016,1,1),-($(i)-1)),'MMM. YY'))) as NewMonthField&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MappNames:&lt;/P&gt;
&lt;P&gt;Mapping &lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthField, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewMonthField &lt;/P&gt;
&lt;P&gt;RESIDENT DataNames;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RENAME Fields using MappNames;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Regards!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207526#M877238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-20T13:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming fields using variable</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207527#M877240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manuel, I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;t worked &lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaswanth P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-variable/m-p/1207527#M877240</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2016-10-21T15:38:34Z</dc:date>
    </item>
  </channel>
</rss>

