<?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: Lookup from Matrix in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955142#M645596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Swuehl,&lt;/P&gt;&lt;P&gt;Thanks for quick reply, your solution gives perfect results as per the given example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the catch is the Parameter Names may not have number as I mentioned in example, it may be any text (refer below snap).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106294_Capture3.JPG" style="height: 214px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Please suggest way out in this case.&lt;/P&gt;&lt;P&gt;Inconvenience is regretted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Nov 2015 11:29:58 GMT</pubDate>
    <dc:creator>girish_talele</dc:creator>
    <dc:date>2015-11-21T11:29:58Z</dc:date>
    <item>
      <title>Lookup from Matrix</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955140#M645594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I have a query regarding lookup the value based on three parameters.&lt;/P&gt;&lt;P&gt;We have a Matrix table &amp;amp; Order table as given below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106292_Capture1.JPG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In matrix table, a value is maintained against each Parameter (Param1,2,3) &amp;amp; for given Quantity Range.&lt;/P&gt;&lt;P&gt;This Parameter Values needs to lookup in the Order table referring to the order qty.&lt;/P&gt;&lt;P&gt;The required resulting table is as given below:- &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/106293_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I guess, Using simple Mapping Load &amp;amp; ApplyMap it can not be done.&lt;/P&gt;&lt;P&gt;Please suggest how to map this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 10:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955140#M645594</guid>
      <dc:creator>girish_talele</dc:creator>
      <dc:date>2015-11-21T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup from Matrix</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955141#M645595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it using something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14481036386499513 jive_text_macro" jivemacro_uid="_14481036386499513"&gt;
&lt;P&gt;Matrix:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;From_Qty, To_Qty, Param1, Param2, Param3&lt;/P&gt;
&lt;P&gt;0, 10000, 30,15,15&lt;/P&gt;
&lt;P&gt;10001, 50000, 25,10,10&lt;/P&gt;
&lt;P&gt;50001, 100000, 15,5,5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Orders:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Ord_No,Ord_Qty, Field1, Field2&lt;/P&gt;
&lt;P&gt;1, 9000, Param1, &lt;/P&gt;
&lt;P&gt;2,45000, Param1, Param2&lt;/P&gt;
&lt;P&gt;3,75000, Param1, Param3&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;IntervalMatch (Ord_Qty) &lt;/P&gt;
&lt;P&gt;LOAD From_Qty, To_Qty Resident Matrix;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left JOIN (Orders)&lt;/P&gt;
&lt;P&gt;LOAD * Resident Matrix;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE Matrix;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RESULT:&lt;/P&gt;
&lt;P&gt;LOAD Ord_No, Ord_Qty, Field1, Field2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pick(right(Field1,1), Param1, Param2, Param3) as FieldValue1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pick(right(Field2,1), Param1, Param2, Param3) as FieldValue2&lt;/P&gt;
&lt;P&gt;Resident Orders;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE Orders;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 11:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955141#M645595</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-21T11:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup from Matrix</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955142#M645596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Swuehl,&lt;/P&gt;&lt;P&gt;Thanks for quick reply, your solution gives perfect results as per the given example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the catch is the Parameter Names may not have number as I mentioned in example, it may be any text (refer below snap).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106294_Capture3.JPG" style="height: 214px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Please suggest way out in this case.&lt;/P&gt;&lt;P&gt;Inconvenience is regretted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 11:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955142#M645596</guid>
      <dc:creator>girish_talele</dc:creator>
      <dc:date>2015-11-21T11:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup from Matrix</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955143#M645597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just replace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; pick(&lt;/SPAN&gt;&lt;SPAN class="func" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #ff1493;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;(Field1,1), Param1, Param2, Param3) &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; FieldValue1,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; pick(&lt;STRONG&gt;match(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;STRONG&gt;Field1,'X','Y','Z'), X, Y, Z&lt;/STRONG&gt;) &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; FieldValue1,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 11:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-from-Matrix/m-p/955143#M645597</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-21T11:34:49Z</dc:date>
    </item>
  </channel>
</rss>

