<?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: script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script/m-p/1373212#M419443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Temp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; eid,ename,mname,mid&lt;BR /&gt; 1,sam,john,2&lt;BR /&gt; 2,john,xyz,3&lt;BR /&gt; 3,xyz,abc,4&lt;BR /&gt; 4,abc,acc,5]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;Lookup&lt;/SPAN&gt;('ename','eid',&lt;SPAN style="color: #800000;"&gt;mid&lt;/SPAN&gt;,'Temp') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NewColumn&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177031_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 09:54:42 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-09-19T09:54:42Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.qlik.com/t5/QlikView/script/m-p/1373209#M419440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the scenario , i want to get employee's manager's name in new columns. how can i achieve it in script&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177038_sample1.PNG" style="height: 130px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script/m-p/1373209#M419440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-19T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.qlik.com/t5/QlikView/script/m-p/1373210#M419441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a mapping table. Assuming that all intermediate managers are employees as well, everybody will occur once in the ename column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MapEmp2Mgr:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAPPING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ename, mname&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT OriginalTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use an applymap to translate the mname value into the managers name, like in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ApplyMap('MapEmp2Mgr', mname, '-') AS [new column],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this using ID's as well, but maybe you'll need an extra JOIN or Mapping Table to translate final manager ID's into manager names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script/m-p/1373210#M419441</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-19T09:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.qlik.com/t5/QlikView/script/m-p/1373211#M419442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to provide more information for meaningful help&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7538"&gt;Qlik Community Tip: Posting Successful Discussion Threads&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;Qlik Community Tip: How to Get Answers to Your Post&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would also be a good idea to upload a sample qvw containing some representative sample data (it need not be real, but must illustrate the data and your requirement.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script/m-p/1373211#M419442</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-09-19T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.qlik.com/t5/QlikView/script/m-p/1373212#M419443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Temp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; eid,ename,mname,mid&lt;BR /&gt; 1,sam,john,2&lt;BR /&gt; 2,john,xyz,3&lt;BR /&gt; 3,xyz,abc,4&lt;BR /&gt; 4,abc,acc,5]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;Lookup&lt;/SPAN&gt;('ename','eid',&lt;SPAN style="color: #800000;"&gt;mid&lt;/SPAN&gt;,'Temp') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NewColumn&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Temp;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177031_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script/m-p/1373212#M419443</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-09-19T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.qlik.com/t5/QlikView/script/m-p/1373213#M419444</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;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;eid,ename,mname,mid&lt;/P&gt;&lt;P&gt;1,sam,john,2&lt;/P&gt;&lt;P&gt;2,john,xyz,3&lt;/P&gt;&lt;P&gt;3,xyz,abc,4&lt;/P&gt;&lt;P&gt;4,abc,acc,5];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map:&lt;/P&gt;&lt;P&gt;Mapping LOAD &lt;/P&gt;&lt;P&gt;eid as key,&lt;/P&gt;&lt;P&gt;ename&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('map',mid,'') as newmap&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script/m-p/1373213#M419444</guid>
      <dc:creator>hari8088</dc:creator>
      <dc:date>2017-09-19T10:12:57Z</dc:date>
    </item>
  </channel>
</rss>

