<?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: Multiple vlookup equivalent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734483#M452514</link>
    <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;may be something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create two mapping tables one with Answer and RAG Status and other with Question and RAG Status:&lt;/P&gt;&lt;P&gt;[Answer Table]:&lt;/P&gt;&lt;P&gt;Mapping load&lt;/P&gt;&lt;P&gt;Answer,&lt;/P&gt;&lt;P&gt;RAG&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Question Table]:&lt;/P&gt;&lt;P&gt;Mapping load&lt;/P&gt;&lt;P&gt;Question,&lt;/P&gt;&lt;P&gt;RAG&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;Applymap('Answer Table',Answer,Applymap('Question Table', Question,'NA')) as New field&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 12:38:20 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2020-08-10T12:38:20Z</dc:date>
    <item>
      <title>Multiple vlookup equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734473#M452513</link>
      <description>&lt;P&gt;Hi, I have a mapping table with 3 fields - QuestionNumber, Answer, RAG Status - and then an input file which includes QuestionNumber and Answer for multiple respondents.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially I was using a straight table with the expression &lt;EM&gt;Only([RAG Status])&lt;/EM&gt; to return the corresponding RAG status based on the Answer provided.&lt;/P&gt;&lt;P&gt;However, some of the responses are free format text so I cannot use a lookup to provide the RAG status - in these instances I want to do a lookup on the QuestionNumber to pull the RAG Status.&lt;/P&gt;&lt;P&gt;In excel, the formula is similar to&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;=IFERROR(VLOOKUP(Answer,RAG Status,0),(VLOOKUP(QuestionNumber,RAG Status,false)))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Essentially, I want an expression to return the RAG Status based on the Answer but, where that doesn't exist, return the RAG Status based on the QuestionNumber.&lt;/P&gt;&lt;P&gt;I've looked in the forum for solutions using&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Alt, Aggr, ApplyMap&lt;/EM&gt;&lt;/STRONG&gt; etc but cannot work out which to use and how to apply.&lt;/P&gt;&lt;P&gt;Appreciate any help &amp;amp; advice.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734473#M452513</guid>
      <dc:creator>mattdonkin</dc:creator>
      <dc:date>2024-11-16T18:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple vlookup equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734483#M452514</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;may be something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create two mapping tables one with Answer and RAG Status and other with Question and RAG Status:&lt;/P&gt;&lt;P&gt;[Answer Table]:&lt;/P&gt;&lt;P&gt;Mapping load&lt;/P&gt;&lt;P&gt;Answer,&lt;/P&gt;&lt;P&gt;RAG&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Question Table]:&lt;/P&gt;&lt;P&gt;Mapping load&lt;/P&gt;&lt;P&gt;Question,&lt;/P&gt;&lt;P&gt;RAG&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;Applymap('Answer Table',Answer,Applymap('Question Table', Question,'NA')) as New field&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 12:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734483#M452514</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2020-08-10T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple vlookup equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734554#M452518</link>
      <description>&lt;P&gt;Hi KC, thanks for the response. I'm getting an error saying applymap id not found?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Answer Table]:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MAPPING LOAD &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Answer,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[Benchmark RAG]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[C:\RAG.xlsx]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;[Question Table]:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MAPPING LOAD&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;QuestionNumber,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[Benchmark RAG]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[C:\RAG.xlsx]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Main:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Applymap('Answer Table',Answer,Applymap('Quesion Table',Question,'NA')) as RAG_Lookup&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[C:\RAG.xlsx]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 14:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1734554#M452518</guid>
      <dc:creator>mattdonkin</dc:creator>
      <dc:date>2020-08-10T14:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple vlookup equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1738534#M452795</link>
      <description>&lt;P&gt;Have a look at the following Design Blog post and Help links, they may give you the information you need to further troubleshoot things:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 15:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-vlookup-equivalent/m-p/1738534#M452795</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-25T15:26:32Z</dc:date>
    </item>
  </channel>
</rss>

