<?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: How to create dynamic field names in script.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-field-names-in-script/m-p/1023458#M925400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/883993"&gt;Re: Dynamic Field Name in Load Script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 10:27:01 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2016-03-31T10:27:01Z</dc:date>
    <item>
      <title>How to create dynamic field names in script..</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-field-names-in-script/m-p/1023457#M925399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields Unit_ID, Act_Code, and Trans_Amount.&lt;/P&gt;&lt;P&gt;Please look in to the pivaot table in the attachment. where for each activity code i need to create a separate column for transaction amount.&lt;/P&gt;&lt;P&gt;In the pivote table i have taken &lt;SPAN style="font-size: 13.3333px;"&gt;Unit_ID, Act_Code, as dimensions and Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;Trans_Amount&lt;/SPAN&gt;)&amp;nbsp; as expression. and dragged Up the field '&lt;SPAN style="font-size: 13.3333px;"&gt;Act_Code' so that table transforms each Activity code as separate columns. This functionality i need at script level. I need to calculate the no. of dynamic columns for each &lt;SPAN style="font-size: 13.3333px;"&gt;Activity code which holds the Transaction Amount for each Unit_ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;There are 9 Activity Codes including Blank records.So i need to calculate 9 columns at loading script. For the Blank record there should be also a column saying &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Trans_Amount_BLANK&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example there are few Activity codes say AA, A1. (Lets take 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to a separate field like &lt;STRONG&gt;Trans_Amount_A1,&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Trans_Amount_A2&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;this logic will repeat for all activity codes. NOTE: There are no Transaction Amounts for&amp;nbsp; Activity Code &lt;STRONG&gt;C2 , &lt;/STRONG&gt;So if there is no amount then we can ignore.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached the sample file with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suman&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/How-to-create-dynamic-field-names-in-script/m-p/1023457#M925399</guid>
      <dc:creator>dusasuman</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic field names in script..</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-field-names-in-script/m-p/1023458#M925400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/883993"&gt;Re: Dynamic Field Name in Load Script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-field-names-in-script/m-p/1023458#M925400</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-31T10:27:01Z</dc:date>
    </item>
  </channel>
</rss>

