<?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: Convert to mapping load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952202#M974442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 20:11:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-03T20:11:55Z</dc:date>
    <item>
      <title>Convert to mapping load</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952197#M974437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to get rid of the table "Deinstalled_IP" and map this value directly into the Locations table.&amp;nbsp; SVMXC_IP_Site_Id_Key is the key field to SVMXC_Site_Id_Key.&amp;nbsp; I know this is simple but I seem to be missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deinstalled_IP:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; SVMXC_IP_Site_Id_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(DISTINCT SVMXC_IP_Id_Key) as Deinstalled_IP&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[... REP_SVMXC_Installed_Product.qvd](qvd)&lt;/P&gt;&lt;P&gt;Where (SVMXC_IP_Status = 'Deinstalled')&lt;/P&gt;&lt;P&gt;Group By SVMXC_IP_Site_Id_Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locations:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SVMXC_Site_Id_Key, &lt;/P&gt;&lt;P&gt;xxx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952197#M974437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T20:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert to mapping load</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952198#M974438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deinstalled_IP:&lt;/P&gt;&lt;P&gt;mapping LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; SVMXC_IP_Site_Id_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(DISTINCT SVMXC_IP_Id_Key) as Deinstalled_IP&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[... REP_SVMXC_Installed_Product.qvd](qvd)&lt;/P&gt;&lt;P&gt;Where (SVMXC_IP_Status = 'Deinstalled')&lt;/P&gt;&lt;P&gt;Group By SVMXC_IP_Site_Id_Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locations:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; applymap('Deinstalled_IP',SVMXC_Site_Id_Key,) as Deinstalled_IP&lt;/P&gt;&lt;P&gt;xxx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952198#M974438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T20:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert to mapping load</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952199#M974439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm.&amp;nbsp; This appends the Site_Id_Key from the Deinstalled_IP table into the Locations table, rather than the count of IP at Locations with Status Deinstalled. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952199#M974439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T20:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert to mapping load</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952200#M974440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you know about applymap?&lt;/P&gt;&lt;P&gt;you give Name of table and field for Input to mapping table. you get the second field of your mapping table as Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer to QlikView help:&lt;/P&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;ApplyMap&lt;/SPAN&gt; function is used for mapping any expression to a previously loaded mapping table. The syntax is:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor836"&gt;&lt;/A&gt;&lt;A name="applymap"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;applymap(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;'mapname', expr [ , defaultexpr ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;mapname&lt;/SPAN&gt; is the name of a mapping table that has previously been created through the &lt;SPAN class="Bold"&gt;mapping load&lt;/SPAN&gt; or the &lt;SPAN class="Bold"&gt;mapping select&lt;/SPAN&gt; statement (see &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM style=": ; color: #0066cc; text-decoration: underline;"&gt;Mapping&lt;/EM&gt;&lt;/A&gt;). Its name must be enclosed by single, straight &lt;A class="MCXref_0" href="https://community.qlik.com/"&gt;&lt;EM style=": ; color: #0066cc; text-decoration: underline;"&gt;Quotation Marks in Scripting&lt;/EM&gt;&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt; is the expression, the result of which should be mapped. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;defaultexpr&lt;/SPAN&gt; is an optional expression which will be used as a default mapping value if the mapping table does not contain a matching value for &lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt;. If no default value is given, the value of &lt;SPAN class="Italic"&gt;expr&lt;/SPAN&gt; will be returned as is. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;// Assume the following mapping table: &lt;/P&gt;&lt;P class="Code"&gt;map1: &lt;/P&gt;&lt;P class="Code"&gt;mapping load * inline [ &lt;/P&gt;&lt;P class="Code"&gt;x, y &lt;/P&gt;&lt;P class="Code"&gt;1, one &lt;/P&gt;&lt;P class="Code"&gt;2, two &lt;/P&gt;&lt;P class="Code"&gt;3, three ] ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 2 )&lt;/SPAN&gt; returns ' two'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 4 )&lt;/SPAN&gt; returns 4&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, 'xxx')&lt;/SPAN&gt; returns 'xxx'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 1, 'xxx')&lt;/SPAN&gt; returns 'one'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, null( ) )&lt;/SPAN&gt; returns NULL&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952200#M974440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T20:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert to mapping load</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952201#M974441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deinstalled_IP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mapping&lt;/STRONG&gt; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; SVMXC_IP_Site_Id_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(DISTINCT SVMXC_IP_Id_Key) as Deinstalled_IP&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[... REP_SVMXC_Installed_Product.qvd](qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where (SVMXC_IP_Status = 'Deinstalled')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group By SVMXC_IP_Site_Id_Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locations:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; SVMXC_Site_Id_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;ApplyMap('Deinstalled_IP',SVMXC_Site_Id_Key,0)&lt;/STRONG&gt; as Deinstalled_IP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident xxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Deinstalled_IP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 19:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952201#M974441</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-03T19:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert to mapping load</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952202#M974442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 20:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-to-mapping-load/m-p/952202#M974442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-03T20:11:55Z</dc:date>
    </item>
  </channel>
</rss>

