<?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 Field Name when Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131342#M752226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//Hi Denny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD @1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, explicit labels, table is Sheet1, filters(&lt;/P&gt;&lt;P&gt;Remove(Row, RowCnd(Interval, Pos(Top, 2), Pos(Bottom, 1), Select(1, 0))),&lt;/P&gt;&lt;P&gt;Transpose()&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vField1=peek('@1',0,'A');&lt;/P&gt;&lt;P&gt;Let vField2=peek('@1',1,'A');&lt;/P&gt;&lt;P&gt;Let vField3=peek('@1',2,'A');&lt;/P&gt;&lt;P&gt;Let vField4=peek('@1',3,'A');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD CalendarMonthNumber as [$(vField1)_ABC], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CalendarMonthName as [$(vField2)_ABC], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actuals as [$(vField3)_ABC], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Required Run Rate] as [$(vField4)_ABC]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table A, simply replace the path with your path and change the format if yours is different.&lt;/P&gt;&lt;P&gt;Then create variable depending on the number of fields you have, you can automate this also by using loop, I just build this in hurry &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;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 05:39:20 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2018-10-24T05:39:20Z</dc:date>
    <item>
      <title>Dynamic Field Name when Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131341#M752225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data table in excel like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Q1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216628_Q1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my expectation output should be like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Q2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/216629_Q2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the field name in Row 1 (in Picture 1 above) is dynamic, which means can be changed everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a script like this:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(A,'M/DD/YYYY') as [DATE__1FCPOX8], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(B,'0.00') as [VALUE__1FCPOX8], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(C,'M/DD/YYYY') as [DATE__1FCPOZ8], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(D,'0.00') as [VALUE__1FCPOZ8]&lt;/P&gt;&lt;P&gt;FROM [$(MySourcePath)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't covered a dynamic name field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any solutions about this case?&lt;/P&gt;&lt;P&gt;Thank you.&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/Dynamic-Field-Name-when-Load-Script/m-p/131341#M752225</guid>
      <dc:creator>dennysetiawan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field Name when Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131342#M752226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//Hi Denny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD @1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, explicit labels, table is Sheet1, filters(&lt;/P&gt;&lt;P&gt;Remove(Row, RowCnd(Interval, Pos(Top, 2), Pos(Bottom, 1), Select(1, 0))),&lt;/P&gt;&lt;P&gt;Transpose()&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vField1=peek('@1',0,'A');&lt;/P&gt;&lt;P&gt;Let vField2=peek('@1',1,'A');&lt;/P&gt;&lt;P&gt;Let vField3=peek('@1',2,'A');&lt;/P&gt;&lt;P&gt;Let vField4=peek('@1',3,'A');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD CalendarMonthNumber as [$(vField1)_ABC], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CalendarMonthName as [$(vField2)_ABC], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actuals as [$(vField3)_ABC], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Required Run Rate] as [$(vField4)_ABC]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table A, simply replace the path with your path and change the format if yours is different.&lt;/P&gt;&lt;P&gt;Then create variable depending on the number of fields you have, you can automate this also by using loop, I just build this in hurry &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;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 05:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131342#M752226</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-10-24T05:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field Name when Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131343#M752227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Denny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can try this solution:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dynamic_headers.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216630_dynamic_headers.png" style="height: 325px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 05:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131343#M752227</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-10-24T05:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Field Name when Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131344#M752228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like the solution you describe is almost correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this section:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vField1=peek('@1',0,'A');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vField2=peek('@1',1,'A');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vField3=peek('@1',2,'A');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vField4=peek('@1',3,'A');&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&gt;Could you bring the sample script to automate this by using loop? In case I have a large number of field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 10:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Field-Name-when-Load-Script/m-p/131344#M752228</guid>
      <dc:creator>dennysetiawan</dc:creator>
      <dc:date>2018-10-24T10:15:16Z</dc:date>
    </item>
  </channel>
</rss>

