<?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: Create variable from data fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319299#M840909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2017 00:54:44 GMT</pubDate>
    <dc:creator>mohdhaniff</dc:creator>
    <dc:date>2017-04-27T00:54:44Z</dc:date>
    <item>
      <title>Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319293#M840903</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;Please help me how to create variables from existing data in QlikView. I wish to have a list of value for '&lt;STRONG&gt;ReportMth&lt;/STRONG&gt;' = &lt;STRONG&gt;Rep&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD Distinct * Inline [&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rep&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01/04/2017&lt;/P&gt;&lt;P&gt;02/06/2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="color: #0000ff;"&gt;ReportMth&lt;/SPAN&gt; = &lt;SPAN style="color: #0000ff;"&gt;FieldValue&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;Rep,DATA&lt;/SPAN&gt;);&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/Create-variable-from-data-fields/m-p/1319293#M840903</guid>
      <dc:creator>mohdhaniff</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319294#M840904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which value you want to set as variable. May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;LET &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;ReportMth&lt;/SPAN&gt; = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;FieldValue&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Rep,1&lt;/SPAN&gt;); //This will return firstvalue from Rep field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319294#M840904</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-26T04:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319295#M840905</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 am getting blank result... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319295#M840905</guid>
      <dc:creator>mohdhaniff</dc:creator>
      <dc:date>2017-04-26T04:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319296#M840906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET a = FieldValue('Rep',1); // I've added single colon. Check in &lt;SPAN style="text-decoration: underline;"&gt;Ctrl + Alt + V&lt;/SPAN&gt; environment&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319296#M840906</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-26T04:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319297#M840907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil. Its work as my wish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As additional, can you recommend me how to get all value in &lt;STRONG&gt;Rep&lt;/STRONG&gt; listed into &lt;STRONG&gt;ReportMth &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319297#M840907</guid>
      <dc:creator>mohdhaniff</dc:creator>
      <dc:date>2017-04-26T04:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319298#M840908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Distinct * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rep&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/04/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/06/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//Script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET noRows = NoOfRows('DATA')-1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR i=0 to $(noRows)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vVar=FieldValue('Rep',$(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, '$(vVar)' as ReportMth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident DATA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next i;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Simple do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Distinct Rep, Rep as ReportMth Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rep&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/04/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/06/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 05:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319298#M840908</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-26T05:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable from data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319299#M840909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 00:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-variable-from-data-fields/m-p/1319299#M840909</guid>
      <dc:creator>mohdhaniff</dc:creator>
      <dc:date>2017-04-27T00:54:44Z</dc:date>
    </item>
  </channel>
</rss>

