<?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 Row Values into Columns dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979885#M334570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this might be a solution for you - using a CROSSTABLE() LOAD to get your static Ware Houses from columns into rows and then connecting the two tables by creating a concatenated key of "Stocked wh" and "Postal Code" which will enable the right association:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-18 #1.PNG" class="jive-image image-1" src="/legacyfs/online/99342_2015-09-18 #1.PNG" style="height: 466px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2015 14:14:49 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-09-18T14:14:49Z</dc:date>
    <item>
      <title>Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979882#M334567</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;&lt;/P&gt;&lt;P&gt;I would like to compare the row values with my column Headers dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First tab contains the Warehouse and stock details.I would like to compare the Postal Code which is dynamic in rows to compare the second tab data columns(WH1,2,3) which is static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material XXX12 is stocked in AAAB and AAAC and the postal codes are 16702 and 16703 respectively.I want to take 16702 and AAAB from 1st tab and go to Postcode details and compare WH1 which is not matching,then go to WH2.Here it matches.Then I would like to read my final output as WH2 i.e AAAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases there won't be any match in the Postcode details.In such scenario I want to consider my Warehouse details code as my closest stocked ware house&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me in achieving this logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 10:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979882#M334567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979883#M334568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WH_Raw:&lt;/P&gt;&lt;P&gt;CrossTable(WH, Value)&lt;/P&gt;&lt;P&gt;LOAD [Postal Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [WH 1], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [WH 2], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WH3&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Postcode details]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WH:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;Load AutoNumber([Postal Code]&amp;amp;Value) as Key,&lt;/P&gt;&lt;P&gt;WH Resident&amp;nbsp; WH_Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table WH_Raw;&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;Stocked:&lt;/P&gt;&lt;P&gt;LOAD Material, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Stocked wh], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Postal Code],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('WH',AutoNumber([Postal Code]&amp;amp;[Stocked wh]),'No Matching WH') as WH&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Ware House Details]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 11:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979883#M334568</guid>
      <dc:creator />
      <dc:date>2015-09-18T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979884#M334569</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;&lt;/P&gt;&lt;P&gt;Can anyone show me the directions please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 12:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979884#M334569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979885#M334570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this might be a solution for you - using a CROSSTABLE() LOAD to get your static Ware Houses from columns into rows and then connecting the two tables by creating a concatenated key of "Stocked wh" and "Postal Code" which will enable the right association:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-18 #1.PNG" class="jive-image image-1" src="/legacyfs/online/99342_2015-09-18 #1.PNG" style="height: 466px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979885#M334570</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-09-18T14:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979886#M334571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I have huge data it will affect my performance when I use Cross Table.However since there is no alternate solution I will use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we don't have the match in the second table it should fetch only the first value of the first table.This is fetching all values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 15:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979886#M334571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T15:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979887#M334572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I think a MAPPING LOAD along with an ApplyMap() will do the trick for you. That way we get rid of the key and also get a default value if there is no match... not sure which one of the fields you meant as a default value but it is very easy to exchange it to want you want anyway in the ApplyMap()-function...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-09-18 #2.PNG" class="jive-image image-1" src="/legacyfs/online/99375_2015-09-18 #2.PNG" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 16:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979887#M334572</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-09-18T16:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Row Values into Columns dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979888#M334573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the logic and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 09:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Row-Values-into-Columns-dynamically/m-p/979888#M334573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T09:02:34Z</dc:date>
    </item>
  </channel>
</rss>

