<?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: Search for equal field in other column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896628#M660408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all. Solution works. Since i want to map more than one column in my original file, i do it with a join... works very well!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ty all, again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 22:43:20 GMT</pubDate>
    <dc:creator>buc_christian</dc:creator>
    <dc:date>2015-04-10T22:43:20Z</dc:date>
    <item>
      <title>Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896622#M660399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a Scripting Problem and am searching for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my data structure looks like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column A, Column B, Column C&lt;/P&gt;&lt;P&gt;1, 0, 99&lt;/P&gt;&lt;P&gt;2, 1, 999&lt;/P&gt;&lt;P&gt;3, 4, 9&lt;/P&gt;&lt;P&gt;4, 6, 9999&lt;/P&gt;&lt;P&gt;5, 2, 99999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the script I want to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Column A,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"search for value in of column A in column B and return the value of column C" as Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Table in my App should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column A, Value&lt;/P&gt;&lt;P&gt;1, 999&lt;/P&gt;&lt;P&gt;2, 99999&lt;/P&gt;&lt;P&gt;3,&lt;/P&gt;&lt;P&gt;4,&lt;/P&gt;&lt;P&gt;5,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help in advance!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 21:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896622#M660399</guid>
      <dc:creator>buc_christian</dc:creator>
      <dc:date>2015-04-10T21:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896623#M660400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, I'd do it by mapping.&amp;nbsp; First, create map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping:&lt;BR /&gt;MAPPING LOAD DISTINCT&lt;BR /&gt; B,&lt;BR /&gt; C&lt;BR /&gt;FROM InitialData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, use applymap:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Result:&lt;BR /&gt;LOAD&lt;BR /&gt; A,&lt;BR /&gt; applymap('Mapping', A, null()) as C&lt;BR /&gt;FROM InitialData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 21:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896623#M660400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-10T21:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896624#M660401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f5faf0;"&gt;MapTable:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f5faf0;"&gt;Mapping Load&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 13px; background-color: #f5faf0; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;B as A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;,C&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #f5faf0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f5faf0;"&gt;From &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f5faf0;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;LOAD A, &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f5faf0;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;('&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;MapTable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;', &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #f5faf0;"&gt;A, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;null&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f5faf0;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #f5faf0;"&gt;C&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f5faf0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f5faf0;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;Renaming B to A to have same column name, that's how mapping load works. ID column to match and the column to be retrieved&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;null() is the value to assign if there's no match&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 21:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896624#M660401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-10T21:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896625#M660402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping load doesn't really care about field names. The first field is searched and the second one is the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 22:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896625#M660402</guid>
      <dc:creator />
      <dc:date>2015-04-10T22:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896626#M660404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh I see, thanks for the clarification, regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 22:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896626#M660404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-10T22:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896627#M660406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey guys, that sounds as a good idea, i try it out and then i ll give Feedback, hope it works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 22:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896627#M660406</guid>
      <dc:creator>buc_christian</dc:creator>
      <dc:date>2015-04-10T22:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for equal field in other column</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896628#M660408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all. Solution works. Since i want to map more than one column in my original file, i do it with a join... works very well!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ty all, again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 22:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-equal-field-in-other-column/m-p/896628#M660408</guid>
      <dc:creator>buc_christian</dc:creator>
      <dc:date>2015-04-10T22:43:20Z</dc:date>
    </item>
  </channel>
</rss>

