<?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: Help required to create mapping load statement based on certain condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839854#M295178</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;What I would try is have 1 table with the Max Date ORDER BY Date DESC, then Peek() the Date from that table and have&amp;nbsp; MAPPING LOAD table&amp;nbsp; for EMPID &amp;amp; Salary using WHERE clause for Date = WHateveer the name of your Peek above is. Finally use you Applymap() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;FROM .......EmployeeTable&lt;/P&gt;&lt;P&gt;ORDER BY Date DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate = PEEK('Date');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table MaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Mapping table&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;EmpID&lt;/P&gt;&lt;P&gt;,Salary&lt;/P&gt;&lt;P&gt;FROM.......EmployeeTable&lt;/P&gt;&lt;P&gt;WHERE Date = $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 12:36:24 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2015-04-28T12:36:24Z</dc:date>
    <item>
      <title>Help required to create mapping load statement based on certain condition</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839850#M295174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have EmployeeID, Date and Salary in a table(It contains yearly data). What we need is, we want to know what is the current salary(Based on Max(Date)) against each EmployeeID. Since we need to use this as an mapping load so that we can get the current salary of an employee against the EmployeeID(Using the applymap).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839850#M295174</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2015-04-28T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help required to create mapping load statement based on certain condition</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839851#M295175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at reference manual&amp;nbsp; for applymap() syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839851#M295175</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-28T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help required to create mapping load statement based on certain condition</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839852#M295176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. I want to create a mapping load which contains current salary against employeeid so that we can use applymap and get required information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839852#M295176</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2015-04-28T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help required to create mapping load statement based on certain condition</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839853#M295177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source:&lt;BR /&gt;LOAD&lt;BR /&gt;EmployeeID, &lt;BR /&gt;Date,&lt;BR /&gt;Salary&lt;BR /&gt;From someplace;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;INNER JOIN (source) LOAD&lt;BR /&gt;EmployeeID, &lt;BR /&gt;max(Date) as Date&lt;BR /&gt;RESIDENT source&lt;BR /&gt;GROUP BY EmployeeID;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;EmployeeSalaryMap:&lt;BR /&gt;MAPPING LOAD DISTINCT&lt;BR /&gt;EmployeeID, &lt;BR /&gt;Salary&lt;BR /&gt;FROM source;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839853#M295177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-28T12:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help required to create mapping load statement based on certain condition</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839854#M295178</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;What I would try is have 1 table with the Max Date ORDER BY Date DESC, then Peek() the Date from that table and have&amp;nbsp; MAPPING LOAD table&amp;nbsp; for EMPID &amp;amp; Salary using WHERE clause for Date = WHateveer the name of your Peek above is. Finally use you Applymap() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;FROM .......EmployeeTable&lt;/P&gt;&lt;P&gt;ORDER BY Date DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate = PEEK('Date');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table MaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Mapping table&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;EmpID&lt;/P&gt;&lt;P&gt;,Salary&lt;/P&gt;&lt;P&gt;FROM.......EmployeeTable&lt;/P&gt;&lt;P&gt;WHERE Date = $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839854#M295178</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-04-28T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help required to create mapping load statement based on certain condition</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839855#M295179</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;find attached app , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you ma need to modify according your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 13:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-create-mapping-load-statement-based-on-certain/m-p/839855#M295179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-28T13:16:50Z</dc:date>
    </item>
  </channel>
</rss>

